|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 12 Apr 2006 18:49:35 -0000 Issue 4068
php-general-digest-help
lists.php.net
Date: Wed Apr 12 2006 - 13:49:35 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 12 Apr 2006 18:49:35 -0000 Issue 4068
Topics (messages 233827 through 233844):
Re: Instalation Nightmares For Word Press Please Help
233827 by: Chris
233828 by: Jochem Maas
Re: MS SQL extension not loading
233829 by: Laszlo Nagy
Re: help with multidimentional arrays
233830 by: John Wells
233837 by: Bing Du
Dynamic array_merge problem
233831 by: Ace McKool
233832 by: Pure Web Solution
233833 by: Ace McKool
plain text email message format
233834 by: Schalk
233835 by: Jay Blanchard
233836 by: Wolf
233838 by: Angelo Zanetti
Hiding text?
233839 by: William Stokes
233840 by: Jochem Maas
Re: CURLOPT_BINARYTRANSFER
233841 by: Jochem Maas
233844 by: Richard Lynch
ÆóÒµÈçºÎÓ¦¶ÔÅ·ÃÀ¿Í»§²éÑ鹤³§ºÍʵʩSA8000±ê(AD)
233842 by: ËÕÖݾٰì!
Re: regular expressions or something else?
233843 by: Kim Christensen
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
marvin hunkin wrote:
> Hi.
> need to install word press version 2.0.
http://wordpress.org/support/
--
Postgresql & php tutorials
http://www.designmagick.com/
attached mail follows:
marvin hunkin wrote:
> Hi.
> need to install word press version 2.0.
you need to eat|breath|sleep, but I don't think blogging consitutes a
pre-requisite to the continuation of life on this planet. ;-)
> and now using easy php 1-8, and set up my my sql settings in the
> wpConfig.php file, and my username is localhost and the password is root.
> when i try to load it in the browser, using http://localhost/install.php
> which i put in the www. folder of easy php 1-8, i get this error in the
> browser:
>
>
> There doesn't seem to be a wp-config.php file. I need this before we can
Wordpress asks for 'wp-config.php' and you keep mentioning 'wpConfig.php'.
might that be the problem? (note the 2 filenames are not the same) if not
check your placing the wp-config.php in the correct directory.
attached mail follows:
Hello Richard,
> Check the "php.ini" setting in the top portion to see where php.ini
> MUST BE for it to be read.
>
It is telling me:
Configuration File (php.ini) Path C:\WINDOWS
> Step #2:
> Find your php.ini file, and MOVE it to where phpinfo() wants it to be.
>
I have my php.ini at C:\WINDOWS\PHP.ini.
> Step #3
> In php.ini look at the "extensions_dir" setting.
> Fix it.
>
extension_dir = "C:\PHP\ext"
which is correct.
> Step #4.
> Compare version numbers of your mssql_php.dll and the version of PHP
> you are running. You CANNOT mix-n-match old DLLs with new PHP and
> vice versa. It will sometimes "work" until you happen to use the one
> function that CHANGED between versions.
>
php_mssql.dll version is 5.1.2.2
PHP version is 5.1.2
Looks okay.
> If you just went out and found some random mssql_php.dll to throw in
> the directory, it is NOT going to work.
>
Well, I installed PHP manually, as described in install.txt. The file I
have downloaded was
php-5.1.2-Win32.zip
9,140,593 bytes
It was released on 12 Jan 2006. This is the official latest stable
version, and it had all of the extensions packaged together with
php.exe. I used the same one on my home computer and it worked. I think
this can't be the problem.
> Step #4a
> Check your log files. I'm assuming ISS actually HAS logfiles... It
> must have, right? Might be in system events log. Might be in an
> "error_log" file next to your IIS web traffic logs. Knowing
> Microsoft, it might be *ANYWHERE*...
Yes, you are right. The event log contains some error entries telling me
this:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
unknown, version 0.0.0.0, fault address 0x01b3e8e0. For more
information, see Help and Support center at
http://go.microsoft.com/fwlink/events.asp
The above link contains the text
"We're sorry There is no additional information about this issue in the
Error and Event Log Messages or Knowledge Base databases at this time.
You can use the links in the Support area to determine whether any
additional information might be available elsewhere."
Yes, this is tipical Microsoft. I had to figure out that the logfiles
for my website in under
c:\windows\system32\logfiles\W3SVC848989038\
Don't ask me why. :-) Unfortunately, the logfile does not help, because
it DOES NOT log out php error messages. For example, if I have an error
in my php script, this is all I get:
2006-04-11 16:43:04 127.0.0.1 GET /info.php
=PHPE9568F34-D428-11d2-A769-00AA001ACF42 9000 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727)
200 0 0
> I'm guessing that you might find an error message about the
> mssql_php.dll being the wrong version...
>
Hmm. I also tried to load it with the dl() function, but then I got an
error:
"Warning: dl() [function.dl]: Not supported in multithreaded Web servers
- use extension=php_mssql in your php.ini in
C:\Inetpub\vtracks_server\info.php on line 2"
> Step #5.
> Switch to a superior web server: Apache
> :-)
>
I wish I could.
> Step #6.
> Switch to a superior OS like Linux or FreeBSD
> :-) :-) :-)
>
Yes, I would like to. The problem is that I cannot. I got detailed
instructions and my boss wants to run this on IIS6 and Windows. I might
be able to ask him to use apache. That would be wonderful.
It is strange that I have a test server which is almost the same
(Win2003 server, IIS6 and PHP 5.1.2) and it works here. :-/
Thank you for your help.
Laszlo
attached mail follows:
On 4/11/06, Bing Du <bdu
iastate.edu> wrote:
> ==
> foreach ($sponsor_id as $sponsor => $arr)
> echo "$sponsor:";
> foreach ($arr[$sponsor] as $project) {
> echo "$project<br>";
> }
> ==
>
It looks like you're building your array just fine. Here though, your
second foreach needs to look like this:
[code]
foreach ($arr as $project)
{
echo "$project<br>";
}
[/code]
Your temprorary $arr variable contains only your array of titles, not
an entire row of your 2-dimensional $sonsor_id array. So you do not
need to use the $sponsor key to get at that array.
HTH,
John W
attached mail follows:
> On 4/11/06, Bing Du <bdu
iastate.edu> wrote:
>> => foreach ($sponsor_id as $sponsor => $arr)
>> echo "$sponsor:";
>> foreach ($arr[$sponsor] as $project) {
>> echo "$project<br>";
>> }
>> =>
>
> It looks like you're building your array just fine. Here though, your
> second foreach needs to look like this:
>
> [code]
> foreach ($arr as $project)
> {
> echo "$project<br>";
> }
> [/code]
>
> Your temprorary $arr variable contains only your array of titles, not
> an entire row of your 2-dimensional $sonsor_id array. So you do not
> need to use the $sponsor key to get at that array.
>
Thanks so much for pointing out that error on $arr, John. You are very
right. Now I realize it's such an obvious error. But I did not notice it
before I posted.
Bing
attached mail follows:
Hi,
This is the end result I'm trying to get:
$z1 = array_merge($z[0], $z[1], $z[2]);
But what if I don't know how many elements are in $z? I tried this (but it
breaks if there are more than 2 elements in $z):
for ($i=0; $i<count($z); $i++)
{
if ($i<(count($z)-1))
{
$z1 = array_merge($z[$i], $z[$i+1]);
}
}
Any pointers would be greatly appreciated! TIA
attached mail follows:
Hi
if you just want to sort of concatenate your arrays then why not just loop
through the whole thing in order to get the new single array. Need more info
for further consideration. Hope this helps!
for ($i=0;$i<count($z);$i++){
$z1[$i] = $z[$i];
}
Pure Web Solution
http://www.purewebsolution.co.uk
PHP, MYSQL, Web Design & Web Services
"Ace McKool" <face7hill
gmail.com> wrote:
> Hi,
>
> This is the end result I'm trying to get:
>
> $z1 = array_merge($z[0], $z[1], $z[2]);
>
> But what if I don't know how many elements are in $z? I tried this (but it
> breaks if there are more than 2 elements in $z):
>
> for ($i=0; $i<count($z); $i++)
> {
> if ($i<(count($z)-1))
> {
> $z1 = array_merge($z[$i], $z[$i+1]);
> }
> }
>
> Any pointers would be greatly appreciated! TIA
attached mail follows:
This worked wonderfully--thank you very much Jochem!
On 4/12/06, Jochem Maas <jochem
iamjochem.com> wrote:
>
> Ace McKool wrote:
> > Hi,
> >
> > This is the end result I'm trying to get:
> >
> > $z1 = array_merge($z[0], $z[1], $z[2]);
>
> $yourArrays = array($z[0], $z[1], $z[2]);
> $z1 = call_user_func_array('array_merge', $yourArrays);
>
> obviously - you have to build $yourArray before passing it
> to call_user_func_array()
>
attached mail follows:
Greetings All,
Is the code below the correct way to 'build' the message for plain text
email?
$message = "Message From: ".$firstName. " " .$lastName."
First Name: ".$firstName."
Last Name: ".$lastName."
Address: ".$address."
Home phone: ".$homePhone."
Best time to contact: ".$bestTime."
Email: ".$email.";
Thanks!
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
attached mail follows:
[snip]
Is the code below the correct way to 'build' the message for plain text
email?
$message = "Message From: ".$firstName. " " .$lastName."
First Name: ".$firstName."
Last Name: ".$lastName."
Address: ".$address."
Home phone: ".$homePhone."
Best time to contact: ".$bestTime."
Email: ".$email.";
[/snip]
Yes. And no.
http://www.php.net/manual/en/function.mail.php
attached mail follows:
I use
$message ="Message From: $firstname $lastname
First Name: $firstname
Last Name: $lastname
.....
";
Wolf
Schalk wrote:
> Greetings All,
>
> Is the code below the correct way to 'build' the message for plain text
> email?
>
> $message = "Message From: ".$firstName. " " .$lastName."
> First Name: ".$firstName."
> Last Name: ".$lastName."
> Address: ".$address."
> Home phone: ".$homePhone."
> Best time to contact: ".$bestTime."
> Email: ".$email.";
>
> Thanks!
>
attached mail follows:
Schalk wrote:
> Greetings All,
>
> Is the code below the correct way to 'build' the message for plain text
> email?
>
> $message = "Message From: ".$firstName. " " .$lastName."
> First Name: ".$firstName."
> Last Name: ".$lastName."
> Address: ".$address."
> Home phone: ".$homePhone."
> Best time to contact: ".$bestTime."
> Email: ".$email.";
>
> Thanks!
>
just look at the MIME content type of the email that you are sending out:
HTML:
Content-Type: text/html; charset = "iso-8859-1"
Plain Text:
Content-Type: text/plain; charset = "iso-8859-1"
hope this helps.
By the way this gets set in the header.
attached mail follows:
Hello,
How can I hide error message when user enters to POST action form for first
time? I have a form for collecting and saving user data. In the code below
you can see that there are text messages for user info stored in $teksti
variables. At the end the $teksti is passed to function that displays the
message. Problem is that when user enters the page for firs time the
variables are empty and therefore basically the decisions made with variable
values result to error message at the first time.
Thanks for your advice
-Will
Here's code:
if ($ryhma != 'Valitse:' && $ryhma != ''){
if ($ikaluokka != ''){
$sql="SELECT ikaluokka FROM x_ikaluokat WHERE ryhma = '$ryhma'";
$result=mysql_query($sql);
$num = mysql_num_rows($result);
$cur = 1;
if ($num == '0'){
$check = "ok";
}
while ($num >= $cur) {
$row = mysql_fetch_array($result);
$il = $row["ikaluokka"];
if ($il == $ikaluokka){
$teksti = "Virhe! Samanniminen ikäluokka on jo tässä ryhmässä.";
$check = "bad";
} else {
$check = "ok";
}
$cur++;
}
if ($check == "ok"){
$sql_lauseke = "INSERT INTO x_ikaluokat (ryhma, ikaluokka)
VALUES ('$ryhma','$ikaluokka')";
if (!$kysely = mysql_query($sql_lauseke,$yhteys)){
$teksti = "Virhe: " . mysql_error();
unset($ryhma);
unset($ikaluokka);
} else {
$teksti = "Tallennus onnistui.";
unset($ryhma);
unset($ikaluokka);
}
}
} else { $teksti = "Virhe! Ikäluokka puuttuu. Tarkista tiedot."; }
} else { $teksti = "Virhe! Ryhmä puuttuu. Tarkista tiedot."; }
UserMessage ($teksti);
attached mail follows:
William Stokes wrote:
> Hello,
>
> How can I hide error message when user enters to POST action form for first
> time? I have a form for collecting and saving user data. In the code below
> you can see that there are text messages for user info stored in $teksti
> variables. At the end the $teksti is passed to function that displays the
> message. Problem is that when user enters the page for firs time the
> variables are empty and therefore basically the decisions made with variable
> values result to error message at the first time.
>
> Thanks for your advice
> -Will
>
> Here's code:
..
> UserMessage ($teksti);
try something like:
if (isset($teksti) && $teksti) {
UserMessage ($teksti);
}
also note you check for the existance of the $_POST
superglobal to determine if the user actually submitted a post.
e.g.:
if (isset($_POST) && is_array($POST) && !empty($_POST)) {
// somebody submitted something from somewhere.
}
>
attached mail follows:
Richard Lynch wrote:
> Can anybody expand on the meaning and correct usage of:
hi Richard,
been following your ordeal from a far, sorry to say I have
nothing useful to add regarding the curl problem ... but I was
wondering if a fopen() or file_get_contents() in conjunction
with allow_url_fopen wouldn't be a way to side step the problem?
rgds,
Jochem
attached mail follows:
On Wed, April 12, 2006 11:28 am, Jochem Maas wrote:
> Richard Lynch wrote:
>> Can anybody expand on the meaning and correct usage of:
>
> hi Richard,
>
> been following your ordeal from a far, sorry to say I have
> nothing useful to add regarding the curl problem ... but I was
> wondering if a fopen() or file_get_contents() in conjunction
> with allow_url_fopen wouldn't be a way to side step the problem?
I need the cookies and all that...
It's an anti-CAPTCHA ocr research thang...
I think my next step is to figure out how to run PHP source under a
debugger. Yikes. It's been 20+ years since I've done that kind of
thing...
--
Like Music?
http://l-i-e.com/artists.htm
attached mail follows:
©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥
ÍË ¶©£ºyangjie0288
yahoo.com.cn£¨±êÌâдʱ¡°ÍË ¶©¡±ÄÚÈÝдÃ÷ÄúÏë¡°ÍË ¶©µÄÓÊÏ䡱£©
©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥
ÆóÒµÈçºÎÓ¦¶ÔÅ·ÃÀ¿Í»§²éÑ鹤³§ºÍʵʩSA8000±ê×¼
©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥
¡¾Ö÷ °ì µ¥ λ¡¿Ï£ÈñÆó¹Ü
¡¾·Ñ-------Óá¿1980Ôª/ÈË/2Ì죨º¬½Ì²Ä¡¢Îç²Í¡¢µãÐĵȣ©Í¬Ò»ÆóÒµ
ÈýÈËÒÔÉϱ¨Ãû¾ù¿ÉÏíÊÜ9ÕÛÓŻݡ£
¡¾ÉÏ-¿Î-ʱ¼ä¡¿2OO6Äê4ÔÂ22-23ÈÕ(ÖÜÁù/ÖÜÈÕÁ½Ìì)
¡¾ËÕÖÝ»áÎñ×é¡¿ËÕÖݵ绰£º0512-67137582 ËÕÖÝ´«Õ棺0512-67137583 ÁªÏµÈË£ºÑîС½ã
ÉîÛڵ绰£º0755-22058634 ÉîÛÚ´«Õ棺0755-83524349 ÁªÏµÈË£ºÔøÐ¡½ã
ÉϺ£µç»°£º021-51083269 ÉϺ£´«Õ棺021-51083269 ÁªÏµÈË£º·½ÏÈÉú
¡¾ÉÏ-¿Î-µØµã¡¿ËÕÖÝÖÐɽ´óÏÃ
©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥
µÚÒ»²¿·Ö ÈçºÎÓ¦¶ÔÅ·ÃÀ¿Í»§²éÑ鹤³§
1¡¢ Å·ÃÀµØÇøµÄ¿ç¹ú¹«Ë¾ÎªºÎÒª²éÑ鹤³§£¿
2¡¢ ²éÑ鹤³§¶Ô³ö¿ÚÐÍÆóÒµ´øÀ´µÄÀû±×·ÖÎö
3¡¢ Å·ÃÀ¿ç¹ú¹«Ë¾ÊµÊ©¿Í»§Ñé³§µÄÒ»°ãÖÆ¶ÈÊÇʲô£¿
4¡¢ ¿Í»§Ñé³§µÄ±ê×¼ºÍÒÀ¾ÝÊÇʲô£¿
5¡¢ ¿Í»§Ñé³§ÐÎʽºÍÖ÷ÒªÁ÷³Ì²½Öè
°¸Àý£ººì³È»ÆÂ̵ÄÉóºËÖÆ¶È
6¡¢ Ñ鳧ǰÆóÒµÈçºÎ½øÐÐ×ÔÆÀ£¬ÊÂÏȸÄÉÆÎÊÌâ
7¡¢ Ñ鳧ǰÆóÒµÐè×¼±¸ÄÄЩÑé³§Îļþ
°¸Àý£ºWal-martÑé³§ÐèÒªÌá½»µÄÎļþ
8¡¢ ¿Í»§Ñé³§¹ý³ÌÖÐÆóÒµÓ¦ÖØµã¹Ø×¢µÄÁù´óÊÂÏî
9¡¢ ¹¤³§ÏÖ³¡ÉóºËµÄ10´óÒªµã
10¡¢Ñ鳧ʱÆóÒµÈçºÎ°²ÅÅÃæÌ¸ÈËÔ±¼°×éÖ¯×Éѯ»áÒ飿
11¡¢Ó¦¶Ô·´¿Öµ÷²éÓëʵµØ²éÑéµÄ·½·¨
12¡¢¿Í»§Í»»÷Ñ鳧ʱÆóÒµÐèÒª²ÉÈ¡ÄÇЩ´ëÊ©£¿
13¡¢ÆóÒµÈçºÎÓ¦¶ÔÅ·Ã˵ÄÁ½¸öÖ¸ÁRoHS¼°WEEE
14¡¢Õë¶Ô¿Í»§¶¨ÆÚÑé³§ÆóÒµÐèҪ׼±¸Ð©Ê²Ã´£¿
15¡¢ÆóÒµÈçºÎÓ¦¶ÔÊ®·ÖÌôÌ޵Ŀͻ§
16¡¢ÓÐЧ¸ÄÉÆ¿Í»§Ñ鳧ʱ·¢ÏÖµÄÎÊÌ⣿
17¡¢ÈçºÎ¹¹½¨ºÍÍêÉÆÆóÒµµÄÄÚÉóÖÆ¶È£¬ÒÔ±ãËæÊ±Ó¦¶ÔÑé³§
18¡¢ÈçºÎÓ¦¶ÔÅ·ÃÀ¿Í»§Î¯ÍеÚÈý·½À´²éÑ鹤³§
µÚ¶þ²¿·Ö ÈçºÎʵʩSA8000±ê×¼
1¡¢ SA8000±ê×¼µÄ²úÉú±³¾°¼°ÆäÓ°Ïì
2¡¢ Å·Ã˸÷¿ç¹ú¹«Ë¾¶ÔSA8000ÈÏÖ¤Óкβ»Í¬ÒªÇó£¿
3¡¢ ¿ç¹ú¹«Ë¾µÄÑé³§±ê×¼ÓëSA8000±ê×¼Ö®¼äµÄÁªÏµ
4¡¢ ³ö¿ÚÐÍÆóÒµÓ¦ÈçºÎÑ¡ÔñSA8000±ê×¼ÈÏÖ¤£¿
5¡¢ SA8000±ê×¼¾Å´óÌõ¿îÆÊÎö
6¡¢ SA8000±ê×¼µÄÀí½âÓëʵʩҪµã
°¸Àý£ºÆóÒµÈçºÎÈÏÖ¤SA8000
7¡¢ ÈçºÎ½¨Á¢ÓëÔËÐÐSA8000¹ÜÀíÌåϵ£¿
8¡¢ SA8000ÖÐÄÚÉóÓë¹ÜÀíÆÀÉóÓ¦ÈçºÎ½øÐÐ
9¡¢ SA8000Éç»áÔðÈÎÌåϵÎļþµÄ±àд¼°·¶Àý
10¡¢SAMS¡¢QMS¡¢EMS¡¢OHSMS¸÷Ìåϵ֮¼äÓ¦ÈçºÎÕûºÏ
µÚÈý²¿·Ö ÆóҵӦעÒâµÄÎÊÌâ
1¡¢¹«Ë¾µÄ³§·¿½á¹¹¼«Æä°²È«²âÆÀ
2¡¢Ïû·ÀÉèÊ©Ó밲ȫÊÂÏî
3¡¢Ô±¹¤¹¤×÷ÓëÉú»îµÄÊÊÒËÐÔ
4¡¢Î£ÏÕÎïÆ·¹ÜÀíÓëMSDS
5¡¢ÏÖ³¡µÄÔëÒô¡¢·Û³¾¡¢·øÉä
6¡¢ÆóÒµµÄ°²È«·À»¤Óë±£ÕÏÄÜÁ¦
7¡¢ÈËÐÔ»¯¹ÜÀí
8¡¢×ۺϹÜÀíÌåϵ½¨ÉèÒªµã
°¸Àý£ºÄ³º«×ʵÄSA8000ÈÏÖ¤»î¶¯
»¥¶¯£º×ÔÓÉÎÊ´ð
©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥
½²,ʦ,½é,ÉÜ£ºÀîÏÈÉú
Öйú¸úµ¥Ô±Åàѵʵսר¼Ò£¬ÔÁ¸Ų̂ÆóÒµ¹ÜÀíÑо¿ÖÐÐÄÀíʳ¤£¬¹¤Ñ§Ë¶Ê¿£¬¸ß¼¶¹¤³Ìʦ£¬
Ç廪´óѧÉîÛÚÑо¿ÔºMBA£¬ÏȺóÔÚÃÀ¡¢ÈÕ¡¢º«×ÊÍâÆó£¬¸Ų̂¶À×ÊÆóÒµ´ÓʹÜÀí¹¤×÷¶àÄ꣬
ÀúÈι¤³Ì²¿¹¤³Ìʦ¡¢ÏÖ³¡Ö÷¹Ü¡¢Æ·ÖʾÀí¡¢Éú²ú¸±×ܵÈÖ°Îñ£¬ÔÚÊ®ÊýÔØÆó¹ÜÒ»ÏßµÄÃþÅÀ
¹ö´òÖлýÀÛÁ˷ḻµÄ¹ÜÀí¾Ñ飬ÓÈÆäÉîÚϹ¤³§Éú²ú¡¢Æ·ÖÊ¡¢¹¤³Ì·½ÃæµÄ¹ÜÀíÔË×÷£¬¶Ô¿ç
¹ú¹«Ë¾ÊäÈëµÄ¹ÜÀí˼ÏëÆÄÓÐÑо¿£¬ÐγÉÁ˶À¾ßÌØÉ«µÄʵ¸ÉÐÍÖÆÔìÆóÒµ¹ÜÀí·½·¨ºÍÌåϵ¡£
ÀîÏÈÉú½«Àúʱʮ¶àÄê»ýÀÛÆðÀ´·á¸»µÄÉú²úÖÆÔìÓë¹ÜÀí¾Ñ飬½øÐÐŨËõÉý»ª£¬ÓÚ2000-2004
Äê¼ä£¬ÏȺó³ö°æÁË¡¶½Ü³ö°à×鳤¡·¡¶Æ·ÖÊ/Éú²ú/¹¤³Ì¡¡²¿ÃÅÖ÷¹Ü¸úÎÒѧ¡·ÏµÁдÔÊé¡¢
¡¶µç×ÓÐÐÒµISO9001£º2000ʵʩ¼¼·¨Óë°¸Àý¡·¡¢¡¶×¿Ô½Æ·Öʹܿء·¡¢¡¶Éú²úÏÖ³¡¹Ü¿Ø¡·¡¢
¡¶²Ö´¢ÓëÎïÁϹܿء·¡¢¡¶½Ü³ö¸úµ¥Ô±¡·¡¢¡¶SA8000±ê×¼¡·µÈÊé¼®µÈÊé¼®£¬Êܵ½ÆóÒµ½çµÄ
¸ß¶ÈÖØÊÓ²¢¸øÓèÁ˼«¸ßµÄÆÀ¼Û¡£ÀîÏÈÉúʵ¼ù¾Ñé·á¸»¡¢½²ÊÚ¹ý³ÌÁоٴóÁ¿°¸Àý¡¢ÌرðÇ¿
µ÷ʵÓÃÐԺͿɲÙ×÷ÐÔ£¬ÉîÊÜÌý¿ÎÈËÔ±µÄºÃÆÀºÍ×ð¾´.ÖÁ½ñÀîÏÈÉúΪÂú×ãÆóÒµµÄʵ¼ÊÐèÒª£¬
ÔÚÈ«¹ú¸÷µØ³É¹¦¾Ù°ìÁ˰ٶೡ½²×ù£¬ÊÚ¿ÎÈËÊý´ïµ½Íò¶àÈ˴Σ¬²¢ÎªÊý°Ù¼ÒÆóÒµÌṩ¹ý¹Ü
Àí×ÉѯºÍ¹ËÎÊ·þÎñ¡£
©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥
ÆóÒµÈçºÎÓ¦¶ÔÅ·ÃÀ¿Í»§²éÑ鹤³§ºÍʵʩSA8000±ê×¼
>ÎÒ--˾¾ö--¶¨ÅÉѧ--Ô±²Î--¼Ó¡¶ ÆóÒµÈçºÎÓ¦¶ÔÅ·ÃÀ¿Í»§²éÑ鹤³§ºÍʵʩSA8000±ê×¼¡·£¬
>Çë--¸ø--Óè--Áô--λ
>Çë´«====Õæµ½0512 67137582 Åà--ѵ--²¿ÊÕ
>µ¥Î»Ãû³Æ£º____________________________________Áª ϵ ÈË£º___________
>ÁªÏµµç»°£º_________________´«Õ棺_____________ѧԱÈËÊý£º___________
>ѧԱÐÕÃû£º__________________ ¸¶¿î·½Ê½£º 1.ת,ÕÊ 2.ÏÖ,½ð
¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô¡Ô
attached mail follows:
On 4/12/06, Chris Westbrook <westbc
clw19.com> wrote:
> I have a problem. I'm trying to get a Google search results page via snoopy
> and then display the links of the results it returns in an application. I
> know about the fetchlinks function in snoopy, but I'm having trouble getting
> the text between the <a> and </a> tags. Yeah, I know, I should use the
> Google API, but my client doesn't want me doing that, probably because they
> might have to pay for that. any suggestions?
Try this, and read up on regular expressions - it's an essential
knowledge if you're a programmer.
$text = "this is where the contents of your search result page goes";
preg_match_all('|<a[^>]*href="([^"]+)"[^>]*>([^<]+)<\/a>|U', $text,
$links, PREG_SET_ORDER);
print_r($links);
--
Kim Christensen
kim.christensen
gmail.com
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]