php-windows Digest 30 May 2003 00:07:14 -0000 Issue 1753 Topics (messages 20129 through 20139):
Re: Installation problems... 20129 by: Ryan Marrs 20130 by: Bobo Wieland 20131 by: Davy Obdam 20137 by: Bobo Wieland 20138 by: The.Wiz Re: Fatal Error??? 20132 by: Alejandro C. Garrammone Fatal Error?...Solved 20133 by: Alejandro C. Garrammone explode... 20134 by: David Martinez 20135 by: Charles P. Killmer 20136 by: Charles P. Killmer Paging in PHP 20139 by: Guru P Chaturvedi Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
--- Begin Message ---Are you running PHP as ISAPI or CGI? If it's ISAPI, you'll need to restart IIS before your changes to the php.ini file will take effect. -----Original Message----- From: Bobo Wieland [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:51 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Installation problems... Trying to reinstall PHP/MySQL/Apache on my WinXP setup... Ran in to some trouble though, that I hope you can help me with... First, I'm getting the following warning message: "Warning: session_start() [function.session-start]: open(/tmp\sess_a0b08aae778010e958503bfde26c0ab5, O_RDWR) failed: No such file or directory (2) in E:\plantis\sida_1.php on line 1" I have PHP installed in D:\PHP and in php.ini I've the session save path set to: "D:/PHP/tmp". The directory "tmp" is in my PHP directory. Second problem. I can't connect to mysql. The message says the following; Warning: mysql_connect() [function.mysql-connect]: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) in E:\pingstkyrkan\data\common_db.inc on line 12 0: Connection faild to the host localhost. I don't even know if I've installed MySQL correctly... WinMySQLAdmin says MyODBC; Not Found, Driver 3.51 Not Found.... Why should it be so hard to install and configure these things?!? Is it because it's free software? Please help me! thanks! .bobo
--- End Message ---
--- Begin Message ---I'm running PHP as ISAPI (i think... ;-) ) and I use Apache2 - which I've restarted a number of times... *sigh* thanks! .bobo ----- Original Message ----- From: "Ryan Marrs" <[EMAIL PROTECTED]> To: "'Bobo Wieland'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 29, 2003 12:54 PM Subject: RE: [PHP-WIN] Installation problems... > Are you running PHP as ISAPI or CGI? > > If it's ISAPI, you'll need to restart IIS before your changes to the php.ini > file will take effect. > > > > -----Original Message----- > From: Bobo Wieland [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 6:51 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Installation problems... > > > Trying to reinstall PHP/MySQL/Apache on my WinXP setup... > > Ran in to some trouble though, that I hope you can help me with... First, > I'm getting the following warning message: > > "Warning: session_start() [function.session-start]: > open(/tmp\sess_a0b08aae778010e958503bfde26c0ab5, O_RDWR) failed: No such > file or directory (2) in E:\plantis\sida_1.php on line 1" > > I have PHP installed in D:\PHP and in php.ini I've the session save path set > to: "D:/PHP/tmp". The directory "tmp" is in my PHP directory. > > > > Second problem. I can't connect to mysql. The message says the following; > > Warning: mysql_connect() [function.mysql-connect]: Access denied for user: > '[EMAIL PROTECTED]' (Using password: YES) in > E:\pingstkyrkan\data\common_db.inc on line 12 > 0: Connection faild to the host localhost. > > I don't even know if I've installed MySQL correctly... WinMySQLAdmin says > MyODBC; Not Found, Driver 3.51 Not Found.... > > Why should it be so hard to install and configure these things?!? Is it > because it's free software? > > > > Please help me! > > > > thanks! > > > > > .bobo > >
--- End Message ---
--- Begin Message --- Hi Bobo,
I am running the same setup as you (apache 2.045/php 4.3.1/MySQL 4.0.13).
The first problem with the session:
You should change this like
session.save_path="D:\PHP\tmp" <---- use a full path name
The second problem with MySQL is a bit more complicated, well i can be...
It could be that your password for [EMAIL PROTECTED] is not set properly or it could be that the user cannot connect from localhost.
I hope this helps
Best regards,
Davy Obdam
Bobo Wieland wrote:
I'm running PHP as ISAPI (i think... ;-) ) and I use Apache2 - which I've restarted a number of times...
*sigh*
thanks!
.bobo
----- Original Message ----- From: "Ryan Marrs" <[EMAIL PROTECTED]>
To: "'Bobo Wieland'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 29, 2003 12:54 PM
Subject: RE: [PHP-WIN] Installation problems...
Are you running PHP as ISAPI or CGI?php.ini
If it's ISAPI, you'll need to restart IIS before your changes to the
file will take effect.set
-----Original Message----- From: Bobo Wieland [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:51 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Installation problems...
Trying to reinstall PHP/MySQL/Apache on my WinXP setup...
Ran in to some trouble though, that I hope you can help me with... First, I'm getting the following warning message:
"Warning: session_start() [function.session-start]: open(/tmp\sess_a0b08aae778010e958503bfde26c0ab5, O_RDWR) failed: No such file or directory (2) in E:\plantis\sida_1.php on line 1"
I have PHP installed in D:\PHP and in php.ini I've the session save path
to: "D:/PHP/tmp". The directory "tmp" is in my PHP directory.
Second problem. I can't connect to mysql. The message says the following;
Warning: mysql_connect() [function.mysql-connect]: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) in E:\pingstkyrkan\data\common_db.inc on line 12 0: Connection faild to the host localhost.
I don't even know if I've installed MySQL correctly... WinMySQLAdmin says MyODBC; Not Found, Driver 3.51 Not Found....
Why should it be so hard to install and configure these things?!? Is it because it's free software?
Please help me!
thanks!
.bobo
--
-----------------------------------------------------------------------
Davy Obdam Web application developer
Networking4all email: [EMAIL PROTECTED] email: [EMAIL PROTECTED] internet: http://www.networking4all.com -----------------------------------------------------------------------
--- End Message ---
--- Begin Message ---Hi! I've managed to fix the session problem thanks to your suggestions! I still can't get MySQL to work, though... Maybe I should go back to the old version 1.'something'...? I don't know... Thanks anyway for helping me solving the first problem! Thanks and thanks again! .b > >>-----Original Message----- > >>From: Bobo Wieland [mailto:[EMAIL PROTECTED] > >>Sent: Thursday, May 29, 2003 6:51 AM > >>To: [EMAIL PROTECTED] > >>Subject: [PHP-WIN] Installation problems... > >> > >> > >>Trying to reinstall PHP/MySQL/Apache on my WinXP setup... > >> > >>Ran in to some trouble though, that I hope you can help me with... First, > >>I'm getting the following warning message: > >> > >>"Warning: session_start() [function.session-start]: > >>open(/tmp\sess_a0b08aae778010e958503bfde26c0ab5, O_RDWR) failed: No such > >>file or directory (2) in E:\plantis\sida_1.php on line 1" > >> > >>I have PHP installed in D:\PHP and in php.ini I've the session save path > >> > >> > >set > > > > > >>to: "D:/PHP/tmp". The directory "tmp" is in my PHP directory. > >> > >> > >> > >>Second problem. I can't connect to mysql. The message says the following; > >> > >>Warning: mysql_connect() [function.mysql-connect]: Access denied for user: > >>'[EMAIL PROTECTED]' (Using password: YES) in > >>E:\pingstkyrkan\data\common_db.inc on line 12 > >>0: Connection faild to the host localhost. > >> > >>I don't even know if I've installed MySQL correctly... WinMySQLAdmin says > >>MyODBC; Not Found, Driver 3.51 Not Found.... > >> > >>Why should it be so hard to install and configure these things?!? Is it > >>because it's free software? > >> > >> > >> > >>Please help me! > >> > >> > >> > >>thanks! > >> > >> > >> > >> > >>.bobo > >> > >> > >> > >> > > > > > > > > > > -- > ----------------------------------------------------------------------- > Davy Obdam > Web application developer > > Networking4all > email: [EMAIL PROTECTED] > email: [EMAIL PROTECTED] > internet: http://www.networking4all.com > ----------------------------------------------------------------------- > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
--- End Message ---
--- Begin Message ---Go grab a web interface for Mysql admin ( www.phpmyadmin.net ). Download the zip file and put it under your web directory and rename it to phpmyadmin ( \Apache\htdocs ??? Or something like that). Then goto that directory in your browser http://127.0.0.1/phpmyadmin/ you should see a web interface for Mysql ( assuming mysql is installed on the same machine). By the way, Mysql uses a tcp connection so there is no need to setup an ODBC connection. "Bobo Wieland" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! I've managed to fix the session problem thanks to your suggestions! I > still can't get MySQL to work, though... Maybe I should go back to the old > version 1.'something'...? I don't know... > > Thanks anyway for helping me solving the first problem! Thanks and thanks > again! > > .b > > > > >>-----Original Message----- > > >>From: Bobo Wieland [mailto:[EMAIL PROTECTED] > > >>Sent: Thursday, May 29, 2003 6:51 AM > > >>To: [EMAIL PROTECTED] > > >>Subject: [PHP-WIN] Installation problems... > > >> > > >> > > >>Trying to reinstall PHP/MySQL/Apache on my WinXP setup... > > >> > > >>Ran in to some trouble though, that I hope you can help me with... > First, > > >>I'm getting the following warning message: > > >> > > >>"Warning: session_start() [function.session-start]: > > >>open(/tmp\sess_a0b08aae778010e958503bfde26c0ab5, O_RDWR) failed: No such > > >>file or directory (2) in E:\plantis\sida_1.php on line 1" > > >> > > >>I have PHP installed in D:\PHP and in php.ini I've the session save path > > >> > > >> > > >set > > > > > > > > >>to: "D:/PHP/tmp". The directory "tmp" is in my PHP directory. > > >> > > >> > > >> > > >>Second problem. I can't connect to mysql. The message says the > following; > > >> > > >>Warning: mysql_connect() [function.mysql-connect]: Access denied for > user: > > >>'[EMAIL PROTECTED]' (Using password: YES) in > > >>E:\pingstkyrkan\data\common_db.inc on line 12 > > >>0: Connection faild to the host localhost. > > >> > > >>I don't even know if I've installed MySQL correctly... WinMySQLAdmin > says > > >>MyODBC; Not Found, Driver 3.51 Not Found.... > > >> > > >>Why should it be so hard to install and configure these things?!? Is it > > >>because it's free software? > > >> > > >> > > >> > > >>Please help me! > > >> > > >> > > >> > > >>thanks! > > >> > > >> > > >> > > >> > > >>.bobo > > >> > > >> > > >> > > >> > > > > > > > > > > > > > > > > -- > > ----------------------------------------------------------------------- > > Davy Obdam > > Web application developer > > > > Networking4all > > email: [EMAIL PROTECTED] > > email: [EMAIL PROTECTED] > > internet: http://www.networking4all.com > > ----------------------------------------------------------------------- > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >
--- End Message ---
--- Begin Message ---Cristian...the script you send is the initial script...not the debugged by you. If you can send the debugged script, I apreciated. Thx again, Alex ----- Original Message ----- From: Cristian MARIN To: [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 5:08 AM Subject: [PHP-WIN] Re: Fatal Error??? Here is your script debugged but I don't know if is doing what is supposed to do .... From now you have to see if the logical part is all right. I don't have a printer on my computer right now so I cannot teste him very well. -- ------------------------------------------------- Cristian MARIN InterAKT Online (www.interakt.ro) +4021 411 2610 [EMAIL PROTECTED] "Alejandro C. Garrammone" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys...I'm in trouble again...see if you can help me... > I get the following error when I run the following script. > Let me try to explain the code. I'm writing some code for an intranet web > page, I'm want to print to a printer some text but I'm wanted to be printed > centered. If the text exceed the 20 characters the line need to be splited > up in 2 lines...an so on... > > The error that I get is the following: > > Fatal error: Maximum execution time of 60 seconds exceeded in c:\archivos de > programa\apache group\apache\htdocs\printer.php on line 116 > > The line error is marked with ****** > > Here is the code: > > <? > > $i=20; > $handle = printer_open(); > print printer_get_option($handle, PRINTER_PAPER_FORMAT); > $vardumped= printer_get_option($handle, PRINTER_PAPER_WIDTH); > $vardumped1= printer_get_option($handle, PRINTER_PAPER_LENGTH); > printer_set_option($handle, PRINTER_PAPER_FORMAT, PRINTER_FORMAT_LEGAL); > PRINT "$vardumped<BR>"; > PRINT "$vardumped1<BR>"; > $var1= printer_get_option($handle, PRINTER_PAPER_FORMAT); > $var2= printer_get_option($handle, PRINTER_PAPER_WIDTH); > $var3= printer_get_option($handle, PRINTER_PAPER_LENGTH); > PRINT "$var1<BR>"; > PRINT "$var2<BR>"; > PRINT "$var3<BR>"; > printer_start_doc($handle, "My Document"); > printer_start_page($handle); > > $pen = printer_create_pen(PRINTER_PEN_SOLID, 30, "000000"); > printer_select_pen($handle, $pen); > > > $text_asunto="ASUNTO N°: "; > > $asunto="ALEJANDRO CESAR GARRAMMONE SUPUESTO"; /*max 20*/ > $len=strlen($asunto); > IF ($len<=20): > SWITCH($len): > case 20: > printer_select_font($handle, $font5); /*50*/ > printer_draw_text($handle, "$asunto", 500, 2800); > break; > case 19: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 500, 2800); > break; > case 18: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 750, 2800); > break; > case 17: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 750, 2800); > break; > case 16: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 850, 2800); > break; > case 15: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 950, 2800); > break; > case 14: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 950, 2800); > break; > case 13: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 1050, 2800); > break; > case 12: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 1250, 2800); > break; > case 11: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 1350, 2800); > break; > case 10: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 1400, 2800); > break; > case 9: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 1400, 2800); > break; > case 8: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 1500, 2800); > break; /*100*/ > case 7: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 1700, 2800); > break; > case 6: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 1800, 2800); > break; > case 5: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 2000, 2800); > break; > case 4: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 2100, 2800); > break; > case 3: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 2200, 2800); > break; > case 2: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 2300, 2800); > break; > case 1: > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto", 2300, 2800); > break; > ENDSWITCH; > /*130*/ > ENDIF; > > IF ($len<=41): > WHILE ($i<>0): > IF ($asunto[$i]==" "): *************This is line 116 > $corte1=$i; > $i=0; > ENDIF; > $i=$i + 1; > ENDWHILE; > $i=$corte1 + 20; > IF ($i>=$len): > $i=$len; > ENDIF; > > WHILE ($i<>$corte1): > IF($asunto[$i]==" "): > $corte2=$i; > $i=$corte1; > ENDIF; > $i= $i + 1; > ENDWHILE; > > ENDIF; > $j=0; > WHILE ($j==$corte1): > $asunto_p1="$asunto_p1" . $asunto[$j]; > $j = $j + 1; > ENDWHILE; > $j=$corte1; > WHILE ($j==$corte2): > $asunto_p2="$asunto_p2" . $asunto[$j]; > $j = $j + 1; > ENDWHILE; > > > > > > > > $font = printer_create_font("Times New Roman", 110, 55, PRINTER_FW_BOLD, > TRUE, FALSE, FALSE, 0); > printer_select_font($handle, $font); > printer_draw_text($handle, "Ministerio Público", 1850, 1500); > printer_draw_text($handle, "Unidad Fiscal de Investigación de Delitos > Tributarios y Contrabando", 650, 1650); > printer_draw_text($handle, "UFITCO", 2050, 1800); > $font1=printer_create_font("Times New Roman", 143, 76, PRINTER_FW_BOLD, > FALSE, TRUE, FALSE, 0); > printer_select_font($handle, $font1); > printer_draw_text($handle, "$text_asunto", 500, 2100); > $font2=printer_create_font("Times New Roman", 143, 76, PRINTER_FW_BOLD, > FALSE, FALSE, FALSE, 0); > printer_select_font($handle, $font2); > printer_draw_text($handle, "$junta", 1400, 2100); > $font3=printer_create_font("Times New Roman", 138, 70, PRINTER_FW_BOLD, > FALSE, TRUE, FALSE, 0); > $font4=printer_create_font("Times New Roman", 138, 70, PRINTER_FW_BOLD, > FALSE, FALSE, FALSE, 0); > printer_select_font($handle, $font3); > printer_draw_text($handle, "INVESTIGACIÓN PRELIMINAR N°: ", 500, 2400); > printer_select_font($handle, $font4); > printer_draw_text($handle, "$inv_prel1", 2850, 2350); > $font5=printer_create_font("Times New Roman", 220, 83, PRINTER_FW_NORMAL, > FALSE, FALSE, FALSE,0); > $font6=printer_create_font("Times New Roman", 120, 62, PRINTER_FW_BOLD, > FALSE, FALSE, FALSE,0); > > printer_select_font($handle, $font5); > printer_draw_text($handle, "$asunto_p1", 1050, 2800); > printer_draw_text($handle, "$asunto_p2", 1050, 3100); > printer_draw_text($handle, "$corte3", 1050, 3400); > > > printer_select_font($handle, $font6); > printer_draw_text($handle, "Fecha de Recepción en la UFITCO: $fecha_as1", > 500, 4000); > printer_draw_text($handle, "Secretaria: $sec_a_cargo1", 500, 4300); > printer_draw_text($handle, "Responsable: $responsable1", 500, 4600); > printer_draw_text($handle, "Observaciones:", 500, 4900); > printer_draw_line($handle, 1600, 5000, 4500, 5000); > printer_draw_line($handle, 500, 5300, 4500, 5300); > printer_draw_line($handle, 500, 5600, 4500, 5600); > printer_draw_line($handle, 500, 5900, 4500, 5900); > printer_draw_line($handle, 500, 6200, 4500, 6200); > printer_draw_text($handle, "Juzgado N°: 5", 2850, 6500); > printer_draw_text($handle, "Secretaría N°: 10", 2850, 6800); > printer_draw_text($handle, "Fiscalía N°: 6", 2850, 7100); > > > > printer_draw_bmp($handle, "c:\\escudo.bmp", 2000, 540); > > > > printer_delete_pen($pen); > > printer_end_page($handle); > printer_end_doc($handle); > printer_close($handle); > > > ?> > > <HTML> > <HEAD> > <meta name="Microsoft Theme" content="indust 011"> > </head> > <BODY background="indtextb.jpg" bgcolor="#FFFFFF" text="#000000" > link="#3366CC" vlink="#666666" alink="#996600"> > <!--mstheme--><font face="Trebuchet MS, Arial, Helvetica"> > <CENTER><P><i><b><font color="#0000FF"></center> > <center> <font size="3"> > </font><br> > <FORM ACTION="as_insercion.php" METHOD="POST"> > <? $submit="True"; ?> > <INPUT TYPE="hidden" NAME="submit" VALUE="<? echo $submit ?>"> > <P> > <INPUT TYPE="hidden" NAME="usuario" VALUE="<? echo $usuario ?>"> > <P> > <INPUT TYPE="hidden" NAME="passwrd" VALUE="<? echo $passwrd ?>"> > <P> > > <CENTER><INPUT TYPE="submit" name="submit" VALUE="Insertar otra > Denuncia"></CENTER> > > </FORM></CENTER> > > </TD></TR></TABLE> > <!--mstheme--><font face="Trebuchet MS, Arial, Helvetica"> > <br> > <center> <font size="3"> > </font><br> > <a href="asunto.html">Salir y volver a la pagina principal de > Asuntos.</a><BR> > <a href="index.html">Salir y volver a la pagina principal.</a> > </center> > > <!--mstheme--></font> > > </BODY> > </HTML> > ------------------------------------------------------------------------------ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---I want to thank Cristian MARIN & Svensson, B.A.T. for working on my code to solve my problem. I think that the behavior of guys like them are vital for this newsgroup to survive. Guys, THANK YOU AGAIN.
--- End Message ---
--- Begin Message ---Here is the explode function: explode($delimiter, $string); This function looks in $string for the specified delimiter then splits up $string by $delimiter and returns those values into an array. I am using the explode() function to divide up a string into an array by commas. According to the PHP.net documentation, if the string passed to explode() does not have an instance of the specified $delimiter, the function will return the value of $string. However, I find when I use the function, if the specified $delimiter does not exist, explode() simply returns the word "Array." Any ideas as to why this is? --Dave
--- End Message ---
--- Begin Message ---It returns an array with one element. <? $test = explode("no commas",","); echo $test; echo $test[0]; ?> Array no commas -----Original Message----- From: David Martinez [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] explode... Here is the explode function: explode($delimiter, $string); This function looks in $string for the specified delimiter then splits up $string by $delimiter and returns those values into an array. I am using the explode() function to divide up a string into an array by commas. According to the PHP.net documentation, if the string passed to explode() does not have an instance of the specified $delimiter, the function will return the value of $string. However, I find when I use the function, if the specified $delimiter does not exist, explode() simply returns the word "Array." Any ideas as to why this is? --Dave -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---I had the parameters backwords but you get the idea. $test = explode(",","no commas"); -----Original Message----- From: Charles P. Killmer Sent: Thursday, May 29, 2003 3:24 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] explode... It returns an array with one element. <? $test = explode("no commas",","); echo $test; echo $test[0]; ?> Array no commas -----Original Message----- From: David Martinez [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] explode... Here is the explode function: explode($delimiter, $string); This function looks in $string for the specified delimiter then splits up $string by $delimiter and returns those values into an array. I am using the explode() function to divide up a string into an array by commas. According to the PHP.net documentation, if the string passed to explode() does not have an instance of the specified $delimiter, the function will return the value of $string. However, I find when I use the function, if the specified $delimiter does not exist, explode() simply returns the word "Array." Any ideas as to why this is? --Dave -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---Hi all, Are there anyways of implementing paging in PHP? it's basically displaying results of a SQL query in logical blocks of 'n' records.... as u see in search engines... like 1 - 20 or 100 with Warm Regards, Guru. --------------------------------------- Phone: (+91)9845290270 URL: www.gangarasa.com Yahoo IM: guru4vedi MSN: [EMAIL PROTECTED] ---------------------------------------
--- End Message ---