[PHP-CVS] cvs: php4 /ext/dbx dbx.c
mboeren Mon Mar 26 00:26:07 2001 EDT Modified files: /php4/ext/dbx dbx.c Log: Removed #include php_config.h, since it was not necessary (Mc) Index: php4/ext/dbx/dbx.c diff -u php4/ext/dbx/dbx.c:1.5 php4/ext/dbx/dbx.c:1.6 --- php4/ext/dbx/dbx.c:1.5 Fri Mar 23 06:50:16 2001 +++ php4/ext/dbx/dbx.c Mon Mar 26 00:26:07 2001 @@ -24,9 +24,6 @@ #include "php_ini.h" #include "php_dbx.h" #include "ext/standard/info.h" -#if !(WIN32|WINNT) -#include "php_config.h" -#endif /*/ defines for supported databases /*/ #define DBX_UNKNOWN 0 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problem with mail function
Hi, Can anyone help me the mail function. I am using PHP 4.04, on Windows 98,with PWS. 1.What must I configure thse settings in my php.ini file to? SMTP= localhost sendmail_from = [EMAIL PROTECTED] 2.Why does this code give me the following error? Warning: Failed to Connect Code: $to = '[EMAIL PROTECTED]'; $from = '[EMAIL PROTECTED]'; $body = $MainAgentCode; $headers = "From: $from"; $success = mail($to, "Inpro Web site", $body, $headers); if ($success) {//begin echo "BCENTERThank you for your input/CENTER/B\n"; }//end else{ echo "Error \n"; } Thanks to anyone who can help. Sonya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Authentication
- Original Message - From: "Jon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 26, 2001 1:38 AM Subject: [PHP] PHP Authentication Hi, I have read that for using PHP authentication I must be able to user variables such as $PHP_AUTH_USER that are only avaible when PHP is installed as a module. On the other hand I am using APACHE 1.3.17 with PHP 4.04 and I have configured Apache with the following lines: ScriptAlias /php4/ "C:/php/" Action application/x-httpd-php4 "/php4/php.exe" AddType application/x-httpd-php4 .php As I think it could be interesting to use this kind of authentication, I need some help for configuring PHP as a module discarding the CGI version of PHP that I think I am using with the lines of code above, so I would be very grateful if anyone could give some help about configuring PHP this way. Thank everybody, This is all I did added this to the module airea LoadModule php4_module d:/php/sapi/php4apache.dll and just uncomented this AddType application/x-httpd-php .php hope this helps -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] get the domain to display on my page
Well, you can use the $HTTP_REFERER, but it's not all to reliable. On Mon, Mar 26, 2001 at 04:13:17PM -0600, Jacky wrote: Hi all Is there anyway I can get the domain name where the viwer came from and write it out on my page? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] about:home
The JavaScript solution to this: window.home(); Don't know how to do this in PHP. Don't this that's possible... RenzE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem with mail function
From: "Sonya Davey / QDCEL" [EMAIL PROTECTED] Sent: Monday, March 26, 2001 10:55 AM 1.What must I configure thse settings in my php.ini file to? SMTP = localhost sendmail_from = [EMAIL PROTECTED] SMTP must be set to the address of a SMTP-server (Simple Mail Transfer Protocol) - that is a server through which you can send mail. If this Windows98 machine of yours is your personal and you connect to the internet through a dialup connection, try to use the same server which is specified in your mail-program. It is because of this setting that your code fails to execute. It tries to connect to a SMTP service on "localhost" which is your own machine. Windows98 doesn't have a SMTP-service installed per default. - Carsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4
rasmus Mon Mar 26 01:36:14 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma for Martin Index: CVSROOT/avail diff -u CVSROOT/avail:1.127 CVSROOT/avail:1.128 --- CVSROOT/avail:1.127 Sun Mar 25 03:35:21 2001 +++ CVSROOT/avail Mon Mar 26 01:36:13 2001 @@ -2,12 +2,12 @@ unavail avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,andre,sniper,david,lyric,zimt,mk,goba,zak,jmcastagnetto,dams|phpweb -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly,tfromm,subjective,cox,mboeren|php4/pear,pearweb,pear -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo|php4,php3,php31,phpfi -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,hholzgra|functable +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly,tfromm,subjective,cox,mboeren|php4/pear,pearweb,pear +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin|php4,php3,php31,phpfi +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,martin,hholzgra|functable avail|rasmus,sterling,jimw|pres avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,camber,ohrn,romolo,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr,subjective,mboeren,ufux|phpdoc
Re: [PHP] array in cookie . . .
On Monday 26 March 2001 05:15, you wrote: Im trying to get an array saved in a cookie, I have this snippet so far.. ? if (newuser == yes) { $user_reg[0]= $username; $user_reg[1]= $password; $user_reg[2]= $fullname; $user_reg[3]= $email; $user_reg[4]= $age; setcookie ("user_reg" , $user_reg, time() + 360 * 86400); use serialize($user_reg). You can only save strings in cookies. is there a limit to how much I can save in the array ? IIRC 8192 bytes -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Problem with mail function
The mail function uses the specified SMTP mail server to send out the mail. you will need to set the php.ini variables as follows SMTP= localhost ; The name or IP address of the machine which is running the SMTP Server. for ex ; mail.flashmail.com sendmail_from = [EMAIL PROTECTED]; The address that you want to appear in the From Field of the mail. The error you are getting is most probably because of the fact that there is no SMTP server running on the machine specified in the above SMTP setting. take a look at the following link for more info on the mail function - http://www.php.net/manual/en/function.mail.php hope that helps regards Ankur Verma HCL Technologies Noida Uttar Pradesh India -Original Message- From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 2:25 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Problem with mail function Hi, Can anyone help me the mail function. I am using PHP 4.04, on Windows 98,with PWS. 1.What must I configure thse settings in my php.ini file to? SMTP= localhost sendmail_from = [EMAIL PROTECTED] 2.Why does this code give me the following error? Warning: Failed to Connect Code: $to = '[EMAIL PROTECTED]'; $from = '[EMAIL PROTECTED]'; $body = $MainAgentCode; $headers = "From: $from"; $success = mail($to, "Inpro Web site", $body, $headers); if ($success) {//begin echo "BCENTERThank you for your input/CENTER/B\n"; }//end e{ echo "Error \n"; } Thanks to anyone who can help. Sonya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /ext/ldap config.m4
sniper Mon Mar 26 02:30:48 2001 EDT Modified files: /php4/ext/ldap config.m4 Log: Support Solaris 8 ldap. Index: php4/ext/ldap/config.m4 diff -u php4/ext/ldap/config.m4:1.14 php4/ext/ldap/config.m4:1.15 --- php4/ext/ldap/config.m4:1.14Sun Mar 11 18:06:06 2001 +++ php4/ext/ldap/config.m4 Mon Mar 26 02:30:48 2001 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.14 2001/03/12 02:06:06 sniper Exp $ +dnl $Id: config.m4,v 1.15 2001/03/26 10:30:48 sniper Exp $ AC_DEFUN(PHP_LDAP_CHECKS, [ if test -f $1/include/ldap.h; then @@ -48,6 +48,9 @@ if test -f $LDAP_LIBDIR/liblber.a -o -f $LDAP_LIBDIR/liblber.so -o -f $LDAP_LIBDIR/liblber.sl; then AC_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) +AC_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + + elif test -f $LDAP_LIBDIR/libldap.so.3; then AC_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) elif test -f $LDAP_LIBDIR/libldapssl41.so -o -f $LDAP_LIBDIR/libldapssl41.sl; then -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Prob with sending a php variable in an email
I have a problem sending a php variable ie $Username in a simple email form, example as follows: body ? Username="Sysdba"; ? a href="Mailto:[EMAIL PROTECTED]? subject= Web site body=User name: ? $Username; ? Main Agent Code:" Support Desk/a /body Thanks in advance! Sonya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Prob with sendin'php-general@lists.php.net'g a php variable in an email
Hi Sonya, Looks like you need a $ before the variable name in the first instance: ? $Username = "Sysdba"; ? Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]] Sent: 26 March 2001 12:39 To: '[EMAIL PROTECTED]' Subject: [PHP] Prob with sendin'[EMAIL PROTECTED]'g a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: body ? Username="Sysdba"; ? a href="Mailto:[EMAIL PROTECTED]? subject= Web site body=User name: ? $Username; ? Main Agent Code:" Support Desk/a /body Thanks in advance! Sonya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Prob with sending a php variable in an email
Hi Sonya, Looks like you need a $ before the variable name in the first instance: ? $Username = "Sysdba"; ? Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]] Sent: 26 March 2001 12:39 To: '[EMAIL PROTECTED]' Subject: [PHP] Prob with sendin'[EMAIL PROTECTED]'g a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: body ? Username="Sysdba"; ? a href="Mailto:[EMAIL PROTECTED]? subject= Web site body=User name: ? $Username; ? Main Agent Code:" Support Desk/a /body Thanks in advance! Sonya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Prob with sending a php variable in an email
try with body ? $Username="Sysdba"; ? a href="Mailto:[EMAIL PROTECTED]? subject= Web site body=User name: ? $Username; ? Main Agent Code:" Support Desk/a /body hope that helps regards Ankur Verma -Original Message- From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 4:09 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Prob with sending a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: body ? Username="Sysdba"; ? a href="Mailto:[EMAIL PROTECTED]? subject= Web site body=User name: ? $Username; ? Main Agent Code:" Support Desk/a /body Thanks in advance! Sonya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Prob with sending a php variable in an email
sorry for the last mail! try with body ? $Username="Sysdba"; ? a href="Mailto:[EMAIL PROTECTED]? subject= Web site body=User name: ? echo $Username; ? Main Agent Code:" Support Desk/a /body hope that helps Ankur Verma HCL Technologies Noida -Original Message- From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 4:09 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Prob with sending a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: body ? Username="Sysdba"; ? a href="Mailto:[EMAIL PROTECTED]? subject= Web site body=User name: ? $Username; ? Main Agent Code:" Support Desk/a /body Thanks in advance! Sonya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problem with curl
Hello all, i have some problems with curl-7.7 in php-4.0.4. When i post to a https- Server through curl the returned data is corrupted. I post to a transaction-server. The servers response is encrypted data. I actually post all variables through the URL. When i try to post the vars through the "CURLOPT_POST" and "CURLOPT_POSTFIELDS" directives the server couldn't get the values. What's wrong ?? Here is my script ### $user_agent="Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" ; $URL="https://www.netkauf.de/paygate/direct.asp" ; $Send_Opts="HaendlerID=".$HaendlerID."Len=".$Len."Data=".$Data ; $URL=$URL."?".$Send_Opts ; function post_data($URL) { $ch=curl_init(); curl_setopt($ch, CURLOPT_URL,"$URL"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 120); //times out after 120s curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //curl_setopt($ch, CURLOPT_POST, 1); //curl_setopt($ch, CURLOPT_POSTFIELDS, "HaendlerID=$HaendlerIDLen=$LenData=$Data"); $result=curl_exec($ch); curl_close ($ch); return $result ; } $result=post_data($URL) ; /* Redirect zur naechten Page um Status u ändern */ header ("Location: http://paygate.mydomain.de/change_stat.php?HaendlerID=$HaendlerID$result"); exit ; -- ---* I-NetPartner GmbH Hans-Peter Straub Seewiesenstrasse 12 D-73054 Eislingen -- Phone: +49 7161 9849955 Fax: +49 7161 9849956 -- eMail: [EMAIL PROTECTED] Web: http://www.I-NetPartner.de ---* ** Informieren Sie Sich über ** -- GigaLan -- ** das Funknetz im Filstal ** http://www.GigaLan.de ---* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] .doc to .txt
Hi all, I need to convert .doc files into text. I know it`s possible to do it by converting it in word, but I need to give the people of the site opportunity to upload a .doc file and then I need to display it (and not in another window, but rather 'in the site' like you would normally display some text). All the info, code examples, urls you can provide me conserning this one, I would appreciate it. And when answering, please send it to my private email as well, [EMAIL PROTECTED] Thank you in advance, Siim EInfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php3, files and Apache
Hello Guys, Anybody can help to write script in php3 that will send to browser chosen file from server's directory to which Apache does not have access. It is important that klient's browser, depending on file type, could save it to disk or display (eg. text or graphics). Will be gratefull fo rany help. Regards
RE: [PHP] .doc to .txt
check out the microsoft word parser at www.wvware.com you can call this program ysing the exec() or system() function. also, search the mail archives for discussion on this topic in the very recent past. hope that helps regards Ankur verma HCL Technologies Noida India -Original Message- From: Siim Einfeldt aka Itpunk [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] .doc to .txt Hi all, I need to convert .doc files into text. I know it`s possible to do it by converting it in word, but I need to give the people of the site opportunity to upload a .doc file and then I need to display it (and not in another window, but rather 'in the site' like you would normally display some text). All the info, code examples, urls you can provide me conserning this one, I would appreciate it. And when answering, please send it to my private email as well, [EMAIL PROTECTED] Thank you in advance, Siim EInfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php sessions and classes
hi, i'm busily rewriting an exisitng calendar system that is in use at work. we're using UML as a design tool and hope to have an OO version of the system we have at the minute that wil 'fit in' with future devs. our system at the moment makes heavy use of postgresql and i am hoping to populate various object from the data in the db. our system also relies on session for passing data between pages and the site as a whole. what i need to know is this in a kind of yes or no fashion: will php allow me to create a class and then have access to the class from other pages and scripts ? Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ignore_user_abort
Hi all, i have PHP 3.0.12 running on Linux/Apache 1.3.9 platform My problem is ignore_user_abort function. As described in documentatuion if i put in the beginning of my script set_time_limit(0); //no time limit ignore_user_abort(0); the script should terminate when user hits Stop button or leaves the page, but this does not happen, instead the script keeps on working. Anyone has any ideas? Plamen Slavov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php 4.04pl 1-3 for red hat 7
I treid running configure with all the current config options. First time through it puked at apxs so, after a little research, installed the apache devel rpm to get apxs. Configure was chugging right along but failed. It got pased system checks, started "configuring extensions" and then failed. It reported "cannot find necessary header files". I am sure I just need some devel software installed or have an incorrect path, but what is the best way to figure out which header is missing or not pathed? Larry Hotchkiss wrote: Thanks. I just grabbed the source and am looking over it. The way the red hat RPM is configed is perfect for me except for the exclusion of enable-trans-sid. Am I correct in assuming in addition to using --enable-trans-sid that I should also use the current config options displayed by phpinfo() ? Larry H. "..s.c.o.t.t.. [gts]" wrote: snip.. (replace php. with whatever the PHP tarball is named) at the prompt (you dont need to be root) type: tar xvfz php.tar.gz cd php. ./configure --enable-trans-sid make make test if you didnt get any errors, then (as root) type: make install snip... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] test
Is the list alive ? ~ K -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Fw: test
- Original Message - From: "TV Karthick Kumar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 26, 2001 3:16 PM Subject: test Is the list alive ? ~ K -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] reading a URL...
Just use $id in your code. That should do the job. Variables that are passed using GET or POST you can just use in your code. Ofcourse you have to add the $-sign. So if you use the URI: http://www.arandomsite.com/news_story.php?id=123 You can just use: "SELECT xxx FROM yyy WHERE id=$id" RenzE. On Mon, Mar 26, 2001 at 02:26:27PM +, [EMAIL PROTECTED] wrote: 'ello, Is it Possible, in PHP to read a URL? What I am trying to do is this... I have many news stories in a database, and a single static news page, that calls the story, and the corresponding headline. I have looked about on-line, and seen a common URL,... http://www.arandomsite.com/news_story.php?id=123 I have adopted this method, and it only displays the top most story in my database, no matter what news ID I use. Can I get the ID number from the URL?, and then pass that to the SQL statement? I cannot find a tutorial or similar on-line anywhere. Hope you can help, Tris... P.S, after getting this all set up, my boss asked me to turn everything into .jsp pages. SO, I am off to buy a "JSP in 20 seconds" Type books, any ideas? ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Mvg, Renze Munnik Manager Business Development DataLink BV E-mail : [EMAIL PROTECTED] Telefoon: 023-532.61.62 Fax : 023-532.21.44 Mobiel : 06-218.111.43 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help, I can't understand the 'arg_separator' directive
Hi! My system : win 98SE, Apache 1.3.19 the latest php4.0.5-RC1 binaries from www.php4win.de My problem is that I can't understand how the 'arg_separtor' directive works. Here is my test script : ?php // grabs the sent variables names and values while(list($name, $value) = each($HTTP_GET_VARS)) echo($name . ' = ' . $value . 'br /'); ? p a href="test_amp.php?var1=1var2=2var3=3"test with simple ''/abr /br / a href="test_amp.php?var1=1amp;var2=2amp;var3=3"test with ' amp;'/a /p Note that the second link contains ' amp;' to separate variables (I don't how this will be displayed on the list). If the 'arg_separator' directive is set to 'amp;' I always (whatever is the link I've clicked on among the two previous ones) get the results: r1 = 1 r2 = 2 r3 = 3 What's matter? I must have done something wrong but what? Thanks in advance, --- Loc (aka lolo) for the phpHeaven-team. Please reply to: [EMAIL PROTECTED] --- - La messagerie itinrante sans abonnement NetCourrier - Web : www.netcourrier.com - Minitel : 3615 NETCOURRIER Tlphone : 08 36 69 00 21 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Header Problem...
Hi all, could any one tell me that how do I go to a specific URL using php command.At the same time, I would like to pass the variable to the page. I used header to do it but failed, with the error message:- Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 3 Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 4 Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 26 And our code is as below:- ?php header("Pragma : no-cache "); header("Cache-Control :no-cache,must-revalidate"); $db=mysql_connect("localhost","root","123456"); mysql_select_db("test",$db); $query="select trade_name_c from confirm_member_info where trade_name_c = '$tradeName'"; $result=mysql_query($query,$db); $row=mysql_fetch_row($result); if($row[0]==$tradeName) { //echo "Sorry, the Trade Name b$tradeName/b has been usedBr"; //echo "Please Choose other Trade NameBR"; //echo "Click a href='mysignup_1.php'here/a to back."; header("Location: http://192.168.0.1/mysignup_1.php"); } else { //echo "Your Trade Name and password has been accepttedbr"; //echo "Click to proceed."; //input type='hidden' name='introducer' value='$introducer' header("Location: http://www.hotmail.com"); } ? input type="hidden" name="tradeName" value="?$tradeName?" input type="hidden" name="password" value="?$password?" input type="hidden" name="MotherName" value="?$MotherName?" I tried to use hidden input type to pass the value, but can it work without form and submit button?? I would appreaciate if you could give me suggestions and advice. thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] stil problems with fopen and URL
Sorry for re posting this problem, but after spending a bunch of hours still there is something "misterious" to me: can you find anything broken in this code? (Again it works fine with 3.3.0.15 and 3.3.0.16 but is broken with 3.3.0.18, on Debian, apache). $noaa = "http://weather.noaa.gov/cgi-bin/mgetmetar.pl?=MUHA" ; $wfile = fopen ($noaa, "r"); $weathcont = fread ($wfile , 1024); ereg (" ([0-9][0-9])/([0-9][0-9]) " , $weathcont, $reg); $far = 32 + ( $reg[1] / (5.0 / 9.0)); $data = date("d F"); $ora = (date("H")-6); echo "font size=\"-1\" color=\"SteelBlue\"b Temperature in Habana, on $data, at "; if ($ora 0){ $timezone = ($ora + 24); echo $timezone; }else{ echo $ora ; } echo " is:/b/fontbr font color=\"SteelBlue\"b$reg[1] C ($far F)/b/font"; fclose($wfile); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] .doc to .txt
On Mon, 26 Mar 2001, Ankur Verma wrote: check out the microsoft word parser at www.wvware.com you can call this program ysing the exec() or system() function. also, search the mail archives for discussion on this topic in the very recent past. There is one utility which I find very helpful - 'catdoc'. It's homepage is: http://www.ice.ru/~vitus/catdoc/ hope that helps regards Ankur verma HCL Technologies Noida India Max Pyziur BRAMA - Gateway Ukraine [EMAIL PROTECTED] http://www.brama.com/ -Original Message- From: Siim Einfeldt aka Itpunk [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] .doc to .txt Hi all, I need to convert .doc files into text. I know it`s possible to do it by converting it in word, but I need to give the people of the site opportunity to upload a .doc file and then I need to display it (and not in another window, but rather 'in the site' like you would normally display some text). All the info, code examples, urls you can provide me conserning this one, I would appreciate it. And when answering, please send it to my private email as well, [EMAIL PROTECTED] Thank you in advance, Siim EInfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Header Problem...
There may not be any headers before you use the 'header' statement. The header("Location:...") should be the first output you send. You might want to consider moving the two 'anti-cache' headers after the header("Location;...") statement. RenzE. On Mon, Mar 26, 2001 at 11:06:11PM +0800, E K L wrote: Hi all, could any one tell me that how do I go to a specific URL using php command.At the same time, I would like to pass the variable to the page. I used header to do it but failed, with the error message:- Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 3 Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 4 Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/traName_use.php:2) in /usr/local/apache/htdocs/traName_use.php on line 26 And our code is as below:- ?php header("Pragma : no-cache "); header("Cache-Control :no-cache,must-revalidate"); $db=mysql_connect("localhost","root","123456"); mysql_select_db("test",$db); $query="select trade_name_c from confirm_member_info where trade_name_c = '$tradeName'"; $result=mysql_query($query,$db); $row=mysql_fetch_row($result); if($row[0]==$tradeName) { //echo "Sorry, the Trade Name b$tradeName/b has been usedBr"; //echo "Please Choose other Trade NameBR"; //echo "Click a href='mysignup_1.php'here/a to back."; header("Location: http://192.168.0.1/mysignup_1.php"); } else { //echo "Your Trade Name and password has been accepttedbr"; //echo "Click to proceed."; //input type='hidden' name='introducer' value='$introducer' header("Location: http://www.hotmail.com"); } ? input type="hidden" name="tradeName" value="?$tradeName?" input type="hidden" name="password" value="?$password?" input type="hidden" name="MotherName" value="?$MotherName?" I tried to use hidden input type to pass the value, but can it work without form and submit button?? I would appreaciate if you could give me suggestions and advice. thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] New PHP Coder - needs advice
All, I am new coder of PHP and I love it. I have completed all the tutorials for PHP 101 on Devshed.com . I have PHP and MYSql up and running. I have a problem that I'm sure is is a very simple problem to solve for many of you. I am looking at the best way to write this simple PHP script and I'm hoping as an experienced coder out there can point me in the right direction. I am experienced programmer in other languages such as C, ASP and VB. So if you could just help me get started on my problem with some high level comments it would certainly be appreciated. Also, don't about worry security I can handle that part of it. Here is what I want to solve: I have a HTML page with categories and dates, the categories will remain stagnate. Only date field will change. I need a PHP script that will: 1. Read in the HTML page. 2. Provide all the dates in editable format. 3. Allow the user to change the date. 4. Save the date change. 5. Write out the page with changed dates in HTML format. If you could provide me some high level guidance on this or point to some code snippets performing this type of task it would be wonderful. Thank you in advance for you help. I'm new to the open source community and looking forward to getting involved in PHP. Rob McMahan, Jr. Interlink Group Inc. [EMAIL PROTECTED] (Ph) 480-894-6008 (Cell) 602-284-2385 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Get info to a perl script and then continue without going to that perl script.
Hello, I have a script that takes information and sends it to a cgi script using the header("location: http://www.domain.com/script.cgi?var1=VAR1var2=VAR2"). Is there a way for my script to send info to a cgi script but then keep the person connected to the php script and not get the results of the cgi script? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Getting Javascript variable into PHP
Has anyone had to get a javascript variable into your PHP script? I'm trying to have a javascript popup box come up whenever a user clicks to revoke a user's privilege. How do I know what was clicked on the javascript box in order to know whether to revoke the user's privilege or not? If there's a better way to do this please let me know. Thanks in advance for any replies. -- Michael Champagne, Software Engineer Capital Institutional Services, Inc. wk: [EMAIL PROTECTED] hm: [EMAIL PROTECTED] ** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] I don't understand HTTP_SESSION_VARS
Hi Kirk, I'm not sure that's how it is supposed to work. I really think that this is a PHP bug. I had to turn register globals back on in order to get my code working again. I thought you're supposed to be able to simply declare a variable, do a session_register on it, and then access it on subsequent pages using $HTTP_SESSION_VARS. I'm going to keep register globals on for now I think. Thanks for your help! Mike Mike, my experiments suggest you can also get rid of the session_register() statement. Seems that simply assigning to $HTTP_SESSION_VARS[my_session_var] is enough. Kirk -Original Message- From: Michael Champagne [mailto:[EMAIL PROTECTED]] Subject: RE: [PHP] I don't understand HTTP_SESSION_VARS YES! That's what it was. You rule man. Why would session_start need to come before the global variable declaration? You'd think session_start would need $HTTP_SESSION_VARS declared beforehand to load the session variables into? Thanks, Mike OK, try this. The session_start() has to come before the global statement: ?php function write_session() { session_start(); global $HTTP_SESSION_VARS; $HTTP_SESSION_VARS[my_session_var] = "Boogedy Boogedy"; session_register($HTTP_SESSION_VARS["my_session_var"]); } write_session(); echo $HTTP_SESSION_VARS['my_session_var']; ? -- Michael Champagne, Software Engineer Capital Institutional Services, Inc. wk: [EMAIL PROTECTED] hm: [EMAIL PROTECTED] ** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] oci8 and primary key its speed
first of all thank all of you who helpd me up to now, to make this work now when i make SELECT c.column_name, c.position FROM user_cons_columns, c, user_constraints t WHERE t.table_name='YOURTABLENAME' AND t.constraint_type='P' AND t.constraint_name=c.constraint_name AND t.table_name=c.table_name ORDER BY c.position it is ok and i have it but what i realy need to know is the name of trigger that was fired , so i made this but this one needs minutes why ?? SELECT c.column_name, c.position, tc.trigger_name FROM user_cons_columns c, user_constraints t, all_trigger_cols tc WHERE t.table_name='TR_LOG' AND t.constraint_name=c.constraint_name AND t.table_name=c.table_name and tc.column_name=c.column_name and tc.table_name=t.table_name ORDER BY c.position; now i make one query to find out the name of column , then another one to get the name of trigger( this is fast) but i would like to write a single statement to get the name of trigger because that is the only thing i need actualy but it is to slow -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Get info to a perl script and then continue without going to that perl script.
you want to just execute the perl script? use http://php.net/manual/en/function.exec.php $return = exec("/pathtocgi/script.cgi VAR1 VAR2 "); if you want the data returned, its in $return. -- Chris Lee [EMAIL PROTECTED] ""Brandon Orther"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I have a script that takes information and sends it to a cgi script using the header("location: http://www.domain.com/script.cgi?var1=VAR1var2=VAR2"). Is there a way for my script to send info to a cgi script but then keep the person connected to the php script and not get the results of the cgi script? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] New PHP Coder - needs advice
Im not quite sure what kind of advise your looking for... you want to know how todo this? use a form, save the contents in the db. echo the contents to the screen to view them. table category fieldcategory_id fieldcategory_date fieldcategory_name I like to store dates as a unix time stamp , time(), you can play with them using getdate() and mktime() those two functions will provide all the date verification you need. -- Chris Lee [EMAIL PROTECTED] ""Rob McMahan, Jr."" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... All, I am new coder of PHP and I love it. I have completed all the tutorials for PHP 101 on Devshed.com . I have PHP and MYSql up and running. I have a problem that I'm sure is is a very simple problem to solve for many of you. I am looking at the best way to write this simple PHP script and I'm hoping as an experienced coder out there can point me in the right direction. I am experienced programmer in other languages such as C, ASP and VB. So if you could just help me get started on my problem with some high level comments it would certainly be appreciated. Also, don't about worry security I can handle that part of it. Here is what I want to solve: I have a HTML page with categories and dates, the categories will remain stagnate. Only date field will change. I need a PHP script that will: 1. Read in the HTML page. 2. Provide all the dates in editable format. 3. Allow the user to change the date. 4. Save the date change. 5. Write out the page with changed dates in HTML format. If you could provide me some high level guidance on this or point to some code snippets performing this type of task it would be wonderful. Thank you in advance for you help. I'm new to the open source community and looking forward to getting involved in PHP. Rob McMahan, Jr. Interlink Group Inc. [EMAIL PROTECTED] (Ph) 480-894-6008 (Cell) 602-284-2385 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php sessions and classes
yes this will work, are you passing the class as a session ? remember to declare the class BEFORE you call session_start() ie. ?php class test { //-note- ... } session_start(); ? do not have session_start before the class declaration. how do you like postgres? what version? speed/reliability/stability ? In some benchmarks I did I found postgres lightning fast when it came to multiple table joins, but I have yet to run it in production, so I dont know about stability/reliability. -- Chris Lee [EMAIL PROTECTED] ""Steve Brett"" [EMAIL PROTECTED] wrote in message 99nf2e$vq0$[EMAIL PROTECTED]">news:99nf2e$vq0$[EMAIL PROTECTED]... hi, i'm busily rewriting an exisitng calendar system that is in use at work. we're using UML as a design tool and hope to have an OO version of the system we have at the minute that wil 'fit in' with future devs. our system at the moment makes heavy use of postgresql and i am hoping to populate various object from the data in the db. our system also relies on session for passing data between pages and the site as a whole. what i need to know is this in a kind of yes or no fashion: will php allow me to create a class and then have access to the class from other pages and scripts ? Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] imap_open() dosen't work :(
have you edited your php.ini file ? you have to uncomment the imap dll. extension=php_imap4r2.dll if you dont have this dll, you'll have to find it, cant help you there. -- Chris Lee [EMAIL PROTECTED] ""Nilesh Parmar"" [EMAIL PROTECTED] wrote in message 001b01c0b54e$fa191c00$[EMAIL PROTECTED]">news:001b01c0b54e$fa191c00$[EMAIL PROTECTED]... Hi Gurus :) I have installed php4.0.4 on my windows 98 machine with apache .I am having a problem while calling te imap_open() function.I get the following error.I get this error also with Linux.(Redhat 7.0). ** Call to undefined function: imap_open() in c:\Program Files\apache group\apache\htdocs\imap.php *** Do I require to configure any file or change any settings ? Can anyone figure out what is the problem.I can however telnet successfully to my imap server. Thanx in advance Nilesh Parmar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Cookie problem
I have to agree Nuno, sessions are alot easier/simpler. -- Chris Lee [EMAIL PROTECTED] "Nuno Silva" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, short: try removing the third parameter to setcookie and if the errors go away you know it's a cookie problem :) long: you're setting auth based in the (server's) time + 600sec. If the client (or even the server) has a clock skew... well bad luck :) removing the third parameter makes php create a "session cookie" that will stay there until the browser is closed (alll the windows). If this is not a problem, let it be. I love session cookies!! :) Anyway, the best method to get decent auth are sessions. Try php4's sessions or phplib or something. Regards, Nuno Martin Skjldebrand wrote: I'm experiencing all kinds of problems with, what we suppose is the cookie setting. This is the code: if (isset($authentication)) { setcookie("status", $status, time()+600); setcookie("user", $user, time()+600); setcookie("group", $group, time()+600); setcookie("authentication", $authentication, time()+600); setcookie("laston", $laston, time()+600); } else { setcookie("status", "Logged In", time()+600); setcookie("user", $txtUsername, time()+600); setcookie("group", $row[4], time()+600); setcookie("authentication", "YES", time()+600); setcookie("laston", $row[6], time()+600); } (I have not coded this). What seems to happen is that - with alarming regularity - people are getting logged off when choosing item from a menu. Either they are thrown out into the log on-screen or (as has happened to me recently) the app simply states I'm not logged on even if I am in the middle of using it (and must have logged on). I'm not at all familiar with cookies (yet) but suspect that the timing of the critters could be a culprit. IS this correct? How do I solve the problem? M. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Another problem installing PHP under Solaris 8.0
Dear Friends: I have had another problem, after succesfully find flex package installed in this machine and make a link to a folder that is included in PATH. After ./configure, after the message that PHP was configured OK, following the instructions I write: make. This is the error that appears Making all in Zend make[1]: Entering directory '/usr/local/php-4.0.4pl1/Zend' /bin/sh../libtool --silent --mode=link gcc -g -02 -o libZend_c.la zend_language_scanner.lo zend_ini_scanner.lo ../libtool: ar: not found make[1]: *** [libZend_c.la] Error 1 leaving directory make[1]: *** [all- recursive] Error 1 I have looked at /php folder and exists a file called libtool. Anybody knows what is the problem? Thank you very much Emiliano. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 / FUNCTION_LIST.txt
sterlingMon Mar 26 10:29:13 2001 EDT Removed files: /php4 FUNCTION_LIST.txt Log: Remove FUNCTION_LIST.txt, the file is sadly out of date and not really used... -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] offline reader for php generated websites
Hello List, knows anybody an offline reader which can download not only static websites but also dynamic websites especially dynamic generated links? Like websites which are only generated over one file over variables like "dynamic.php?siteID=3001" Thanks Andre! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Another problem installing PHP under Solaris 8.0
you need ar. my solaris 8 install has it in /usr/ccs/bin if you have it there, make sure /usr/ccs/bin is in your PATH. if you need to know what package ar is part of let me know. joe Emiliano Marmonti([EMAIL PROTECTED])@Mon, Mar 26, 2001 at 03:12:00PM -0300: Dear Friends: I have had another problem, after succesfully find flex package installed in this machine and make a link to a folder that is included in PATH. After ./configure, after the message that PHP was configured OK, following the instructions I write: make. This is the error that appears Making all in Zend make[1]: Entering directory '/usr/local/php-4.0.4pl1/Zend' /bin/sh../libtool --silent --mode=link gcc -g -02 -o libZend_c.la zend_language_scanner.lo zend_ini_scanner.lo ../libtool: ar: not found make[1]: *** [libZend_c.la] Error 1 leaving directory make[1]: *** [all- recursive] Error 1 I have looked at /php folder and exists a file called libtool. Anybody knows what is the problem? Thank you very much Emiliano. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
php-general Digest 26 Mar 2001 18:58:56 -0000 Issue 590
php-general Digest 26 Mar 2001 18:58:56 - Issue 590 Topics (messages 45583 through 45631): Re: oracle last inserted 45583 by: Thies C. Arntzen Re: Email validation 45584 by: Manuel Lemos PHP Authentication 45585 by: Jon 45586 by: Jack Dempsey 45589 by: Patrick Re: set_error_handler and parse errors 45587 by: Neil Kimber Problem with mail function 45588 by: Sonya Davey / QDCEL 45593 by: Carsten Gehling 45597 by: Ankur Verma get the domain to display on my page 45590 by: Jacky 45591 by: Renze Munnik Re: about:home 45592 by: Renze Munnik Re: array in cookie . . . 45594 by: Christian Reiniger 45595 by: Christian Reiniger MySQL locks, will PHP wait? 45596 by: Jeroen Geusebroek Prob with sending a php variable in an email 45598 by: Sonya Davey / QDCEL 45600 by: Rudolf Visagie 45601 by: Ankur Verma 45602 by: Ankur Verma Re: Prob with sendin'[EMAIL PROTECTED]'g a php vari able in an email 45599 by: Rudolf Visagie Problem with curl 45603 by: Hans-Peter Straub .doc to .txt 45604 by: Siim Einfeldt aka Itpunk 45606 by: Ankur Verma 45617 by: Max Pyziur php3, files and Apache 45605 by: xxx php sessions and classes 45607 by: Steve Brett 45626 by: Chris Lee ignore_user_abort 45608 by: Plamen Slavov Re: php 4.04pl 1-3 for red hat 7 45609 by: Larry Hotchkiss test 45610 by: TV Karthick Kumar 45611 by: TV Karthick Kumar reading a URL... 45612 by: Tristan.Pretty.risk.sungard.com 45613 by: Renze Munnik Help, I can't understand the 'arg_separator' directive 45614 by: loic-info.netcourrier.com Header Problem... 45615 by: E K L 45618 by: Renze Munnik stil problems with fopen and URL 45616 by: marco trevisani New PHP Coder - needs advice 45619 by: Rob McMahan, Jr. 45625 by: Chris Lee Get info to a perl script and then continue without going to that perl script. 45620 by: Brandon Orther 45624 by: Chris Lee Getting Javascript variable into PHP 45621 by: Michael Champagne Re: I don't understand HTTP_SESSION_VARS 45622 by: Michael Champagne oci8 and primary key its speed 45623 by: almir Re: imap_open() dosen't work :( 45627 by: Chris Lee Re: Cookie problem 45628 by: Chris Lee Another problem installing PHP under Solaris 8.0 45629 by: Emiliano Marmonti 45631 by: Joe Rice offline reader for php generated websites 45630 by: Andre 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] -- On Mon, Mar 26, 2001 at 10:19:28AM +0800, Chien-pin Wang wrote: If you use sequence to generate your last_inserted_id, then you can always get that ID by calling SELECT sequence_name.CURRVAL FROM DUAL; within the same session. ?php $data = array("larry","bill","steve"); $db = OCILogon("scott","tiger"); $stmt = OCIParse($db,"insert into names values (myid.nextval,:name) returning id into :id"); OCIBindByName($stmt,":ID",$id,32); OCIBindByName($stmt,":NAME",$name,32); while (list(,$name) = each($data)) { OCIExecute($stmt); echo "$name got id:$id\n"; } ? re, tc Chien-pin On Sun, 25 Mar 2001, almir wrote: is there a way to get last inserted id from oracle as mysql_inerted_id() or SELECT @@IDENTITY AS LastId in mssql server i have a function that does only that, takes insert statement and returns last id, but this function have to work for all tables (different triggers in oracle) , right now the only thing i can imagine is to give this function the name of ID column and read name of table with regex and then do select max(parametar_id) from regex_table and then to do commit , this way is somehow realy stupid but is my only solution in this moment so if you have any better ideas plese help almir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Hello Mike, On 21-Mar-01 01:21:13, you wrote: Hello Again, Can anyone tell me what the best form of Email validation there is? It needs to be quick as open to - and . as possible. Look here for a complete email validation class: http://phpclasses.UpperDesign.com/browse.html/package/13 Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] --
[PHP] POP client available + mcrypt question
Hi folks, Version 1.0 of my POP mail client "PHPost" is now available for download (it's freeware) at http://webgadgets.com/ There's one problem that's bugging me though. The script checks for the mcrypt module and uses it to encrypt/decrypt the contents of the session data file. If it's not available it base 64 encodes it (not really secure, but better than plain text storage). Anyway, it seems to work fine with or without mcrypt except for one thing. PHP is running as an Apache module (FreeBSD, latest Apache) and the Apache process itself will die with a seg fault immediately after the php script is processed. From the users point of view everything seems fine since it happens after the page is displayed, and Apache just fires up a new process to replace the dead child. This only happens if I use the mcrypt functions, yet they appear to work properly (the file is encrypted and decrypted properly). Any thoughts? You can see how I'm using the functions if you look at the source to PHPost. Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] GD problem
Hello, Using GD i get this error. I know what it means I just wanted to know if anyone knew how I resolve it. Error: ImageCreateFromJpeg: No JPEG support in this PHP build in jpg.php on line 5 Do I need to get new GD files and change php.ini or chan I just change the library? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 / NEWS
andrei Mon Mar 26 10:59:02 2001 EDT Modified files: /php4 NEWS Log: Zend related news update. Index: php4/NEWS diff -u php4/NEWS:1.621 php4/NEWS:1.622 --- php4/NEWS:1.621 Fri Mar 23 06:26:17 2001 +++ php4/NEWS Mon Mar 26 10:59:01 2001 @@ -2,6 +2,8 @@ ||| ?? ??? 200?, Version 4.0.6 +- Modified get_parent_class() to accept a class name as well as a class + instance. (Andrei, Zend engine) - Added support for UNC style paths (\\server\share\file //server/share/file) (Daniel, TSRM) - Changed C++ style comments to C-style comments (Marc) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] equivalent to PERL's qq
Hi. I'm a converted Perl guy. While I generally like PHP better than Perl, I do severely miss the Perl operator qq, which allowed statements (in my case, lengthy SQL statements) to be written on multiple lines. $this = qq|Select * From xsdfs Group by date Order by id |; Is there anything similar to this in PHP? I've been unable to find it if there is. Michael Hall Prairie Fire Internet Technologies [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] equivalent to PERL's qq
$this = "Select * From xsdfs Group by date Order by id"; Should work. Cal http://www.calevans.com -Original Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 1:36 PM To: [EMAIL PROTECTED] Subject: [PHP] equivalent to PERL's qq Hi. I'm a converted Perl guy. While I generally like PHP better than Perl, I do severely miss the Perl operator qq, which allowed statements (in my case, lengthy SQL statements) to be written on multiple lines. $this = qq|Select * From xsdfs Group by date Order by id |; Is there anything similar to this in PHP? I've been unable to find it if there is. Michael Hall Prairie Fire Internet Technologies [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Get info to a perl script and then continue without going to that perl script.
http://php.net/manual/en/function.exec.php $return = exec("/pathtocgi/script.cgi VAR1 VAR2 "); if you want the data returned, its in $return. If there are multiple lines returned, you'll only get the last line in $return. See the manual link to get the full info. Matt Friedman - Original Message - From: "Chris Lee" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 26, 2001 7:25 AM Subject: Re: [PHP] Get info to a perl script and then continue without going to that perl script. -- Chris Lee [EMAIL PROTECTED] ""Brandon Orther"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I have a script that takes information and sends it to a cgi script using the header("location: http://www.domain.com/script.cgi?var1=VAR1var2=VAR2"). Is there a way for my script to send info to a cgi script but then keep the person connected to the php script and not get the results of the cgi script? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] just a newbie in php, don't get mad
ok as you got it already i am a newbie in php could anyone please please post me what programs do I need or which could help me to make some php stuff sry for this may sound stupid to you all but all the manuals in the web just were just talkin' 'bout totally technical stuff ok thnx :p I hope this site will be helpful: http://www.webdesigns1.com/php/ Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 / NEWS
sbergmann Mon Mar 26 11:03:36 2001 EDT Modified files: /php4 NEWS Log: Nitpicking. Index: php4/NEWS diff -u php4/NEWS:1.622 php4/NEWS:1.623 --- php4/NEWS:1.622 Mon Mar 26 10:59:01 2001 +++ php4/NEWS Mon Mar 26 11:03:36 2001 @@ -3,7 +3,7 @@ ?? ??? 200?, Version 4.0.6 - Modified get_parent_class() to accept a class name as well as a class - instance. (Andrei, Zend engine) + instance. (Andrei, Zend Engine) - Added support for UNC style paths (\\server\share\file //server/share/file) (Daniel, TSRM) - Changed C++ style comments to C-style comments (Marc) @@ -150,7 +150,7 @@ - Fixed date('r') overflow - Made the php.ini path reported in phpinfo() always point to the absolute path that was opened (Zeev) -- Made the INI mechanism thread safe (Zeev, Zend engine) +- Made the INI mechanism thread safe (Zeev, Zend Engine) - Changed setlocale() to use LC_* constants. (Jani) - ctype functions now follow the extension naming conventions (Hartmut) - Added iconv() function (using libc or libiconv) (Stig) @@ -570,7 +570,7 @@ and currently run through a system call. This will speed up the UdmSearch php frontend significantly. (Rasmus) - Modified in_array() to not touch array pointer. (Andrei) -- Added restore_error_handler(). (Zeev, Zend engine) +- Added restore_error_handler(). (Zeev, Zend Engine) - Fixed erroneous file names and line numbers in error situations under the multithreaded version of PHP - most noticeably Win32 (Zeev, Zend Engine) - Fixed problem with CGI crashing on certain servers especially Windows Apache -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] just a newbie in php, don't get mad
buy Meloni's "PHP Essentials" or the "Teach yourself PHP in 24 hours" to start. They are made for total beginners. Then move on to "Professional PHP programming" or "PHP4 Bible". That will give you a better start. ok as you got it already i am a newbie in php could anyone please please post me what programs do I need or which could help me to make some php stuff sry for this may sound stupid to you all but all the manuals in the web just were just talkin' 'bout totally technical stuff ok thnx :p I hope this site will be helpful: http://www.webdesigns1.com/php/ Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-CVS] cvs: php4 / NEWS
+- Modified get_parent_class() to accept a class name as well as a class + instance. (Andrei, Zend engine) Can I make a request for get_class_methods() and get_class_vars() to accept class instances as well as a string? - Colin -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Serializing/unserializing objects
What I want to do is to use an object to create a site.I plan on initiaizing the object on my page index.php, and just recycling index.php with different variables, so that I get different pages. Ideally, I want the object to read a site config file, so that I can modify the site config file for different sites which use the same backend, and have each sites page read that. What is the process of object creation in php4? What happens when you call new objectname? Where could I find this out (short of reading the source - I need to do this by tomorrow...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Serializing/unserializing objects
wow. I really don't think you can pull this off in a day. In any case, I'd recommend checking out www.phpbuilder.com and looking through the articles -Original Message- From: Kevin Beckford [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Serializing/unserializing objects What I want to do is to use an object to create a site.I plan on initiaizing the object on my page index.php, and just recycling index.php with different variables, so that I get different pages. Ideally, I want the object to read a site config file, so that I can modify the site config file for different sites which use the same backend, and have each sites page read that. What is the process of object creation in php4? What happens when you call new objectname? Where could I find this out (short of reading the source - I need to do this by tomorrow...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] General question :)
Hi! What do you think is best..: - have alot of small .php (files)? - or a few big? What's good bad with these solutions?! - Fredrik A. Takle Bergen, Norway [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Serializing/unserializing objects
You'll be reinitializing the object on every page request - objects aren't perisistant across requests. You can make the data in that object persistent - basically recreate the object every page with the old data (PHP4 sessions would be one way to go here) but you won't be able to make the objects themselves persistent. Kevin Beckford wrote: What I want to do is to use an object to create a site.I plan on initiaizing the object on my page index.php, and just recycling index.php with different variables, so that I get different pages. Ideally, I want the object to read a site config file, so that I can modify the site config file for different sites which use the same backend, and have each sites page read that. What is the process of object creation in php4? What happens when you call new objectname? Where could I find this out (short of reading the source - I need to do this by tomorrow...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-CVS] cvs: php4 / NEWS
On Mon, 26 Mar 2001, Colin Viebrock wrote: Can I make a request for get_class_methods() and get_class_vars() to accept class instances as well as a string? For get_class_methods(), yes, for the other requrest, see get_object_vars(). -Andrei * Anything will fit if you push hard enough * -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 / NEWS
andrei Mon Mar 26 12:10:19 2001 EDT Modified files: /php4 NEWS Log: More news. Index: php4/NEWS diff -u php4/NEWS:1.623 php4/NEWS:1.624 --- php4/NEWS:1.623 Mon Mar 26 11:03:36 2001 +++ php4/NEWS Mon Mar 26 12:10:19 2001 @@ -2,8 +2,8 @@ ||| ?? ??? 200?, Version 4.0.6 -- Modified get_parent_class() to accept a class name as well as a class - instance. (Andrei, Zend Engine) +- Modified get_parent_class() and get_class_methods() to accept a class name as + well as a class instance. (Andrei, Zend Engine) - Added support for UNC style paths (\\server\share\file //server/share/file) (Daniel, TSRM) - Changed C++ style comments to C-style comments (Marc) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] General question :)
Execution time!! Big files if not well developed = large exec time meaning server timeouts. small files = less timeouts and better debugging and modularity which ALWAYS better. Modularity allows you to plug in and pull out pages with out rendering you whole site unusable. Of course you can have a few big files and some small files with it, depends on what the big files do, Classes and common functions can be grouped together. ""FredrikAT"" [EMAIL PROTECTED] wrote in message 99o8pm$480$[EMAIL PROTECTED]">news:99o8pm$480$[EMAIL PROTECTED]... Hi! What do you think is best..: - have alot of small .php (files)? - or a few big? What's good bad with these solutions?! - Fredrik A. Takle Bergen, Norway [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] drop down used to redirect?
hmmm... thanks, but I want to use a directory. I've tried "option value="dir1/dir2/page.html"Page/option but the "/" url that get's passed is: nav.php?loc=dir1%2Fdir2%2Fpage.html can I escape the quotes somehow? thanks! duirfire -Original Message- From: Data Driven Design [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 2:11 AM To: duirfire; PHP User Group Subject: Re: [PHP] drop down used to redirect? You can do it with javascript like this. script language="javascript" function go(selectBox) { var where = selectBox.options[selectBox.selectedIndex].value; if (where != "") window.location = where; } /script form select onchange="go(this)" option value="page.html"Page/option ... Or you can use PHP like this. form action="nav.php" method="post" select name="loc" option value="page.html"page/option ... --- nav.php --- ?php header("Location:$loc"); ? - Original Message - From: duirfire [EMAIL PROTECTED] To: PHP User Group [EMAIL PROTECTED] Sent: Sunday, March 25, 2001 2:39 PM Subject: [PHP] drop down used to redirect? Hi, can anyone point me towards an example of how to use a drop down select as a navigation jump, maybe by sending a redirect header? thanks! duirfire -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] just a newbie in php, don't get mad
Hi, get an editor which suits your needs and demands, a server and (if needed somr database app) and just do it by trial and error. tutorials on php: www.phpbuilder.com www.webmonkey.com www.devshed.com feed any search engine with "php tutorials" and find more. good luck Johannes p.s. what's this ":p" ?? ok as you got it already i am a newbie in php could anyone please please post me what programs do I need or which could help me to make some php stuff sry for this may sound stupid to you all but all the manuals in the web just were just talkin' 'bout totally technical stuff ok thnx :p -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] just a newbie in php, don't get mad
Check out the tutorials found at : http://www.devshed.com/(very basic php tutorials exist here) http://www.zend.com/ (quality tutorials and articles) http://www.phpbuilder.com/ (intermediate) http://php.faqts.com/ (useful words) http://www.php.net/manual/ (includes examples and useful user comments) http://www.google.com/ (prepend term 'php' and watch magic) http://marc.theaimsgroup.com/?l=php-general That should be a good start :-) The mailing list archive link is very valuable, or at least will be for you soon as within is an answer to about any and all php questions. Also check out : http://www.php.net/links.php If you use windows and just want to get going, install a package : http://www.hotscripts.com/PHP/Scripts_and_Programs/Installation_Kits/ Some useful linux install instructions found here for apache/php/mysql...: http://www.e-gineer.com/instructions/ And lastly, don't fear the manual. It may seem scary right now but soon you'll find just how useful and wonderful it is. Don't worry about understanding it all but getting the words boucning around your head is a good thing. It's also good to know how to use a function first :) The best way to learn is start reading and coding. Code any and everything your heart desires and be sure to add interesting features to your code. Also read and print out this : http://www.zend.com/zend/tut/using-strings.php Good luck! Regards, Philip Olson http://www.cornado.com/ On Mon, 26 Mar 2001, Martin Mark wrote: ok as you got it already i am a newbie in php could anyone please please post me what programs do I need or which could help me to make some php stuff sry for this may sound stupid to you all but all the manuals in the web just were just talkin' 'bout totally technical stuff ok thnx :p -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-CVS] cvs: php4 / NEWS
Done. Can I make a request for get_class_methods() and get_class_vars() to accept class instances as well as a string? - Colin -Andrei "The time from now until the completion of the project tends to become constant." -- Douglas Hartree -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Create new accounts with PHP
I'm beginning to implement an application for a webhost that will administer accounts (create users, mailboxes, FTP, etc.) and will be using PHP to do this. Are there any problems with using PHP to do this? I have done some research but haven't come across anything related to PHP. Just looking to be pointed in the right direction. Thanks. O.J. Alcaraz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] GD problem
H- You might want to make sure your version of GD supports JPG format. If I'm not mistaken newer versions of GD don't support GIF anymore and the earlier versions of GD didn't support JPG but PNG format has always been supported. Maybe it's related to GD and not PHP at all. Just a thought. -Sterling Brandon Orther wrote: Hello, Using GD i get this error. I know what it means I just wanted to know if anyone knew how I resolve it. Error: ImageCreateFromJpeg: No JPEG support in this PHP build in jpg.php on line 5 Do I need to get new GD files and change php.ini or chan I just change the library? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Question from Rookie
Hi All, Quick rookie question for you.. I have a PHP page where I'm manipulated data and re-organized the data in table. Now I want to write out the page containing the table data with the HTML file extension. How would I go about writing out an HTML file from within a PHP Page. Thank you, Rob McMahan, Jr. Interlink Group Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] sessions and javascript.
Running linux RH 7, apache and php 4.04 as a module. I have a web pagewith an image that is chopped up and regrouped into a table. There are a few spots on the image that link (a href="") to other pages and I use some javascript for rollovers. Now, within the table, I have two input fields and I have another word which is part of the larger image that the user clicks to submit the form. This is done with input type="image" src="xxx". The image can be clicked which in turn calls a login script, if the form data is found in the database a session is started and a few session vars are registered. The SID is passed along with the URL and everything works fine. My sticking spot is that I would like the image that is used as the "submit" button for the form to also use "MouseOver". In my above outline, the image works fine as a submit button, but I am afraid people may not think to click there to submit thier login info. I tried the following javascript to the form page which gives me my "mouseOver" functionality but thats where it stops. SCRIPT LANGUAGE="Javascript" function sub() { document.mainlogin.submit(); } /SCRIPT .. a href="javascript: sub()" onMouseOver="if(document.images) document.logo211.src='5x2over.gif';" onMouseOut="if(document.images) document.logo211.src='5x2.gif';"img SRC="5x2.gif" NAME="logo211" BORDER=0 height=20 width=79/a My login script creates a session and then uses header()(and I append the SID) to forward the user to the main page where I again issue "session_start" to continue the session. In the browser, after pressing the submit image it just stays there, but on the server I am having two sessions created. I presume one for the loging script and another when session_start is called on the main page. One session contains the appropriate registered vars but apparently the SID is not being passed from the login script to the main page. The only thing I have played with is the form, not the login script or the main page. When I dont use javascript for submitting the form everything works fine, yet when I implement javascript to submit the form it ceases to function. Anyone have any ideas? -- Larry Hotchkiss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problems passing data via GET and POST
On Sat, Mar 24, 2001 at 05:05:59PM -0500, Matt Adams wrote: I recently wrote a (yet another) mailing portal which takes a certain action based on the contents of a hidden form field (i.e. if state==deliver then deliver mail to the recipient). Although I am certain the code could be better etc. etc. it works fine. I tested it on a Linux box running Apache-1.3.17 and PHP-4.0.4pl1 (as a module). However, when I transferred the project to another Linux server running Apache-1.3.12 and PHP-4.0.0 (also running as a module), the mailing portal refused to function properly. I discovered that the code that controls what action is taken was not picking up on the form contents passed to it. For a brief example, I have a file named "compose.php" which contains a form that passes a hidden field called "state" with the value "compose" to a file called "control.php" using the POST method. "control.php" is supposed to pick up on the "state" and sends the content of the "compose.php" form to the deliver stage. Unfortunately, it appears that "control.php" is not seeing any of the form data from "compose.php". My question is this: is there a setting in PHP (set either at compile or in the php.ini) that controls whether or not a PHP script will accept data passed to it via POST or GET? I'm not sure but I think register_globals or something like that could be the problem. I'm pretty sure that with this set, you don't have to use the $HTTP_GET_VARS or $HTT_POST_VARS arrays. Without it set, you are forced to use these arrays. register_globals = on: $HTTP_GET_VARS['testme']; // will have form info $testme // will have form info register_globals = off: $HTTP_GET_VARS['testme'] // will have form info $testme // will be empty I could be completely wrong, but I think this is how that works. -- Jason Stechschulte [EMAIL PROTECTED] -- The prayer of serenity applies here. To both of us. :-) -- Larry Wall in [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] General question :)
"FredrikAT" [EMAIL PROTECTED] wrote: Hi! What do you think is best..: - have alot of small .php (files)? - or a few big? What's good bad with these solutions?! Depends, usualy i dont have scripts over 1000 lines. I like to have a few larger files in my directory seperating different similar functionality in them, I think it's also a good idea to have all functions in one file, makes them easy to find. But alot of small php files can also work, I would reccommend you try some different solutions out and find your own style. -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] General question :)
"Godd" [EMAIL PROTECTED] wrote: Execution time!! Big files if not well developed = large exec time meaning server timeouts. you have any numbers for this? I think small files with slam code takes as much memory? small files = less timeouts and better debugging and modularity which ALWAYS better. Modularity allows you to plug in and pull out pages with out rendering you whole site unusable. ok well depends on how you define small :) functionality for a special function on a site can go up in many lines too. Of course you can have a few big files and some small files with it, depends on what the big files do, Classes and common functions can be grouped together. -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Session handling and SSL
Apologies if this has been addressed earlier. I'm using session.auto_start under an apache-ssl driven site, and it seems that the sesion ID cookies aren't being sent with the "secure" flag set. As a result, the browser is effectively ignoring the cookie. Is this an obvious configuration problem that I'm too dumb to figure out, or should I actually be worried? Thanks, Sam Leibowitz ([EMAIL PROTECTED]) Project Manager Business Technology Center (http://www.btcwcu.org) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] offline reader for php generated websites
On Monday 26 March 2001 20:31, you wrote: Hello List, knows anybody an offline reader which can download not only static websites but also dynamic websites especially dynamic generated links? Like websites which are only generated over one file over variables like "dynamic.php?siteID=3001" Um, wget? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 / configure.in
sniper Mon Mar 26 13:34:59 2001 EDT Modified files: /php4 configure.in Log: Fixed the problem with libbind (again). Index: php4/configure.in diff -u php4/configure.in:1.224 php4/configure.in:1.225 --- php4/configure.in:1.224 Thu Mar 22 20:56:51 2001 +++ php4/configure.in Mon Mar 26 13:34:59 2001 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.224 2001/03/23 04:56:51 svanegmond Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.225 2001/03/26 21:34:59 sniper Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -253,9 +253,10 @@ AC_CHECK_LIB(bind, inet_aton, [ AC_ADD_LIBRARY(bind) AC_DEFINE(HAVE_LIBBIND,1,[Whether you have bind]) ], [ -AC_CHECK_LIB(resolv, inet_aton) +AC_CHECK_LIB(bind, __inet_aton, [], [ + AC_CHECK_LIB(resolv, inet_aton) +]) ]) -AC_CHECK_LIB(bind, __inet_aton) dnl The res_search may be in libsocket as well, and if it is -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Unusual issue - saving state in an error class
Hi folks An unusual problem (I think) with how to save state in an error class. THE AIM is to consolodate PHP errors, user errors and failed asserts into one common format, which can then be written to screen, logged, emailed or written to a socket in any combination required. THE MECHANISM is to a) register callbacks for the PHP generated errors and assertions, and to b) put user errors into the php system with trigger_error(), so PHP routes them to the error callback function. The callback functions instantiate the error class and pass through the parameters. The class then handles the error output and calls the appropriate error handler. THE ISSUE is that unlike a normal class, it may be called in the background by the PHP error handler, so there is no calling function to return a value to. Also, as the PHP errors are only WARNINGS and NOTICES, the PHP error handler may call the class a number of times during a single script. So as I understand it, any values stored in the class properties will be lost as the class is re-instantiated. So my question is this - given that the class can be called multiple times in the background, how can state be saved so the application can decide what action to take in response to the error? The best I have come up with so far is to set a global constant: function _set_error_state() { if ( in_array( $this-error_number, $this-terminal_error_list )) { if ( !defined("REDIRECT_REQUIRED") !DEBUGGING_ON ) { define( "REDIRECT_REQUIRED", TRUE ) ; } } } This means that in production mode, the first terminal error encountered will set a GLOBAL which can be accessed by the wider application. The error handler is set in the same way. This seems to work fine, but it feels like a bit of a hack. Is there a better way to get this done? I am very new to this game, so apologies in advance if any of this doesn't make sense. Thanks Geoff Caplan Caplan Associates -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /ext/domxml php_domxml.c
sniper Mon Mar 26 13:42:02 2001 EDT Modified files: /php4/ext/domxmlphp_domxml.c Log: Fixed a typo. Index: php4/ext/domxml/php_domxml.c diff -u php4/ext/domxml/php_domxml.c:1.33 php4/ext/domxml/php_domxml.c:1.34 --- php4/ext/domxml/php_domxml.c:1.33 Wed Mar 21 22:58:13 2001 +++ php4/ext/domxml/php_domxml.cMon Mar 26 13:42:01 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: php_domxml.c,v 1.33 2001/03/22 06:58:13 steinm Exp $ */ +/* $Id: php_domxml.c,v 1.34 2001/03/26 21:42:01 sniper Exp $ */ #include "php.h" @@ -667,12 +667,12 @@ return(wrapper); } -PHP_MINIT_FUNCTION(domxml) +PHP_RINIT_FUNCTION(domxml) { return SUCCESS; } -PHP_RINIT_FUNCTION(domxml) +PHP_MINIT_FUNCTION(domxml) { zend_class_entry ce; le_domxmldocp = zend_register_list_destructors_ex(php_free_xml_doc, NULL, "domdocument", module_number); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] reading a URL...
'ello, Is it Possible, in PHP to read a URL? What I am trying to do is this... I have many news stories in a database, and a single static news page, that calls the story, and the corresponding headline. I have looked about on-line, and seen a common URL,... http://www.arandomsite.com/news_story.php?id=123 I have adopted this method, and it only displays the top most story in my database, no matter what news ID I use. Can I get the ID number from the URL?, and then pass that to the SQL statement? I cannot find a tutorial or similar on-line anywhere. Hope you can help, Tris... P.S, after getting this all set up, my boss asked me to turn everything into .jsp pages. SO, I am off to buy a "JSP in 20 seconds" Type books, any ideas? ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What could I be doing wrong here
And like this? echo $myrow["id"] ."br"; //Usually $myrow[0] etc py At 10:53 AM 3/27/01 +1200, you wrote: I can't figure out why this doesn't work. Rather than echo $myrow[0] which works, I want to use the feild name. Like $myrow[make] to make reading the code easier. IS this possible? Here is some code: $db = mysql_connect("localhost", $user, $pass)OR DIE("Unable to connect to database"); mysql_select_db("database",$db) OR DIE("Unable to connect to database"); $result = mysql_query("SELECT * FROM stock",$db); while ($myrow = mysql_fetch_row($result)) { echo "$myrow[id]br"; //Usually $myrow[0] etc echo "$myrow[make]br"; echo "$myrow[model]br"; echo "$myrow[sub_model]br"; } Thanks Heaps -- Regards, YoBro - DO NOT REPLY TO THIS VIA EMAIL PLEASE USE THE NEWSGROUP All emails sent to this address are automatically deleted. This is to avoid SPAM! - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What could I be doing wrong here
In article 99oh2o$f95$[EMAIL PROTECTED], [EMAIL PROTECTED] ("YoBro") wrote: I can't figure out why this doesn't work. Rather than echo $myrow[0] which works, I want to use the feild name. Like $myrow[make] to make reading the code easier. IS this possible? Here is some code: $db = mysql_connect("localhost", $user, $pass)OR DIE("Unable to connect to database"); mysql_select_db("database",$db) OR DIE("Unable to connect to database"); $result = mysql_query("SELECT * FROM stock",$db); while ($myrow = mysql_fetch_row($result)) { echo "$myrow[id]br"; //Usually $myrow[0] etc echo "$myrow[make]br"; echo "$myrow[model]br"; echo "$myrow[sub_model]br"; } Try quoting the index key (which is, after all, a string), and moving the variable outside the double quotes. Since that leaves just plain string text, you might as well turn the remaining double quotes to singles too. Save an extra microsecond or so g. echo $myrow['id'] . 'br'; -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Is this possible? PHP + Javascript
At 05:11 PM 3/26/01 -0600, Michael Champagne wrote: I have a huge database-driven list of clients with a checkbox next to each one. When I check one of these clients, I'm wanting one of those small javascript boxes to pop up and display the contacts for this client (another database lookup) and allow me to select one via a radio button. I figured I could do this via the checkbox's onclick event, but I'm not completely sure how. How do I bring up the box and display database information within? Any help is GREATLY appreciated. What I did for something like this was: I donwloaded all the information that I'm (probably) going to use and store it in variables/arrays, but I don't display them. Only after an event happened, like onClick, I display the relevant information using javascript, since javascript can access a php variable. I don't if this can work for your problem. But the idea basically is download everything first from server side, and display what is necessary from client side. That way you minimizing the reload/refresh, which take painfully long time for some of the clients. Hope that helps Reuben D. Budiardja Reuben D. Budiardja Web Database Application Programmer / Analyst Devcorps, ITS Goshen College, IN 46526 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Is this possible? PHP + Javascript
in the onCLick event of the checkbox call a javascript function. In that function use a window.open() method to open aother browser window, using the open() methods various properties to control how that browser window looks and feels. For the URL for that browser window, make it a PHP script passing an ID. That script would run against the server and database, returning the results in whatever HTML format you include in that browser window. Works similiar to a popup but allows you to run a dynamic script instead of loading up on javascript arrays or variables when the page loads. Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com = -Original Message- From: Reuben D Budiardja [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 4:29 PM To: Michael Champagne; PHP General Mailing List Subject: Re: [PHP] Is this possible? PHP + Javascript At 05:11 PM 3/26/01 -0600, Michael Champagne wrote: I have a huge database-driven list of clients with a checkbox next to each one. When I check one of these clients, I'm wanting one of those small javascript boxes to pop up and display the contacts for this client (another database lookup) and allow me to select one via a radio button. I figured I could do this via the checkbox's onclick event, but I'm not completely sure how. How do I bring up the box and display database information within? Any help is GREATLY appreciated. What I did for something like this was: I donwloaded all the information that I'm (probably) going to use and store it in variables/arrays, but I don't display them. Only after an event happened, like onClick, I display the relevant information using javascript, since javascript can access a php variable. I don't if this can work for your problem. But the idea basically is download everything first from server side, and display what is necessary from client side. That way you minimizing the reload/refresh, which take painfully long time for some of the clients. Hope that helps Reuben D. Budiardja Reuben D. Budiardja Web Database Application Programmer / Analyst Devcorps, ITS Goshen College, IN 46526 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What could I be doing wrong here
Thanks everybody for all your help. It goes now. ""YoBro"" [EMAIL PROTECTED] wrote in message news:99oh2o$f95$[EMAIL PROTECTED]... : I can't figure out why this doesn't work. Rather than echo $myrow[0] which : works, I want to use the feild name. Like $myrow[make] to make reading the : code easier. IS this possible? : : Here is some code: : : $db = mysql_connect("localhost", $user, $pass)OR DIE("Unable to connect to : database"); : : mysql_select_db("database",$db) OR DIE("Unable to connect to database"); : : $result = mysql_query("SELECT * FROM stock",$db); : : while ($myrow = mysql_fetch_row($result)) : { : echo "$myrow[id]br"; //Usually $myrow[0] etc : echo "$myrow[make]br"; : echo "$myrow[model]br"; : echo "$myrow[sub_model]br"; : } : : Thanks Heaps : : : -- : Regards, : : : YoBro : - : DO NOT REPLY TO THIS VIA EMAIL : PLEASE USE THE NEWSGROUP : All emails sent to this address are automatically deleted. : This is to avoid SPAM! : - : : : : -- : PHP General Mailing List (http://www.php.net/) : To unsubscribe, e-mail: [EMAIL PROTECTED] : For additional commands, e-mail: [EMAIL PROTECTED] : To contact the list administrators, e-mail: [EMAIL PROTECTED] : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PDF Output Printing
I have a basic question regarding the printing quality using the PDF functions and lib. I need to place a high resolution image TIF or JPEG into a PDF file along with normal text from a database. The desired output will be printed at 600dpi. Are there issues associated in doing this with the PDF lib? I realize that the application uses 72 Postscript fonts. I don't know what this means as far as printing. Any ideas or suggestions? Thanks, /dkm I need to print the output at 600dpi.
Re: [PHP] 'How to jump..' part 2
I don't think PHP will understand commas as command separators. Perhaps what you could try is a simple loop 0 to 6 and for each iteration of the loop, unset the corresponding array element for($i=0; $i = 6; $i++) { unset($array[$i]; } I got it working, and YES... PHP did understand the commas as separators just like in C... so what I have now is for(reset($array),$count=0;$count7;array_shift($array),$count++); //this removes the 7 top elements of an array... I wonder if I did a function like array_sshift($array,$number_of_elements) it would work fine... I'll try... but thanks anyway... :) . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 'How to jump..' part 2
I don't think PHP will understand commas as command separators. Perhaps what you could try is a simple loop 0 to 6 and for each iteration of the loop, unset the corresponding array element for($i=0; $i = 6; $i++) { unset($array[$i]; } this actually worked... thanks for the hint: pre function array_sshift($array,$number_of_elements=1) { for($count=0;$count$number_of_elements;$count++) { array_shift($array); } } /pre . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear DB.php /pear/DB pgsql.php
cox Mon Mar 26 15:31:50 2001 EDT Modified files: /php4/pear DB.php /php4/pear/DB pgsql.php Log: pgsql.php * connect() always use pg_connect string instead of the deprecated params mode * removed duplicated functions prepare() and execute() (now in common.php) * pgsqlRaiseError() always fills native error param on DB_error objs * added third param $rownum to fetchInto() so users can fetch also absolute row numbers * changed fetchRow() to use fetchInto() (can not erase, still used in get*() from common.php DB.php * added third param $rownum to fetchInto()/fetchRow() so users can fetch also absolute row numbers * changed fetchRow() to use fetchInto() Index: php4/pear/DB.php diff -u php4/pear/DB.php:1.53 php4/pear/DB.php:1.54 --- php4/pear/DB.php:1.53 Fri Mar 23 23:00:44 2001 +++ php4/pear/DB.phpMon Mar 26 15:31:49 2001 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox [EMAIL PROTECTED] | // +--+ // -// $Id: DB.php,v 1.53 2001/03/24 07:00:44 ssb Exp $ +// $Id: DB.php,v 1.54 2001/03/26 23:31:49 cox Exp $ // // Database independent query interface. // @@ -135,7 +135,7 @@ /** * these are constants for the tableInfo-function * they are bitwised or'ed. so if there are more constants to be defined - * in the future, adjust DB_TABLEINFO_FULL accordingly + * in the future, adjust DB_TABLEINFO_FULL accordingly */ define('DB_TABLEINFO_ORDER', 1); @@ -579,29 +579,36 @@ } /** - * Fetch and return a row of data. + * Fetch and return a row of data (it uses fetchInto for that) + * @param $fetchmode format of fetched row array + * @param $rownum the absolute row number to fetch + * * @return array a row of data, or false on error */ -function fetchRow($fetchmode = DB_FETCHMODE_DEFAULT) +function fetchRow($fetchmode = DB_FETCHMODE_DEFAULT, $rownum=0) { -if ($fetchmode == DB_FETCHMODE_DEFAULT) { -$fetchmode = $this-dbh-fetchmode; +$res = $this-fetchInto ($arr, $fetchmode, $rownum); +if ($res !== DB_OK) { +return $res; } -return $this-dbh-fetchRow($this-result, $fetchmode); +return $arr; } /** * Fetch a row of data into an existing array. + * + * @param $arrreference to data array + * @param $fetchmode format of fetched row array + * @param $rownum the absolute row number to fetch * - * @param $arrreference to data array * @return int error code */ -function fetchInto($arr, $fetchmode = DB_FETCHMODE_DEFAULT) +function fetchInto($arr, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum=0) { if ($fetchmode == DB_FETCHMODE_DEFAULT) { $fetchmode = $this-dbh-fetchmode; } -return $this-dbh-fetchInto($this-result, $arr, $fetchmode); +return $this-dbh-fetchInto($this-result, $arr, $fetchmode, $rownum=0); } /** Index: php4/pear/DB/pgsql.php diff -u php4/pear/DB/pgsql.php:1.31 php4/pear/DB/pgsql.php:1.32 --- php4/pear/DB/pgsql.php:1.31 Fri Mar 9 22:04:14 2001 +++ php4/pear/DB/pgsql.php Mon Mar 26 15:31:50 2001 @@ -39,11 +39,12 @@ var $prepare_tokens = array(); var $prepare_types = array(); var $transaction_opcount = 0; -var $numrows; -var $row; -var $affected; +var $dsn = array(); +var $row = array(); +var $numrows = array(); +var $affected = 0; var $autocommit = true; -var $dsn; +var $fetchmode = DB_FETCHMODE_ORDERED; // }}} // {{{ constructor @@ -60,9 +61,6 @@ ); $this-errorcode_map = array( ); -$this-numrows = array(); -$this-row = array(); -$this-affected = 0; } // }}} @@ -77,53 +75,32 @@ * * @return int DB_OK on success, a DB error code on failure */ -function connect($dsn, $persistent = false) +function connect($dsninfo, $persistent = false) { -if (is_array($dsn)) { -$dsninfo = $dsn; -} else { -$dsninfo = DB::parseDSN($dsn); -} -if (!$dsninfo || !$dsninfo['phptype']) { -return $this-raiseError(); // XXX ERRORMSG -} $this-dsn = $dsninfo; -$dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : 'unix'; -if ($dbhost == 'unix') { -$protocol = 'unix'; -} else { -$protocol = $dsninfo['protocol'] ? $dsninfo['protocol'] : 'tcp'; +$host = $dsninfo['hostspec']; +$connstr = ''; +if (($host !== false) ($dsninfo['protocol'] != 'unix')){ +if (($pos=strpos(':', $host)) !== false) { +$dbhost = substr($host, 0, $pos); +$port = substr($host, $pos+1); +} else { +
[PHP] memory allocation in $var...
By doing this: ?php $someArray=array("this","that","those"); for(something to loop) do something with $someArray here; ? is PHP using the same amount of memory as this: ?php $someArray=array("this","that","those"); somefunction($someArray); function somefunction($ref_to_array) { for(something to loop) do something with $ref_to_array here; } ? because it seems to me, that the script gets a little slower when I introduce the function method. . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] GD problem
On Tue, 27 Mar 2001 05:09, Brandon Orther wrote: Hello, Using GD i get this error. I know what it means I just wanted to know if anyone knew how I resolve it. Error: ImageCreateFromJpeg: No JPEG support in this PHP build in jpg.php on line 5 Do I need to get new GD files and change php.ini or chan I just change the library? Thank you, You probably don't have, or didn't point your compile to, the jpeg library. If you still have your PHP source and compiled stuff, look in config.log for clues - search for libjpeg. -- David Robley| WEBMASTER Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] getting number of days in agiven month
Hi, Is there a way to find out the mumber of days of a given month? for example a function that I pass the month number i.e. 02 (February) and it returns 28? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] getting number of days in agiven month
Is there a way to find out the mumber of days of a given month? for example a function that I pass the month number i.e. 02 (February) and it returns 28? Date("t", $unixtimestamp); If you have a month "2", you need a year as well since February's days vary according to the year, so: $daysinmonth = Date("t", mktime(0, 0, 0, $month, 1, $year)); Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] getting number of days in agiven month
On Tue, 27 Mar 2001 10:22, Juan Luis Baptiste wrote: Hi, Is there a way to find out the mumber of days of a given month? for example a function that I pass the month number i.e. 02 (February) and it returns 28? thanks. See date() and the t format character. -- David Robley| WEBMASTER Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question from Rookie
On Tue, 27 Mar 2001 07:01, Rob McMahan, Jr. wrote: Hi All, Quick rookie question for you.. I have a PHP page where I'm manipulated data and re-organized the data in table. Now I want to write out the page containing the table data with the HTML file extension. How would I go about writing out an HTML file from within a PHP Page. Thank you, Rob McMahan, Jr. Interlink Group Inc. [EMAIL PROTECTED] If you mean write to disk, you'll need the Filesystem functions; fopen, fwrite and fclose probably. You'll need to have the data you want to write out stored in an array, and you'll need to be aware of permission issues when trying to create files with fopen. -- David Robley| WEBMASTER Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/DB common.php ifx.php pgsql.php
cox Mon Mar 26 16:57:25 2001 EDT Modified files: /php4/pear/DB common.php ifx.php pgsql.php Log: ifx.php * Changed default fetchmode to ORDERED * Remove extra checks in connect and added $dns property * fetchRow() now uses fetchInto() common.php pgsql.php style Index: php4/pear/DB/common.php diff -u php4/pear/DB/common.php:1.41 php4/pear/DB/common.php:1.42 --- php4/pear/DB/common.php:1.41Fri Mar 23 23:00:45 2001 +++ php4/pear/DB/common.php Mon Mar 26 16:57:24 2001 @@ -51,9 +51,8 @@ function toString() { - $info = get_class($this); - - $info .= ": (phptype=" . $this-phptype . +$info = get_class($this); +$info .= ": (phptype=" . $this-phptype . ", dbsyntax=" . $this-dbsyntax . ")"; @@ -229,7 +228,7 @@ case PEAR_ERROR_TRIGGER: case PEAR_ERROR_DIE: $this-error_mode = $mode; - + if (!$options) { $this-error_level = E_USER_NOTICE; } else { @@ -322,10 +321,10 @@ for ($i = 0; $i strlen($query); $i++) { switch ($query[$i]) { -case "?": +case '?': $types[$token++] = DB_PARAM_SCALAR; break; -case "": +case '': $types[$token++] = DB_PARAM_OPAQUE; break; } @@ -372,18 +371,18 @@ !sizeof($this-prepare_tokens[$stmt])) { return $this-raiseError(DB_ERROR_INVALID); } - + $qq = $this-prepare_tokens[$stmt]; $qp = sizeof($qq) - 1; - + if ((!$data $qp 0) || (!is_array($data) $qp 1) || (is_array($data) $qp sizeof($data))) { return $this-raiseError(DB_ERROR_NEED_MORE_DATA); } - + $realquery = $qq[0]; - + for ($i = 0; $i $qp; $i++) { if ($this-prepare_types[$stmt][$i] == DB_PARAM_OPAQUE) { if (is_array($data)) { @@ -629,7 +628,7 @@ if (isset($sth)) { $this-freeResult($sth); } - + return $ret; } Index: php4/pear/DB/ifx.php diff -u php4/pear/DB/ifx.php:1.3 php4/pear/DB/ifx.php:1.4 --- php4/pear/DB/ifx.php:1.3Sun Mar 25 02:34:31 2001 +++ php4/pear/DB/ifx.phpMon Mar 26 16:57:24 2001 @@ -33,7 +33,8 @@ var $numrows; var $row; var $affected = 0; -var $fetchmode = DB_FETCHMODE_ASSOC; /* Default fetch mode */ +var $dsn = array(); +var $fetchmode = DB_FETCHMODE_ORDERED; /* Default fetch mode */ function DB_ifx() { @@ -54,7 +55,7 @@ '-1206' = DB_ERROR_INVALID_DATE, '-1209' = DB_ERROR_INVALID_DATE, '-1210' = DB_ERROR_INVALID_DATE, -'-1212' = DB_ERROR_INVALID_DATE +'-1212' = DB_ERROR_INVALID_DATE ); } @@ -67,9 +68,9 @@ * * @return int DB_OK on success, a DB error code on failure */ -function connect($dsn, $persistent = false) +function connect($dsninfo, $persistent = false) { -$dsninfo = DB::parseDSN($dsn); +$this-dsn = $dsninfo; $dbhost = $dsninfo['hostspec'] ? '@' . $dsninfo['hostspec'] : ''; $dbname = $dsninfo['database'] ? $dsninfo['database'] . $dbhost : ''; $user = $dsninfo['username'] ? $dsninfo['username'] : ''; @@ -137,33 +138,56 @@ } /** + * Fetch and return a row of data (it uses fetchInto for that) + * @param $result Informix result identifier + * @param $fetchmode format of fetched row array + * @param $rownumthe absolute row number to fetch + * + * @return array a row of data, or false on error + */ +function fetchRow($result, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum=0) +{ +if ($fetchmode == DB_FETCHMODE_DEFAULT) { +$fetchmode = $this-fetchmode; +} +$res = $this-fetchInto ($result, $arr, $fetchmode, $rownum); +if ($res !== DB_OK) { +return $res; +} +return $arr; +} + +/** * Fetch a row and return as array. * - * @param $result Informix result identifier - * @param $fetchmode how the resulting array should be indexed - * @param $rownum the row number to fetch + * @param $result Informix result identifier + * @param $row (reference) array where data from the row is stored + * @param $fetchmode how the resulting array should be indexed + * @param $rownum the row number to fetch * * @return int an array on success, a DB error code on failure, NULL * if there is no more data */ -function fetchRow($result, $fetchmode, $rownum=null) +function fetchInto($res,
Re: [PHP] The ubitquitous forum project
[Explanation of UBB-style] ...And that's USENET-style. In OE I can expand and contract threads at will, like you mentioned, and I can tell which posts are in reply to which other posts. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] memory allocation in $var...
I got the same results from my benchmarks, also. Unless you want to change variable in function and get modified value, do not use reference. Without reference, PHP4 executes script faster. Due to reference counting in PHP4, probably. Regards, -- Yasuo Ohgaki "Christian Dechery" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... By doing this: ?php $someArray=array("this","that","those"); for(something to loop) do something with $someArray here; ? is PHP using the same amount of memory as this: ?php $someArray=array("this","that","those"); somefunction($someArray); function somefunction($ref_to_array) { for(something to loop) do something with $ref_to_array here; } ? because it seems to me, that the script gets a little slower when I introduce the function method. . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] The ubitquitous forum project
The style of forum you choose for your site depends on your users. Novice user have a difficult time with usenet or bbs style forum. They will not use it unless you make it very easy. That is why you see bilboard style forum on large public site or portals. They have done user testing. py At 07:37 PM 3/26/01 -0600, you wrote: [Explanation of UBB-style] ...And that's USENET-style. In OE I can expand and contract threads at will, like you mentioned, and I can tell which posts are in reply to which other posts. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sql problem
InterBase isn't real good with subselects. Try using a join instead: select e.empname from employer e join badclient b on e.empno = b.employercode where b.pesal = '$Persal'; Brett ""Wade Halsey"" [EMAIL PROTECTED] wrote in message 00a501c0b38b$e2a27ea0$256410ac@wadeh">news:00a501c0b38b$e2a27ea0$256410ac@wadeh... Hi ppl ("select empname from employer where empno = (select employercode from badclient where pesal = '$Persal')") Could anyone help me out with the syntax? Im running an interbase db and php4.04 Thanks Wade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Strings in URL
I am attempting to pass a string value via a URL. I have tried using urlencode and ereg_replace--with no luck. Here is sample code: $headline=urlencode("$headline"); print "a href ='http://www.contus.com/test_quote/quotepage.php3?site=$sitepage=miniquote; subject=$headline'bContact us for more information/b/a/font"; Then in the quotepage.php3 file if( $page == "miniquote" ) { print "Get A Quotebr"; print "$subject"; print "$site"; INCLUDE "mini_quote.inc.php3"; } ---The print "$subject"; line prints nothing. If I print $headline right after I assign the variable it prints correctly with +s in place of the blanks for this variable. Any suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]