RE: [PHP] % operator
It doesn't have a use in only PHP but in all programming languages. It's a math thing .. u can get a remainder of a division. 10%8 = 2 12%8 = 4 10%5 = 0 12%5 = 2 Simple application: $ppl = 23; $grpsize = 7; echo ("when $ppl people are divided over groups of $grpsize, ". $ppl%$grpsize ." people are ungrouped."); This operator can be used for more complex situations. Cheers; Eelco. Hi! what is the use of % Is it called modulo..what is it's use in PHP.? Thanx! Dhaval Desai __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.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] Session With Cookies
This will store a cookie with a userid and an unique number ($token) as session-id (??). If I'm not mistaken, this session-id is not checked here. Thus serves no purose. Anybody who retrieve the cookie from the cookie file on the system can use it to resume the session (if done within the set 3600sec.). Even if the browser has been closed. In case of login/password required sites, I use the login and password as cookie values and have _no_ expiredate set. Every time a request is made _both_ cookie values (login and password) are checked with that on the server. When the browser is closed, the cookie is gone. It works but I think it's quite an unconventional way ... any suggestions/comments on this method? Cheers; Eelco. Try this: // Set Cookie if not already set if (!isset($user_id)) { $token = md5(uniqid(rand())); setcookie("user_id", $token, time()+3600,"/",".yourdomain.com"); } look at the setcookie function on php.net to figure out all the parameters: http://www.php.net/manual/en/function.setcookie.php -Shane - Original Message - From: "phpLover" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 03, 2001 11:25 PM Subject: [PHP] Session With Cookies How can I maintain a user session using cookies? 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] -- 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 / TODO
sterlingSun Feb 4 01:19:01 2001 EDT Modified files: /php4 TODO Log: Add a bunch of stuff.. Index: php4/TODO diff -u php4/TODO:1.109 php4/TODO:1.110 --- php4/TODO:1.109 Wed Jan 24 11:16:43 2001 +++ php4/TODO Sun Feb 4 01:19:01 2001 @@ -52,7 +52,17 @@ - * add remarks in the documentation which functions are not implemented on win32. * add remarks in the documentation which functions are not binary-safe. + * improve documentation for the sablotron extension + * update curl documentation + * write documentation for the bzip2 extension + * write documentation for the zziplib extension +ext/curl + + * Use the cURL write handler to save data for use when returning data or +outputting + data. + * Have a warning scheme for when people use unsupported features. + ext/dav * rewrite. @@ -61,21 +71,31 @@ * all OCIFetch*() functions should return 0 for no more data and false on error. * have a flag that trims trailing spaces from CHAR fields on retrieval. - * make allow_call_time_pass_reference=Off working. + * mempty clipboardake allow_call_time_pass_reference=Off working. + * for additional todo information, see oci8.c, in ext/oci8 ext/pcre * update the online docs from version 3.1 man page +ext/sablot +-- + * Re-write the error handling and reporting interface + * Cleanup the underlying code a bit + * Add proper support for the message handlers + ext/session --- -* implement a call to set a session read-only to overcome - the need to serialize frame-loads. * maybe implement finer-grained session variables that could be locked individually. * write a network-transparent storage back-end with fallover facilities +ext/sockets +--- + * Make the extension work on windows + * Make the extension work with Solaris and the Sun GCC + ext/standard * add a version number to data serialized via serialize(). @@ -94,6 +114,10 @@ strip_tags() * rewrite win32 SMTP code to be useable for *ix to, maybe as a (default) module of its own (Hartmut) + +ext/zziplib + + * more fully support the zziplib api ext/wddx -- 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 / TODO
sterlingSun Feb 4 01:20:31 2001 EDT Modified files: /php4 TODO Log: # *Brain Fart* Index: php4/TODO diff -u php4/TODO:1.110 php4/TODO:1.111 --- php4/TODO:1.110 Sun Feb 4 01:19:01 2001 +++ php4/TODO Sun Feb 4 01:20:31 2001 @@ -71,7 +71,7 @@ * all OCIFetch*() functions should return 0 for no more data and false on error. * have a flag that trims trailing spaces from CHAR fields on retrieval. - * mempty clipboardake allow_call_time_pass_reference=Off working. + * make allow_call_time_pass_reference=Off working. * for additional todo information, see oci8.c, in ext/oci8 ext/pcre -- 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] Session With Cookies
Eelco de Vries wrote: This will store a cookie with a userid and an unique number ($token) as session-id (??). If I'm not mistaken, this session-id is not checked here. Thus serves no purose. Anybody who retrieve the cookie from the cookie file on the system can use it to resume the session (if done within the set 3600sec.). Even if the browser has been closed. // Set Cookie if not already set if (!isset($user_id)) { $token = md5(uniqid(rand())); setcookie("user_id", $token, time()+3600,"/",".yourdomain.com"); } The example here has nothing to do with sessions, you are correct. The person who replied to you simply gave you a code snippet from one of my books that assigns a unique id via a cookie. It does not map to a PHP session. As to your case: In case of login/password required sites, I use the login and password as cookie values and have _no_ expiredate set. Every time a request is made _both_ cookie values (login and password) are checked with that on the server. I would hope that you are not storing and matching the user's plaintext password... ++ | Julie Meloni ([EMAIL PROTECTED]) | || | "PHP Essentials" and "PHP Fast Easy" | | http://www.thickbook.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]
Re: [PHP] my bugaboo.
I had a problem similar to this myself a while ago... I don't believe the issue is with the differing versions of PHP, but rather with the improper escaping of the quote characters. There are two PHP functions: addslashes() and stripslashes() Call the former when you submit the information to properly escape the characters that need it, something like: $new_data = addslashes($old_data); should work... then when you go to display the information, call stripslashes to de-escape everything: $display_str = stripslashes($new_data); I hope this helps. -Matt At 06:42 PM 2/3/2001, you wrote: Hi.. I have a routine where we input text to fields. When there is an apostrophe it handles it correctly. When the form is brought back for editing, the field values show up in the input fields, with all apostrophes intact, just as it should be. When I upload this script to my isp, it doesn't work.. The apostrophes truncate the rest of the text. 'Don't cry over spilled milk', in a field, turns into 'Don'... I have php4 mod in my win32 devbox. The isp is php3. Is this the problem? What is the best way out of it please? Thanks in advance. Floyd -- 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] Session With Cookies
In case of login/password required sites, I use the login and password as cookie values and have _no_ expiredate set. Every time a request is made _both_ cookie values (login and password) are checked with that on the server. I would hope that you are not storing and matching the user's plaintext password... Well .. I am ... nobody but the user itself can see the login and password in the cookie. Unless it's on non-SSL connection and somebody is packet-shiffing around. Otherwise there would be no leak for somebody else to get this information, is there? And if the user doesn't logout, the cookie is still destroyed when the browser is closed anyway. Eelco. -- 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] getimagesize question
$size = getimagesize($Frame."top.gif"); I think you should read this : http://www.zend.com/zend/tut/using-strings.php Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 5:28 AM To: [EMAIL PROTECTED] Subject: [PHP] getimagesize question Hi, I`m using the following to get the image size... $size = getimagesize("$Frame"); My problem is $Frame can`t contain the full name of the image for various reasons, so what I need to do is somehow add the rest, something along the lines of this... $size = getimagesize("$Frame'top.gif'"); If $Frame = Hello then the getimagesize would perform on Hellotop.gif but as yet it isn`t working anyone have a suggestion? I have tried a few variations such as ("$Frame" + "top.gif") ("$Frame\"top.gif\"") ($Frame"top.gif") Thanks Ade -- 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] Undefined variable
try setting error_reporting(0) in PHP.ini Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Dundee (Roland) [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 5:35 AM To: Php_List Subject: [PHP] Undefined variable Hello When creating a page(php) on Win2000 I get alot of 'Undefined variable' error messages, but there are no errors at all running the same page on a apache server. How come? Thanks for some hints. Roland -- 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 hosting - the final frontier.
Well, I'll contribute to the discussion whether you like or not... For a year I was running a website on Canaca.com (former Nortel.no) ... They've been nice, I though ... Then I once tried one weird thing: ?='PRE'.show_code('/usr/local/apache/conf/httpd.conf').'/PRE'? from a simple PHP page ... hmm ... Not only I broke to the hell their security, but I also found 342 matches under a simple search for /virtual .. I then quickly understood that I wasn't the only *unhappy* customer on the server ... there were 341 MORE!!! I stayed with them until my contract ended and then added my friend to my business and rented a dedicated server on insidecrew.net for something like $200 a month ... Too much you'll say? But we have a root access now on an extremely cute FreeBSD machine... We are now reselling some of our space to *these who we know* and the price drops dramatically, we can add more projects AND WE ARE THE ROOTS not the rats... So my advice : if you run more then one project, preferably not alone, and know others who is willing to do the same : add them in and get yourself a real server! Of course it only works for these who know the systems ... not for small businesses... these need some help... My point is simple: Yes it is better to be hosted by a smaller company, but, only if they are responsible enough not to put too many others up there ... and it all have to cost less then a big company, otherwise I myself will become a company. Can you do it? Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Navid Yar [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 6:27 AM To: 'Robert Covell'; 'Boaz Yahav'; 'Ben Peter'; 'Chris Mason' Cc: 'Php-General' Subject: RE: [PHP] PHP hosting - the final frontier. Actually, there is nothing wrong with a one-manned hosting service. I agree with Robert in this, there are a lot of big hosting companies that don't really have a personal hold of their business to really care about their clients. To them everything is automated and all they do is hire customer service people who are only taught to, well, "serve customers" with answers to questions they don't know in the first place. They just read from the script and have basic step-by-step trouble shooting instructions in front of them to solve a client's problems/requests. If you need an updated software package, like PHP4, froman old PHP3 engine, you'de have to beg for it and you might have to go through several layers of support just for that request to go through. Let me remind you that the software is free of charge. If the request is accepted, then more power to you. If it's not then you'll have to deal with it until you decide to find another host. I have one question for you Robert. XML has been in the market for a long time (since 1998), and the recommendations are now set to a true standard. Why do most hosting services not have support for XML based languages yet? Thanks... Navid Yar -Original Message- From: Robert Covell [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 03, 2001 2:40 PM To: Boaz Yahav; Ben Peter; Chris Mason Cc: Php-General Subject: RE: [PHP] PHP hosting - the final frontier. I shouldn't even reply to this... Yes I would host with me. Have you ever heard of a backup plan. People that would step in if something happens to me? People that I trust to keep the company going if it fails. With all due respect, how do people host with a company that doesn't give a rats ass about them or their business. How many big companies redirect your call, or brush you away when problems occur. I been over backwards for my clients. Providing better service then many of the bigger companies out there. That is why people do and will continue to host with me. Like I said, I plan on hiring people in the near future. Things take time to evolve. I am not saying that my company is for everyone. If you don't like a one man shop then don't go there. People have taken a chance with me and have not been disappointed like so many times before. Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 03, 2001 1:38 PM To: 'Robert Covell'; Ben Peter; Chris Mason Cc: Php-General Subject: RE: [PHP] PHP hosting - the final frontier. And if, God forbid, something was to happen to you... 120 People / Companies would be left with a server that no one knows the root password too? With all due respect, how can someone in his right mind host with a one man gang company? For all I know you can be a hosting genius and give the best service around but you are still one man. Would you host with you ? :) Sincerely berber Visit http://www.weberdev.com Today!!! To see
RE: [PHP] php-nuke?
Use cron ... Search archives for something like "running PHP with cron" Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: FredrikAT [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 9:24 AM To: [EMAIL PROTECTED] Subject: [PHP] php-nuke? What is php-nuke? How could I make a php-page execute something (itself?) without entering the site... it starts evry hour?! - Fredrik A. Takle [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-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4
rasmus Sun Feb 4 02:05:13 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for Andre Roque Index: CVSROOT/avail diff -u CVSROOT/avail:1.71 CVSROOT/avail:1.72 --- CVSROOT/avail:1.71 Fri Feb 2 08:31:32 2001 +++ CVSROOT/avail Sun Feb 4 02:05:12 2001 @@ -7,7 +7,7 @@ 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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,hholzgra|functable avail|rasmus,sterling,jimw|pres avail|jalal,zak,waldschrott,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,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|phpdoc +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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,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|phpdoc avail|andrei|php-gtk avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.201 CVSROOT/cvsusers:1.202 --- CVSROOT/cvsusers:1.201 Fri Feb 2 08:31:32 2001 +++ CVSROOT/cvsusersSun Feb 4 02:05:12 2001 @@ -250,3 +250,4 @@ hellekin Hellekin O. Wolf[EMAIL PROTECTED] QA rjs Rainer Schaaf [EMAIL PROTECTED] pdflib kgergely Kontra Gergely [EMAIL PROTECTED] Hungarian translation +andreroq Andre Roque [EMAIL PROTECTED] +Brazilian Portuguese translation Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.72 CVSROOT/gen_acl_file.m4:1.73 --- CVSROOT/gen_acl_file.m4:1.72Fri Feb 2 08:31:32 2001 +++ CVSROOT/gen_acl_file.m4 Sun Feb 4 02:05:12 2001 @@ -3,7 +3,7 @@ dnl PHP Developers (full access to the source trees) define(`php_dev', `php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs') dnl PHP Documentation Group -define(`php_doc', `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')dnl +define(`php_doc',
[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4
rasmus Sun Feb 4 02:07:49 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma for Vlad Index: CVSROOT/avail diff -u CVSROOT/avail:1.72 CVSROOT/avail:1.73 --- CVSROOT/avail:1.72 Sun Feb 4 02:05:12 2001 +++ CVSROOT/avail Sun Feb 4 02:07:48 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,waldschrott,sniper,david,lyric,zimt,mk,goba,zak|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt,uw,jeichorn|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt,uw,jeichorn|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,hholzgra|functable avail|rasmus,sterling,jimw|pres avail|jalal,zak,waldschrott,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,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|phpdoc
[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4
rasmus Sun Feb 4 02:10:57 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for Eduard Hergenroeder Index: CVSROOT/avail diff -u CVSROOT/avail:1.73 CVSROOT/avail:1.74 --- CVSROOT/avail:1.73 Sun Feb 4 02:07:48 2001 +++ CVSROOT/avail Sun Feb 4 02:10:57 2001 @@ -7,7 +7,7 @@ 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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,hholzgra|functable avail|rasmus,sterling,jimw|pres avail|jalal,zak,waldschrott,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,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|phpdoc +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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,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|phpdoc avail|andrei|php-gtk avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.202 CVSROOT/cvsusers:1.203 --- CVSROOT/cvsusers:1.202 Sun Feb 4 02:05:12 2001 +++ CVSROOT/cvsusersSun Feb 4 02:10:57 2001 @@ -251,3 +251,4 @@ rjs Rainer Schaaf [EMAIL PROTECTED] pdflib kgergely Kontra Gergely [EMAIL PROTECTED] Hungarian translation andreroq Andre Roque [EMAIL PROTECTED] Brazilian Portuguese translation +eduardh Eduard Hergenroeder [EMAIL PROTECTED] +German translation Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.74 CVSROOT/gen_acl_file.m4:1.75 --- CVSROOT/gen_acl_file.m4:1.74Sun Feb 4 02:07:48 2001 +++ CVSROOT/gen_acl_file.m4 Sun Feb 4 02:10:57 2001 @@ -3,7 +3,7 @@ dnl PHP Developers (full access to the source trees) define(`php_dev', `php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad') dnl PHP Documentation Group -define(`php_doc', `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')dnl +define(`php_doc',
[PHP] Working with email piped to PHP
Ok, I've got an email address setup to pipe to a PHP script setup to handle the request and do whatever I need to. (In my specific situation, it's a help email address, and will create a ticket in a database.) As a test, I'm opening the STDIN data stream and writing it to a file to make sure the email looks correct. ? # This is the standard input script. $fp = fopen("php://stdin","r"); $writer_file = fopen("test.txt","w"); fwrite($writer_file,"$fp"); fclose($writer_file); fclose($fp); ? As stated, it does create the test.txt in the specified location, however, upon inspection of the file, it only shows the following text: "Resource id #1" on the first line, and that's it. I'm using PHP compiled as an apache module. Is there something I'm doing wrong? Thanks, Roy Wilson, Jr. Director, Administration/Information Services Aosdic Realm -- 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] Working with email piped to PHP
# This is the standard input script. $fp = fopen("php://stdin","r"); $writer_file = fopen("test.txt","w"); fwrite($writer_file,"$fp"); fclose($writer_file); fclose($fp); ? As stated, it does create the test.txt in the specified location, however, upon inspection of the file, it only shows the following text: "Resource id #1" on the first line, and that's it. This is what would be expected, your writing a file pointer to file not the coentents of the stdin, you need to do somthing along the lines of the following // Untested Code /* -*- Open stdin for reading -*- */ $fp = fopen("php://stdin","r"); /* -*- Open test.txt for writing -*- */ $writer_file = fopen("test.txt","w"); /* -*- Check both were opened -*- */ if($fp $writer_file) { /* -*- Read in stdin -*- */ while(!feof($fp)) { $stdin .= fread($fp, 4096); } /* -*- Write to test.txt -*- */ if (sizeof($stdin) != fwrite($writer_file, $stdin, sizeof($stdin))) { //Not all of stdin was written to file } else { /* -*- Close Files -*- */ fclose($writer_file); fclose($fp); } } else { //files were not opened } James -- 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 code beautifier?
Yes, I know it should be written correctly from the beginning. But, in case it isn't: what do you use to format ugly looking scripts? Maciek -- 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 a missing feature?
On Sunday 04 February 2001 07:31, John Luxford wrote: function foo ($hash) { while (list ($k, $v) = each ($hash)) { echo "$k :: $vbr /\n"; } } // but what I want to say is something like this foo (["one" = "value", "two" = "value"]); foo () is declared to take a reference to a variable. This only works with "real" variables, not the temporary ones returned from array() etc. Modify it to function foo ($hash) { and it will work -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has." - Margaret Mead -- 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] Re:What version of Linux?
On Sunday 04 February 2001 05:03, John Hinsley wrote: Well, my home server is a wimpy P90 with 48MB RAM. It serves as web server (all my technical docs, php website testing, more), web cache [...] else :) Ah, yes. MySQL for my php stuff also runs on it. That's pretty impressive! Well, Linux makes it possible *cough* :) The only problem I have with its performance is that it's only connected to my other machines via 10 MBit ethernet (well, and the ram is a bit on the low side). The processor's limits aren't reached by a long shot. It'd be interesting to do some benchmarking on it. My guess (nothing more) is that the limitations are RAM, disk read/write speed and network speed in that order. disk r/w speed isn't really an issue. If it is, it's because the machine doesn't have enough RAM to buffer the stuff. Network speed should be at the top of that list for fileserving, but for PHP stuff 10MBit is completely sufficient. Processor performance *is* somehow a point for PHP - on my more complex pages I have script parsing times of 0.5-0.7 seconds, plus 1-1.5s for DB queries, output generation etc (yes, I do cache such heavy pages. just took that as example) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has." - Margaret Mead -- 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] HTTP compression
Hi, I've just started experimenting with ob_start("ob_gzhandler") a bit, and I have found that if any output is generated before ob_start() is called, nothing at all gets compressed; if ob_start() is called before any output, everything is compressed. Is this the case, I mean, is this "by design" ? -- 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] HTTP compression
I've just started experimenting with ob_start("ob_gzhandler") a bit, and I have found that if any output is generated before ob_start() is called, nothing at all gets compressed; if ob_start() is called before any output, everything is compressed. Is this the case, I mean, is this "by design" ? Yes, it wouldn't really work any other way. You can't mix non-compressed and compressed in the same request. -Rasmus -- 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] Arrays from forms
Can someone please help me with this code I'm having major problems with arrays. This code is part of a function I'm writing to deal with an array returned from a HTML form of check boxes so if anyone has an example of this sort of thing I'd appreciate a look at it. Anyway Code follows : //Reading from a data base $db = mysql_connect("$DB_Server", "$DB_Login, $DB_Password"); mysql_select_db("$DB_Name",$db); $results = mysql_query("SELECT option_type, code FROM options WHERE code='000' ORDER BY option_type",$db); mysql_fetch_array($results); // From what understand I should have an array some thig like this: // ("Size"="A4" , "Size" = "A3", "Size"="A5", "Colour"="Red", etc..); $types = array_values($results); // OK so now I think I have an array like this: // ("A4" , "A3", "A5", "Red", etc..); while ($type =array_pop($types)){ echo $type."br"; } // Now I'm expecting this list to be printed to be outputted A4 A5 A3 Red etc... I'm figureing that this would be a good way to retreive a listing from the web site arrays and test and insert them one by one. /// The table options option_type || code || option_preferences Size || 000 || A4 Size || 000 || A3 Size || 000 || A5 Colour || 000 || Red Colour || 000 || Blue Colour || 000 || Green
RE: [PHP] HTTP compression
Rasmus, Thanks for the clarification; it seems obvious, too, that mixing compressed and non compressed content would be quite difficult to implement; at least it would partially compromise the speed/size gain because of added protocol overhead. Now, imagining that we have enabled compression by calling ob_start("ob_gzhandler"), what happens for a document that contains something along these lines: !-- snip -- ... ? // Enable HTTP compression ob_start("ob_gzhandler"); // PHP content $content = "This is some content."; ? divThis is a normal HTML section/div ? // PHP content continues $content .= "And the rest of it."; echo $content; ? ... !-- snip -- In this particular case, what would be compressed ? As far as I have understood, nothing at all, because some part of the output is not "passing through" PHP, right ? -Message d'origine- De : Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Envoye : dimanche 4 fevrier 2001 14:34 A : Alain Fontaine Cc : [EMAIL PROTECTED] Objet : Re: [PHP] HTTP compression I've just started experimenting with ob_start("ob_gzhandler") a bit, and I have found that if any output is generated before ob_start() is called, nothing at all gets compressed; if ob_start() is called before any output, everything is compressed. Is this the case, I mean, is this "by design" ? Yes, it wouldn't really work any other way. You can't mix non-compressed and compressed in the same request. -Rasmus -- 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] Future plans (4.1) ?
Hi Rasmus, thanks for you reply. As some of the phpers already stated I also disagree about the visibility issue. But it's IMHO anyway (besides I do not have technical skills enough to try to implement it). I'll check the template you mentioned but I was wondering if a "built-in" one would not give a better integration and give php users a "standard" way... So what's in the TODO list for a 4.1 release ? Thanks again --- Rasmus Lerdorf [EMAIL PROTECTED] wrote: For a fast templating system, see Smarty. http://www.phpinsider.com/php/code/Smarty/ As for better OO. I think many of the things people ask for, like visibility (public,private,protected) class properties, aren't actually features that add functionality, but more just convenience features that could be implemented in user space. For example, you could establish a convention that said that any class property that starts with an _underscore should be considered a private property, and one would hope that your UML tool could be configured to understand that. __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.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 /win32 time.c
jmoore Sun Feb 4 07:52:33 2001 EDT Modified files: /php4/win32 time.c Log: Fix for time.c under win32. Patch By: "Vanhanen, Reijo" [EMAIL PROTECTED] @- microtime under windows now returns accurate values (James) Index: php4/win32/time.c diff -u php4/win32/time.c:1.4 php4/win32/time.c:1.5 --- php4/win32/time.c:1.4 Wed Jun 16 10:06:53 1999 +++ php4/win32/time.c Sun Feb 4 07:52:32 2001 @@ -11,7 +11,15 @@ * */ +/* $Id: time.c,v 1.5 2001/02/04 15:52:32 jmoore Exp $ */ + /** + * + * 04-Feb-2001 + * - Added patch by "Vanhanen, Reijo" [EMAIL PROTECTED] + * Improves accuracy of msec + */ + /* Include stuff */ #include "time.h" @@ -21,22 +29,92 @@ #include mmsystem.h #include errno.h +int getfilesystemtime(struct timeval *time_Info) +{ +FILETIME ft; +__int64 ff; + +GetSystemTimeAsFileTime(ft); /* 100 ns blocks since 01-Jan-1641 */ +/* resolution seems to be 0.01 sec */ +ff = *(__int64*)(ft); +time_Info-tv_sec = (int)(ff/(__int64)1000-(__int64)11644473600); +time_Info-tv_usec = (int)(ff % 1000)/10; +return 0; +} + + + int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info) { - _int64 mstimer, freq; + + static struct timeval starttime = {0, 0}; + static __int64 lasttime = 0; + static __int64 freq = 0; + __int64 timer; + LARGE_INTEGER li; + BOOL b; + double dt; + /* Get the time, if they want it */ if (time_Info != NULL) { - time_Info-tv_sec = time(NULL); - /* get ticks-per-second of the performance counter - Note the necessary typecast to a LARGE_INTEGER structure -*/ - if (!QueryPerformanceFrequency((LARGE_INTEGER *) freq)) { - time_Info-tv_usec = 0; - } else { - QueryPerformanceCounter((LARGE_INTEGER *) mstimer); - mstimer = (__int64) (mstimer * .8); - time_Info-tv_usec = (long) (mstimer % 0x0FFF); - } + if (starttime.tv_sec == 0) { +b = QueryPerformanceFrequency(li); +if (!b) { +starttime.tv_sec = -1; +} +else { +freq = li.QuadPart; +b = QueryPerformanceCounter(li); +if (!b) { +starttime.tv_sec = -1; +} +else { +getfilesystemtime(starttime); +timer = li.QuadPart; +dt = (double)timer/freq; +starttime.tv_usec -= (int)((dt-(int)dt)*100); +if (starttime.tv_usec 0) { +starttime.tv_usec += 100; +--starttime.tv_sec; +} +starttime.tv_sec -= (int)dt; +} +} +} +if (starttime.tv_sec 0) { +b = QueryPerformanceCounter(li); +if (!b) { +starttime.tv_sec = -1; +} +else { +timer = li.QuadPart; +if (timer lasttime) { +getfilesystemtime(time_Info); +dt = (double)timer/freq; +starttime = *time_Info; +starttime.tv_usec -= (int)((dt-(int)dt)*100); +if (starttime.tv_usec 0) { +starttime.tv_usec += 100; +--starttime.tv_sec; +} +starttime.tv_sec -= (int)dt; +} +else { +lasttime = timer; +dt = (double)timer/freq; +time_Info-tv_sec = starttime.tv_sec + (int)dt; +time_Info-tv_usec = starttime.tv_usec + +(int)((dt-(int)dt)*100); +if (time_Info-tv_usec 100) { +time_Info-tv_usec -= 100; +++time_Info-tv_sec; +} +} +} +} +if (starttime.tv_sec 0) { +getfilesystemtime(time_Info); +} + } /* Get the timezone, if they want it */ if (timezone_Info != NULL) { @@ -52,21 +130,32 @@ /* this usleep isnt exactly accurate but should do ok */ void usleep(unsigned int useconds) { - __int64 mstimer, freq; - long now, then; - if (QueryPerformanceFrequency((LARGE_INTEGER *) freq)) { - QueryPerformanceCounter((LARGE_INTEGER *) mstimer); - now = (long) (((__int64) (mstimer * .8)) % 0x0FFF); - then = now + useconds; -
RE: [PHP] HTTP compression
Alain, When PHP parses a file, it treats the stuff that's not in ?php? blocks as though each line were a print or echo statement. So your whole file will be compressed and sent to the browser. Regards, Sean On Sun, 4 Feb 2001, Alain Fontaine wrote: Rasmus, Thanks for the clarification; it seems obvious, too, that mixing compressed and non compressed content would be quite difficult to implement; at least it would partially compromise the speed/size gain because of added protocol overhead. Now, imagining that we have enabled compression by calling ob_start("ob_gzhandler"), what happens for a document that contains something along these lines: !-- snip -- ... ? // Enable HTTP compression ob_start("ob_gzhandler"); // PHP content $content = "This is some content."; ? divThis is a normal HTML section/div ? // PHP content continues $content .= "And the rest of it."; echo $content; ? ... !-- snip -- In this particular case, what would be compressed ? As far as I have understood, nothing at all, because some part of the output is not "passing through" PHP, right ? -Message d'origine- De : Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Envoye : dimanche 4 fevrier 2001 14:34 A : Alain Fontaine Cc : [EMAIL PROTECTED] Objet : Re: [PHP] HTTP compression I've just started experimenting with ob_start("ob_gzhandler") a bit, and I have found that if any output is generated before ob_start() is called, nothing at all gets compressed; if ob_start() is called before any output, everything is compressed. Is this the case, I mean, is this "by design" ? Yes, it wouldn't really work any other way. You can't mix non-compressed and compressed in the same request. -Rasmus -- 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] % operator
"Dhaval Desai" [EMAIL PROTECTED] wrote: what is the use of % It returns a remainder. For example 7 % 2 = 1. Is it called modulo..what is it's use in PHP.? There are plenty of situations where it's useful. For example, if you're displaying data in rows and want to shade every other row: if ( 1 == $row_count % 2 ) { echo "trtd$data/td/tr"; } else { echo "trtd class='shade-1'$data/td/tr"; } Or if you have a data set you want to display in an HTML table across multiple rows, you'll probably find it useful for determining when to put tr or /tr as you loop through your data set and use it to calculate whether you will need to fill cells at the end of the table with non-breaking spaces. There are many other applications, but these two come up pretty frequently in web applications. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.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 /ext/standard/tests/time .cvsignore 001.phpt
jmoore Sun Feb 4 08:56:59 2001 EDT Added files: /php4/ext/standard/tests/time .cvsignore 001.phpt Log: Adding microtime() tests Index: php4/ext/standard/tests/time/.cvsignore +++ php4/ext/standard/tests/time/.cvsignore *.exp *.out *.php phpt.* Index: php4/ext/standard/tests/time/001.phpt +++ php4/ext/standard/tests/time/001.phpt --TEST-- microtime() function --POST-- --GET-- --FILE-- ?php $passed = 0; $failed = 0; for ($i=1;$i=10;$i++){ list($micro,$time)=explode(" ",microtime()); $add=$micro+$time; $add$last ? $failed++: $passed++; $last=$add; } echo "Passed: ".$passed."\n"; echo "Failed: ".$failed."\n"; ? --EXPECT-- Passed: 10 Failed: 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]
Re: [PHP] Arrays from forms
"Jamie" [EMAIL PROTECTED] wrote: $results = mysql_query("SELECT option_type, code FROM options WHERE code='000' ORDER BY option_type",$db); mysql_fetch_array($results); // From what understand I should have an array some thig like this: // ("Size"="A4" , "Size" = "A3", "Size"="A5", "Colour"="Red", etc..); According to your SQL statement that doesn't appear to be true. According to your SQL statement you'll return two fields: option_type and code. $types = array_values($results); // OK so now I think I have an array like this: // ("A4" , "A3", "A5", "Red", etc..); while ($type =array_pop($types)){ echo $type."br"; } I'd avoid using array_values() and array_pop(). Simply do this: while ( $row = mysql_fetch_array( $result ) ) { $option_type = $row[option_type]; $code = $row[code]; echo "$option_type $codebr"; } Hopefully that'll be enough to get you going. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.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] Problem with Zend Encoder testdrive - Win2k
Downloaded the Encoder testdrive and installed it with a license file (zend_encoder.dat). Did what the manual stated, except that I installed it on E:\program files\zend instead of C:\program files\zend (I did modify the install_license.reg before installing it into the registration database) When I run the zendenc.exe, I get a dialog stating that it cannot find the license data. I'm able to specify it manually, but then I get another errormessage saying "Error in saving configuration settings". Anyone else had this problem? - 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] PHP Authenticate
Hi... I have a problem with PHP Authenticate ...if I enter user/pw wrong the first time it stops and I have to close/open browser.! I've tried to unset $PHP_AUTH_USER but then it just loops... if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\".: Privat område :.\""); Header("HTTP/1.0 401 Unauthorized"); echo "brfont face=\"arial, helvetica, sans-serif\" size=\"2\" color=\"#0060CF\"Secured Area!/font"; exit; } else { $PHP_AUTH_PW_ENCRYPTED = crypt("$PHP_AUTH_PW", "wP"); $connect = mysql_connect($hostname,$username,$password) or die ("Klarer ikke koble til MqSQL db..."); $query = "SELECT * FROM forfatter"; $query .= " where id = $PHP_AUTH_USER"; $result = mysql_db_query($db, $query); while($row = mysql_fetch_array($result)) { $id = $row["id"]; $navn = $row["navn"]; $pw = $row["pw"]; } if (($id == $PHP_AUTH_USER) AND ($pw == $PHP_AUTH_PW_ENCRYPTED)) $bruker_ok = true; } else exit; } } - Fredrik A. Takle [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] 2 questions
Hi I have a couple of questions. One about hosting and the other about IP addresses. The first on the IP's. I have been speaking to a company that I am looking at getting a dedicated server from. They ONLY do one IP address per server and use name-based hosting. I have asked for dedicated IP's, but their answer has been that all hosting companies are going to have to go to name-based hosting now. What is everyone's feeling on this? Years ago, the company I was with used name-based and I remember that the search engines did not like this On to hosting, the above server is a Cobalt Raq 4i. Does anyone else on the list use one of these and what do you think? I want to make sure that it's easy enough to compile latest php and mysql whenever I want to Thanks for any advice Ade -- 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] HTTP compression
Alain Fontaine wrote: Sean, Thanks, I see. How about headers ? Do they need to be compressed, too; in other words, do headers "belong" to the output ? a HTTP response is made of response header(s) and the response body. Only the body is compressed, and this is signaled in the headers so the User Agent will know not to stare to a bunch of binary data :) -- teodor -- 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] Newbie:Cannot send session cookie...
james wrote: 1. Cannot send session cookie - headers already sent by (output started at c:/program files/apache group/apache/htdocs/index.php4:10) in c:/program files/apache group/apache/htdocs/index.php4 on line 11 What does it mean? Any hints? the error message is quite explicit. By the time it reaches the line 11 in index.php4 you already sent something to output, so if you have on index.php4:11 something like header(), setCookie() or session_start() which imply sending a header, is no longer possible [ you cannot send a header after you already started sending the body ]. 2. Another problem: My htm page has two frames (left and right). I activate php4 script from button on left frame. Question: How can I print the result of query on the right frame? frame name="that_one_with_the_button" action="show.php" target="left_frame_name" ... -- teodor -- 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] HTTP compression
Teodor, Looked at it from that point of view, the question was pretty stupid ! ;) -Message d'origine- De : Teodor Cimpoesu [mailto:[EMAIL PROTECTED]] Envoye : dimanche 4 fevrier 2001 19:09 A : Alain Fontaine Cc : Sean Cazzell; [EMAIL PROTECTED] Objet : Re: [PHP] HTTP compression Alain Fontaine wrote: Sean, Thanks, I see. How about headers ? Do they need to be compressed, too; in other words, do headers "belong" to the output ? a HTTP response is made of response header(s) and the response body. Only the body is compressed, and this is signaled in the headers so the User Agent will know not to stare to a bunch of binary data :) -- teodor -- 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] db paging with MS Sql
Scott, As far as I know, MS SQL supports a syntax like this: SELECT TOP 10 FROM table_name WHERE etc etc However, I don't know how to make it start from a certain offset; I guess MS SQL's documentation, especially the T-SQL doc, should help. ""Scott Parks"" [EMAIL PROTECTED] a écrit dans le message news: 00b601c08ed1$ef153f30$[EMAIL PROTECTED] Has anyone seen a good lession or code example on paging records from MS Sql 7? Say I have 300 records and want to break them down to 10 per page using [previous | next ] and a list of page numbers at the bottom. tia -- 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] Is this a missing feature?
Lux wrote: Where do I make a formal request for a feature? In Perl or Ruby, I could have said: foo ({ 'var1' = 'value', 'var2' = 'value'}); and it is so much more elegant than having to say: $hash = array ( 'var1' = 'value', 'var2' = 'value' ); foo ($hash); elegance is everything, man. lux lux in latin means 'light' right? :) let me enlighten then :-P foo ($hash = array('var1'='value', 'var2'='value')); should work. Now, I don't undestand why exactly do you need references. By default everything is passed in a referenced manner, if I undestood correct the explanation Zeev wrote right after 4.0 was out, or so. Don't take references like something that will boost your skript speed to 200%. Use them only when you need them, and to find out when you actually need them check out an article on references at zend.com. Now, let me tell you that somehow I agreed with you :) cause I love Python way of dealing with arrays, but we are in PHP, so we have to figure PHP way, not your-fav-lang way. ciao -- teodor -- 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] Connectivity to AS/400
I'm going to be trying to connect to the native DB2 database in a AS/400 So far thats all I know about the IBM side. Can someone give me a short update on what options I have ? TIA !!! -pete -- 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] Replacing A Word in HTML page
"phpLover" [EMAIL PROTECTED] wrote: Thanks for your answerm but what does eregi_replace() do? Short answer is to see http://www.php.net/manual/en/function.eregi-replace.php. Usage examples can be found right on php.net. See longer answer below. Previously "phpLover" [EMAIL PROTECTED] wrote: I want to read an HTML page from another site and replace certain characters with capital letters and show them in another dynamically generated web page on my site. I should have said use ereg_replace(). It matches text using regular expressions (regular expressions allow for complex matching) in a case-sensitive manner. Depending on the specifics of what you're attempting it may be of use. You could use it to replace certain characters within a specific part of the HTML source page (but ignore the same characters within other parts of the page) with capital letters (like you described). If you simply want to replace all matches within the page str_replace() is a better choice. Regular expressions are a more difficult concept to master than a lot of other concepts within PHP so you may want to look at some tutorials or books on the subject. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.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]
Re: [PHP] Is this a missing feature?
At 8:40 PM +0200 2/4/01, Teodor Cimpoesu wrote: Lux wrote: Where do I make a formal request for a feature? In Perl or Ruby, I could have said: foo ({ 'var1' = 'value', 'var2' = 'value'}); and it is so much more elegant than having to say: $hash = array ( 'var1' = 'value', 'var2' = 'value' ); foo ($hash); elegance is everything, man. lux lux in latin means 'light' right? :) let me enlighten then :-P foo ($hash = array('var1'='value', 'var2'='value')); should work. And just to turn up the wattage a little further (hey, I work for the University of California whose motto is 'Fiat Lux', menaing either Lux drives an Italian car or 'Let there be light')... You don't need the $hash in that function call unless you need to use it later on in your main program, so you can just say: foo (array('var1'='value', 'var2'='value')); which is basically the same as the Perl or Ruby (??? never heard of that...) call above, with the addition of array(...). I use the function(array('param1'='value', ...)) syntax a lot instead of individual parameters in function calls. I don't have to remember function argument order that way. - steve Now, I don't undestand why exactly do you need references. By default everything is passed in a referenced manner, if I undestood correct the explanation Zeev wrote right after 4.0 was out, or so. Don't take references like something that will boost your skript speed to 200%. Use them only when you need them, and to find out when you actually need them check out an article on references at zend.com. Now, let me tell you that somehow I agreed with you :) cause I love Python way of dealing with arrays, but we are in PHP, so we have to figure PHP way, not your-fav-lang way. ciao -- teodor -- +--- "They've got a cherry pie there, that'll kill ya" --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-- FBI Special Agent Dale Cooper ---+ -- 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 a missing feature?
foo ($hash = array('var1'='value', 'var2'='value')); should work. You don't need the $hash in that function call unless you need to use it later on in your main program, so you can just say: foo (array('var1'='value', 'var2'='value')); that won't work (Lux's complaint) when foo() is declared function foo ($hash) cause PHP cannot extract the reference of an array unbound to any PHP variable. There is only one exception, which is for objects created with new. -- teodor -- 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] Re: [PHP-DB] Connectivity to AS/400
There's been a lot of talk about this recently. Check the archives for the last 2 months, and PHPBuilder.com Last I heard, you needed DRDA(DB2 Connect) installed, as well as the runtime client. Also on the client - DB2 Application Development package. Use this to compile PHP --with-ibm-db2=path. Make sure you run the CATALOG commands on the client so that it can find the AS400 database. 'Luck! -Szii At 10:41 AM 2/4/2001 -0800, Pete Lancashire wrote: I'm going to be trying to connect to the native DB2 database in a AS/400 So far thats all I know about the IBM side. Can someone give me a short update on what options I have ? TIA !!! -pete -- PHP Database 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] XML Parsing with PHP
Where can I find some info on parsing XML with PHP? I am not looking for functions, but examples and explanations ! Thx -- 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] Installing Verisign PFPro Support
Hello! I'm trying to configure PHP with Verisign PayFlow PRO support on my server. I'm running FreeBSD 4, Apache 1.3.12, mod_ssl, openSSL, and mySQL 3.23.32. I downloaded the newest release of PHP (4.0.4pl2) and tried compiling it, using the ./configure --with-pfpro=[dir] thing and I get the following error: /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_mutex_unlock' /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_self' /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_mutex_destroy' /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_mutex_lock' /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_mutex_init' I've never done anything like this before, so I'm not really sure what's goin' on. Any insight into the problem would be greatly appreciated! Thanks! -brady -- Brady J. Horenstein [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] XML Parsing with PHP
phpbuilder.com - there are a few articles on the site about XML --Joe On Sun, Feb 04, 2001 at 05:02:43PM +0100, Steve Haemelinck wrote: Where can I find some info on parsing XML with PHP? I am not looking for functions, but examples and explanations ! Thx -- 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] -- --- Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V --- -- 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] Installing Verisign PFPro Support
Brady- Regardless of your compilation problems, Verisign has not yet released their fixed SDK for BSD. They've only released it for Linux (libc5 glibc2) and Solaris. You're kind of SOL until they do. See the user comments on www.php.net/pfpro for why you're SOL. John On Sun, 4 Feb 2001, Brady J. Horenstein wrote: Hello! I'm trying to configure PHP with Verisign PayFlow PRO support on my server. I'm running FreeBSD 4, Apache 1.3.12, mod_ssl, openSSL, and mySQL 3.23.32. I downloaded the newest release of PHP (4.0.4pl2) and tried compiling it, using the ./configure --with-pfpro=[dir] thing and I get the following error: /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_mutex_unlock' /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_self' /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_mutex_destroy' /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_mutex_lock' /usr/home/arcwebn/signio/freebsd3/lib/libpfpro.so: undefined reference to `pthread_mutex_init' I've never done anything like this before, so I'm not really sure what's goin' on. Any insight into the problem would be greatly appreciated! Thanks! -brady -- Brady J. Horenstein [EMAIL PROTECTED] -- John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.intacct.com Public key available off http://www.keyserver.net Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD -- 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] Strange behavior with parser/methods?
[script at end] Does it seem strange that although object members can store functions, they can't be used as methods? That is, we can have $TestObject-mTestMember = create_function('','echo "TestMemberbr";'); but we can't do $TestObject-mTestMember(); Can I get around this using clever placement of {}'s or ()'s? Or do I have to make two separate calls, such as $temp = $TestObject-mTestMember; $temp(); At first glance, it seems like a parser problem. But I couldn't get it to go away by placing ()'s and {}'s... Perhaps I wasn't being clever enough. Can anyone help? It seems odd that accessing members as methods wouldn't be allowed, but variable functions (http://www.php.net/manual/en/functions.variable-functions.php PHP Manual, Chap 12) would be. On the other hand, it's not safe to willy-nilly be introducing methods to a class. But then again, I can still do $TestObject-mPreviouslyUndeclaredMember = 'Huh?'; so, I don't buy this line of reasoning. Bug or language feature or other? Thanks, TSB Here's a script which illustrates this problem... ?php class TestClass { function TestMethod() { echo "TestMethodbr"; } function Init() { $this-mTestMember = create_function('','echo "TestMemberbr";'); } var $mTestMember; } $Tc = new TestClass; //case 1: works (standard method invocation) $Tc-TestMethod(); $Tc-Init(); //case 2: doesn't work (member as method) //$Tc-mTestMember(); //doesn't work //case 3: works (two-step) $holder = $Tc-mTestMember; $holder(); ? -- 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 hosting - the final frontier.
I understand your concerns, but with this type of logic this mailing list not not be around. Niether would Linux, Apache, MySql or anyother open source tool that so many people utilize today. We would all be on NT instead of Linux and using IIS with ASP instead of PHP. Do think Ramsus when he started out on PHP/FI was thinking I am only one person I shouldn't even try to make it because the big guys are more reliable. Or Linus thought the same thing when he made his first kernel. I really doubt it, and neither did I when I decided to take a chance learn PHP/FI on Linux using Apache about 5 years ago. Look at where they are today and the bazillion people who rely on the tools that one or two people took the time and a chance on developing. Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 - Original Message - From: "Boaz Yahav" [EMAIL PROTECTED] To: "'Robert Covell'" [EMAIL PROTECTED]; "Boaz Yahav" [EMAIL PROTECTED]; "Ben Peter" [EMAIL PROTECTED]; "Chris Mason" [EMAIL PROTECTED] Cc: "Php-General" [EMAIL PROTECTED] Sent: Sunday, February 04, 2001 3:29 PM Subject: RE: [PHP] PHP hosting - the final frontier. No need to get upset :) just stating MHO (nothing personal). In your own words you say : "People have taken a chance with me" and that's really what they did. Cause you know what happens to backup plans that don't have backup plans that don't... I'm assuming that there may be an audience for this kind of hosting but personally I wouldn't host my site under such circumstances. Prices are so cheep today and you can get so much for so less with many ISP's that have a department of people running the show. As for the Service, well, if you chose a company and don't like the service you can always go somewhere else. Most companies that I worked with gave amazing service. Today I work with PhenomiNET and the service is simply amazing. you can look at what they offer here : http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm This is your one stop shop for hosting. WeberDev.com is hosted there and I can tell you that their service is amazing. They are fast, reliable and more than anything, very professional (specially in PHP / MySQL). Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Robert Covell [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 03, 2001 10:40 PM To: Boaz Yahav; Ben Peter; Chris Mason Cc: Php-General Subject: RE: [PHP] PHP hosting - the final frontier. I shouldn't even reply to this... Yes I would host with me. Have you ever heard of a backup plan. People that would step in if something happens to me? People that I trust to keep the company going if it fails. With all due respect, how do people host with a company that doesn't give a rats ass about them or their business. How many big companies redirect your call, or brush you away when problems occur. I been over backwards for my clients. Providing better service then many of the bigger companies out there. That is why people do and will continue to host with me. Like I said, I plan on hiring people in the near future. Things take time to evolve. I am not saying that my company is for everyone. If you don't like a one man shop then don't go there. People have taken a chance with me and have not been disappointed like so many times before. Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 03, 2001 1:38 PM To: 'Robert Covell'; Ben Peter; Chris Mason Cc: Php-General Subject: RE: [PHP] PHP hosting - the final frontier. And if, God forbid, something was to happen to you... 120 People / Companies would be left with a server that no one knows the root password too? With all due respect, how can someone in his right mind host with a one man gang company? For all I know you can be a hosting genius and give the best service around but you are still one man. Would you host with you ? :) Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Robert Covell [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 03, 2001 9:16 PM To: Ben Peter; Chris Mason Cc: Php-General Subject: RE: [PHP] PHP hosting - the final frontier. I am going to have to disagree on this one. I run a successful (and profitable) hosting company(http://www.rolet.com). My employees total 1 (me, myself and I). The number of clients hosted is roughly 120. I provide a wide variety of services on Linux, FreeBSD, NT, and W2K. Yes it is hard to believe that 1 person can
Re: [PHP] 2 questions
I use a RaQ3 and have no problems running PHP and MySQL. I started out using one IP but the biggest problem I found was that in order to view the site or make changes to it, the domain name must resolve to the server before it would work. I decided it would be best for me to assign each site an IP and go with it. I am not sure who you are talking to about a dedicated RaQ but look into http://www.4webspace.com. I have a RaQ3 with 100 gig transfer and 30 IP's for $110 a month. They do have RaQ4's for a little more money. David Smith - Original Message - From: Adrian Teasdale [EMAIL PROTECTED] To: PHP List Post [EMAIL PROTECTED] Sent: Sunday, February 04, 2001 12:47 PM Subject: [PHP] 2 questions Hi I have a couple of questions. One about hosting and the other about IP addresses. The first on the IP's. I have been speaking to a company that I am looking at getting a dedicated server from. They ONLY do one IP address per server and use name-based hosting. I have asked for dedicated IP's, but their answer has been that all hosting companies are going to have to go to name-based hosting now. What is everyone's feeling on this? Years ago, the company I was with used name-based and I remember that the search engines did not like this On to hosting, the above server is a Cobalt Raq 4i. Does anyone else on the list use one of these and what do you think? I want to make sure that it's easy enough to compile latest php and mysql whenever I want to Thanks for any advice Ade -- 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 hosting - the final frontier.
On Sunday 04 February 2001 23:18, Robert Covell wrote: I understand your concerns, but with this type of logic this mailing list not not be around. Niether would Linux, Apache, MySql or anyother open source tool that so many people utilize today. We would all be on NT instead of Linux and using IIS with ASP instead of PHP. Do think Ramsus when he started out on PHP/FI was thinking I am only one person I shouldn't even try to make it because the big guys are more reliable. That's comparing apples to oranges. If all of Rasmus's computers fail while he's on holiday for 3 weeks, who cares? (Sorry Rasmus :) If some machine at a hosting company shows glitches while the only admin is sick, things will be very bad for the hosted people/companies. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka", but "That's funny..." - Isaac Asimov -- 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] db paging with MS Sql
I'm pretty sure there's no other way to do it but to read them all in and only display what you need. AFAIK, MSSQL doesn't support paging itself, but relies on the ADO driver to do this. If you make an reference to an ADO object in VBScript, you can set how many rows are in a 'page', then tell it to jump to a specific page, to jump to that group of rows. My terminology is probably wrong above, haven't used ADO/VBScript stuff in awhile. But that's the gist. Scott Parks wrote: Has anyone seen a good lession or code example on paging records from MS Sql 7? Say I have 300 records and want to break them down to 10 per page using [previous | next ] and a list of page numbers at the bottom. tia -- 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] db forms creator?
Hi, can anyone point me towards an easy way to generate forms to update a mysql database? I've seen some sites where I can specify a list of table fields and the datatype for each, and get an output of: 1. the sql to create the table 2. a php form that can be used to update the table problem is I can't find the site now :) has anyone else found this? Regards, jaxon -- 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] Learning MySQL
On Sun, Feb 04, 2001 at 05:06:02PM -0600, Jeff Oien wrote: What would your advice be for learning MySQL with PHP on an Apache server? I know a little Perl and am beginning to learn PHP. I'm more of a designer than a programmer (not enough geek genes). I went through the tutorial at WebMonkey and have it all installed and working, but the tutorial isn't able to go in depth about the basic functions of MySQL. Is this something better learned from a book? Suggestions for books and/or tutorials online would be appreciated. Read the book from Paul DuBois about MySQL. You can find this book at the end of http://php.net/books.php -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ http://www.php-buch.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] upload
Hello, How can i upload a file from a client to server ? I tryed copy() but it doesint works. Paul
Re: [PHP] Is this a missing feature?
But the feature is useless :) Here, I removed the reference, so we can stop fussing over it (it wasn't the question to begin with), and here's an example of a potential use for this (a stupid example, but still...). I'm not weighing out the benefits of references, I'm striving to achieve the cleanest and most elegant code I can, because the larger the project, the more code you have to read, and the uglier it can get. That's where a language like Ruby excels. There's less syntactical crap, it's very easy to read, and it's caused me to consider switching to eRuby (like mod_perl, allows % ruby this, ruby that % in your html) because it is structurally easier and more geared towards larger projects. (that last statement will probably get me murdered on a PHP list) But honestly, the only problem is finding a host running eRuby that I don't have to maintain myself. I'm lazy, after all. later, lux ?php function a ($hash, $text = "") { $attr_text = ""; while (list ($k, $v) = each ($hash)) { $attr_text .= " $k=\"$v\""; } return "a$attr_text$text/a"; } function img ($hash) { $attr_text = ""; while (list ($k, $v) = each ($hash)) { $attr_text .= " $k=\"$v\""; } return "img$attr_text /"; } // works this way $attrs = array ( "href" = "http://www.google.com/", "target" = "_blank" ); echo a ($attrs, "Visit Google!"); echo "\n\n"; // also this way (thanx teodor!) echo a ($attrs = array ( "href" = "http://www.google.com/", "target" = "_blank" ), "Visit Google!"); // ideally, i'd like to say this though... // echo a (["href" = "http://www.google.com/", "target" = "_blank"], "Visit Google!"); // what also doesn't work // echo a (array("href" = "http://www.google.com/", "target" = "_blank"), "Visit Google!"); echo "\n\n"; // another example echo a ($attrs = array ("href" = "http://www.google.com/"), img ($attrs = array ( "src" = "http://www.google.com/images/title_homepage4.gif", "alt" = "Visit Google!", "border" = "0") ) ); /* now ideally, this could be written much more cleanly, perhaps... echo a(['href' = [http://www.google.com/'], img(['src' = 'http://www.google.com/images/title_homepage4.gif', 'alt' = 'Visit Google!', 'border' = '0']) ); */ ? -- John Luxford Simian Systems w: www.simian.ca e: [EMAIL PROTECTED] p: 204.946.5955 -- -- 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] I should apologize
I don't mean to bash php in any way (as in the Ruby plugs in my last post). I use it because it has so many advantages over other more system-oriented not web-oriented languages for this type of work. It's fantastic. I see so much enthusiasm on the web for this language, a significant codebase, feature list (I'm not sure, but does ASP generate SWF files, PDF files, support IMAP, etc), and it has a lot of great developers dedicated to it. But we need to be constantly self-critical, or we won't see areas we can improve in. I also feel it's good to know more than one language, so you get more than one approach and you're more adaptable to situations that PHP (or whatever your language of choice may be) can't work in. (And I'm far too opinionated for my own good) later Lux -- John Luxford Simian Systems w: www.simian.ca e: [EMAIL PROTECTED] p: 204.946.5955 -- -- 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 a missing feature?
What's this ruby? Care to send the list a URL so we can go have a look for ourselves? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Lux" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 10:51 AM Subject: Re: [PHP] Is this a missing feature? But the feature is useless :) Here, I removed the reference, so we can stop fussing over it (it wasn't the question to begin with), and here's an example of a potential use for this (a stupid example, but still...). I'm not weighing out the benefits of references, I'm striving to achieve the cleanest and most elegant code I can, because the larger the project, the more code you have to read, and the uglier it can get. That's where a language like Ruby excels. There's less syntactical crap, it's very easy to read, and it's caused me to consider switching to eRuby (like mod_perl, allows % ruby this, ruby that % in your html) because it is structurally easier and more geared towards larger projects. (that last statement will probably get me murdered on a PHP list) But honestly, the only problem is finding a host running eRuby that I don't have to maintain myself. I'm lazy, after all. later, lux ?php function a ($hash, $text = "") { $attr_text = ""; while (list ($k, $v) = each ($hash)) { $attr_text .= " $k=\"$v\""; } return "a$attr_text$text/a"; } function img ($hash) { $attr_text = ""; while (list ($k, $v) = each ($hash)) { $attr_text .= " $k=\"$v\""; } return "img$attr_text /"; } // works this way $attrs = array ( "href" = "http://www.google.com/", "target" = "_blank" ); echo a ($attrs, "Visit Google!"); echo "\n\n"; // also this way (thanx teodor!) echo a ($attrs = array ( "href" = "http://www.google.com/", "target" = "_blank" ), "Visit Google!"); // ideally, i'd like to say this though... // echo a (["href" = "http://www.google.com/", "target" = "_blank"], "Visit Google!"); // what also doesn't work // echo a (array("href" = "http://www.google.com/", "target" = "_blank"), "Visit Google!"); echo "\n\n"; // another example echo a ($attrs = array ("href" = "http://www.google.com/"), img ($attrs = array ( "src" = "http://www.google.com/images/title_homepage4.gif", "alt" = "Visit Google!", "border" = "0") ) ); /* now ideally, this could be written much more cleanly, perhaps... echo a(['href' = [http://www.google.com/'], img(['src' = 'http://www.google.com/images/title_homepage4.gif', 'alt' = 'Visit Google!', 'border' = '0']) ); */ ? -- John Luxford Simian Systems w: www.simian.ca e: [EMAIL PROTECTED] p: 204.946.5955 -- -- 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] Is this a missing feature?
sure here's the ruby page: http://www.ruby-lang.org/ here's another ruby site: http://www.rubycentral.com/ there's also a really good book you can find info about here: http://pragmaticprogrammer.com/ruby/index.html it's not really used much yet anywhere except japan, where it's actually overtaken python in popularity! later lux Josh G wrote: What's this ruby? Care to send the list a URL so we can go have a look for ourselves? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Lux" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 10:51 AM Subject: Re: [PHP] Is this a missing feature? But the feature is useless :) Here, I removed the reference, so we can stop fussing over it (it wasn't the question to begin with), and here's an example of a potential use for this (a stupid example, but still...). I'm not weighing out the benefits of references, I'm striving to achieve the cleanest and most elegant code I can, because the larger the project, the more code you have to read, and the uglier it can get. That's where a language like Ruby excels. There's less syntactical crap, it's very easy to read, and it's caused me to consider switching to eRuby (like mod_perl, allows % ruby this, ruby that % in your html) because it is structurally easier and more geared towards larger projects. (that last statement will probably get me murdered on a PHP list) But honestly, the only problem is finding a host running eRuby that I don't have to maintain myself. I'm lazy, after all. later, lux ?php function a ($hash, $text = "") { $attr_text = ""; while (list ($k, $v) = each ($hash)) { $attr_text .= " $k=\"$v\""; } return "a$attr_text$text/a"; } function img ($hash) { $attr_text = ""; while (list ($k, $v) = each ($hash)) { $attr_text .= " $k=\"$v\""; } return "img$attr_text /"; } // works this way $attrs = array ( "href" = "http://www.google.com/", "target" = "_blank" ); echo a ($attrs, "Visit Google!"); echo "\n\n"; // also this way (thanx teodor!) echo a ($attrs = array ( "href" = "http://www.google.com/", "target" = "_blank" ), "Visit Google!"); // ideally, i'd like to say this though... // echo a (["href" = "http://www.google.com/", "target" = "_blank"], "Visit Google!"); // what also doesn't work // echo a (array("href" = "http://www.google.com/", "target" = "_blank"), "Visit Google!"); echo "\n\n"; // another example echo a ($attrs = array ("href" = "http://www.google.com/"), img ($attrs = array ( "src" = "http://www.google.com/images/title_homepage4.gif", "alt" = "Visit Google!", "border" = "0") ) ); /* now ideally, this could be written much more cleanly, perhaps... echo a(['href' = [http://www.google.com/'], img(['src' = 'http://www.google.com/images/title_homepage4.gif', 'alt' = 'Visit Google!', 'border' = '0']) ); */ ? -- John Luxford Simian Systems w: www.simian.ca e: [EMAIL PROTECTED] p: 204.946.5955 -- -- 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] -- John Luxford Simian Systems w: www.simian.ca e: [EMAIL PROTECTED] p: 204.946.5955 -- -- 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 should apologize
Lux wrote: I don't mean to bash php in any way (as in the Ruby plugs in my last post). I use it because it has so many advantages over other more system-oriented not web-oriented languages for this type of work. It's fantastic. Yes it is. :) I see so much enthusiasm on the web for this language, a significant codebase, feature list (I'm not sure, but does ASP generate SWF files, PDF files, support IMAP, etc), and it has a lot of great developers dedicated to it. To be fair, PHP doesn't either. You have to get the packages, compile them, and dl() or compile them into your PHP. Most, if not all, of the capabilities of PHP can be had in ASP, through third party objects. Major problem is cost for most people. But we need to be constantly self-critical, or we won't see areas we can improve in. I also feel it's good to know more than one language, so you get more than one approach and you're more adaptable to situations that PHP (or whatever your language of choice may be) can't work in. WRT web programming, there's probably very little that PHP *can't* do, but your point is still well taken. (And I'm far too opinionated for my own good) No problem. :) Speaking of "other languages" - anyone have any input or comments on REBOL? -- 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 hosting - the final frontier.
I agree, point taken... Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 - Original Message - From: "Christian Reiniger" [EMAIL PROTECTED] To: "Php-General" [EMAIL PROTECTED] Sent: Sunday, February 04, 2001 4:37 PM Subject: Re: [PHP] PHP hosting - the final frontier. On Sunday 04 February 2001 23:18, Robert Covell wrote: I understand your concerns, but with this type of logic this mailing list not not be around. Niether would Linux, Apache, MySql or anyother open source tool that so many people utilize today. We would all be on NT instead of Linux and using IIS with ASP instead of PHP. Do think Ramsus when he started out on PHP/FI was thinking I am only one person I shouldn't even try to make it because the big guys are more reliable. That's comparing apples to oranges. If all of Rasmus's computers fail while he's on holiday for 3 weeks, who cares? (Sorry Rasmus :) If some machine at a hosting company shows glitches while the only admin is sick, things will be very bad for the hosted people/companies. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka", but "That's funny..." - Isaac Asimov -- 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] Learning MySQL
I agree. It's a great reference learning guide, but you _have_ to be patient and not skip around too much with it or it'll be quite intimidating. --Toby [EMAIL PROTECTED] wrote: On Sun, Feb 04, 2001 at 05:06:02PM -0600, Jeff Oien wrote: What would your advice be for learning MySQL with PHP on an Apache server? I know a little Perl and am beginning to learn PHP. I'm more of a designer than a programmer (not enough geek genes). I went through the tutorial at WebMonkey and have it all installed and working, but the tutorial isn't able to go in depth about the basic functions of MySQL. Is this something better learned from a book? Suggestions for books and/or tutorials online would be appreciated. Read the book from Paul DuBois about MySQL. You can find this book at the end of http://php.net/books.php -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ http://www.php-buch.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 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] db paging with MS Sql
Hello Michael, On 04-Feb-01 21:23:26, you wrote: AFAICT there is no 'LIMIT' feature in MS SQL products (TOP and supposedly BOTTOM, but BOTTOM has never worked for me and TOP doesn't seem to work on all versions). How is metabase handling this? Pulling everything, looping thru, and only returning the requested rows? No, Metabase use server side cursors. It just seeks for the first row that it is requested and starts fetching rows from there. It works on MS SQL 6.5 on which the TOP clause is not available. Yes, I could log in/download/uncompile and spend the next 20 minutes finding it for myself, but I'm in the midst of work! ;) And getting and explanation from the horse's mouth might be more instructive anyway. !!! :-) Ok, now that you got your explanation you may download Metabase to look in for the details. http://phpclasses.UpperDesign.com/browse.html/package/20 Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- 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] db paging with MS Sql
I was just meaning plain SQL - can't microsoft say ANSI? All I ask for is a simple little standard and for people to follow it - I'm not asking for every feature of the standard - just a following. --Joe On Sun, Feb 04, 2001 at 10:43:37PM -0300, Manuel Lemos wrote: Hello Joe, On 04-Feb-01 21:18:55, you wrote: AFAIK this is more of a SQL thing than a DB specific thing. Just look up the LIMIT equivilent in MS SQL (should just be LIMIT) and use that for paging, once you get the hang of it it's quite easy. You can look through my paging class at www.miester.org/software - it goes one deeper and does [ prev ] [1] [2] [3] [ next ] and then only shows X ammount of pages so when you get to page 10 it would show [9] [10] [11] I suppose you mean MySQL and not MS (MicroSoft) SQL . They are not compatible. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- --- Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V --- -- 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] Help with XSLT!
Ok, well from the looks of it I've got it working, thanks to whoever pointed out the conf.php.net archive of the slideshow. The sample files from that slide work fine, but I can't get any of the other samples I've snagged to work. Maybe they're what's broken, but I don't see how. Now that that's over with, can anybody point me towards a good tutorial on XSLT with PHP? - Theo Rasmus Lerdorf wrote: Go to conf.php.net and read through the Linuxcare LWE Booth talk presentation. There is an XSLT slide in there. -Rasmus On Sat, 3 Feb 2001, Theo Brinkman wrote: I'm trying to learn XSLT and thought that PHP 4.0.4 with the Sablotron extension would be ideal for this, but I quite simply cannot get any samples I find to work. I'm trying to use the class.XSLTransform.php file mentioned in the annotated PHP manual, but I get a fatal error on line 113 (don't have the exact text,but it doesn't say anything more useful). I've compiled PHP --with-sablot --enable-sablot-errors-descriptive --with-pgsql, and tried two sets of sample files which are said to work. One from phpbuilder, the other from another php site, that I don't remember the name of off hand. (The second set of files has to do with recipes, in case anyone out there might know where I found that set of files.) I'm running PHP 4.0.4 on Apache 1.3.14 on Linux Mandrake 7.1. I've also tried both 4.0.4 and 4.0.4pl1 on Apache 1.3.14 on NT 4 with identical results. Is there a problem with the sablotron extension that isn't mentioned anywhere I can find, or am I doing something wrong? Some simple samples that any of you have gotten working would be greatly appreciated. - Theo -- 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] db paging with MS Sql
Joe, Does SQL92 count? Best regards, Andrew --- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com On 2/4/01 8:09 PM, "Joe Stump" [EMAIL PROTECTED] wrote: I was just meaning plain SQL - can't microsoft say ANSI? All I ask for is a simple little standard and for people to follow it - I'm not asking for every feature of the standard - just a following. --Joe On Sun, Feb 04, 2001 at 10:43:37PM -0300, Manuel Lemos wrote: Hello Joe, On 04-Feb-01 21:18:55, you wrote: AFAIK this is more of a SQL thing than a DB specific thing. Just look up the LIMIT equivilent in MS SQL (should just be LIMIT) and use that for paging, once you get the hang of it it's quite easy. You can look through my paging class at www.miester.org/software - it goes one deeper and does [ prev ] [1] [2] [3] [ next ] and then only shows X ammount of pages so when you get to page 10 it would show [9] [10] [11] I suppose you mean MySQL and not MS (MicroSoft) SQL . They are not compatible. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- 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] db paging with MS Sql
Hello Joe, On 04-Feb-01 22:01:37, you wrote: I was just meaning plain SQL - can't microsoft say ANSI? All I ask for is a I don't think there is a standard way of achieving what the LIMIT clause can that works for all or at least most databases. simple little standard and for people to follow it - I'm not asking for every feature of the standard - just a following. Well, if you use Metabase you can tell the range of rows that you want to retrieve just by calling MetabaseSetSelectedRowRange($database_handle,$first,$limit) before executing your query. AFAIK, Metabase is the only abstraction layer, not just for PHP but for any other language, that I know that provide this facility portably that is very important for Web application development. Enjoy and be proud of using it. Manuel Lemos --Joe On Sun, Feb 04, 2001 at 10:43:37PM -0300, Manuel Lemos wrote: Hello Joe, On 04-Feb-01 21:18:55, you wrote: AFAIK this is more of a SQL thing than a DB specific thing. Just look up the LIMIT equivilent in MS SQL (should just be LIMIT) and use that for paging, once you get the hang of it it's quite easy. You can look through my paging class at www.miester.org/software - it goes one deeper and does [ prev ] [1] [2] [3] [ next ] and then only shows X ammount of pages so when you get to page 10 it would show [9] [10] [11] I suppose you mean MySQL and not MS (MicroSoft) SQL . They are not compatible. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- - -- Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V - -- -- 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] Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- 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] Email Selected Data
On Mon, 5 Feb 2001 07:01, [EMAIL PROTECTED] wrote: Hi, I am selecting data using the below and trying to insert it into a mail, it does everything except send the data selected, anyone have an idea? $SQLStatement = "SELECT * FROM Orders Where Status='N' Order by OrderID"; $SQLConn = mysql_connect($host, $user, $pass); $db = mysql_select_db($dbase, $SQLConn); $SQLResult = mysql_query($SQLStatement); $num_rows=mysql_num_rows($SQLResult); for ($i=0; $i$num_rows; $i++) { mysql_data_seek($SQLResult, $i); $array=mysql_fetch_array($SQLResult); $content=printf("First Name: %s\nLast Name: %s\n",$array['FirstName'], $array['LastName']); } mail($MAIL, "Order", $content , "From:[EMAIL PROTECTED]"); I know it is working to a degree because it prints out the data on the resulting page and sends a blank email, it just doesn`t put it in the email. TIA Ade I think your logic is wrong here, if you are trying to send one email with all the results from the DB query in it. Each time you run through the for loop, you are assigning a new value to $contents, rather than appending new information to it. I think you need $content .= printf(blah blah); or without the printf complexity $content .= "First Name: " . $array["FirstName"] . "\nLast Name: " . $array["LastName"] . "\n"; You'ld need to ensure $content is empty before starting the for loop, of course. -- 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] Apache and PHP
I must be missing something while I had no problem getting perl and SSI working getting PHP to work is eluding me for some reason. I have added this to httpd.conf can someone enlighten me on what may be missing # And for PHP 4.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps if I call it like http://127.0.0.1/cgi-bin/one.php with the shebang line #!php.exe I get the following error No input file specified if I call it without the shebang I get the Internal Server Error Error logs indicate the the #! is needed if I call it in the web root as http://127.0.0.1/one.php4 it prints the code to the screen any insight welcome Thanks going to RRTFM :) -- 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] Apache and PHP
Do you normally have #!perl.exe as your shebang? Normally I'd see something like #!/usr/local/bin/perl or #!/usr/local/bin/php not sure of pathing issues on Windows for that. #!c:\program files\php4\php.exe ? "Patrick L. Olson" wrote: I must be missing something while I had no problem getting perl and SSI working getting PHP to work is eluding me for some reason. I have added this to httpd.conf can someone enlighten me on what may be missing # And for PHP 4.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps if I call it like http://127.0.0.1/cgi-bin/one.php with the shebang line #!php.exe I get the following error No input file specified if I call it without the shebang I get the Internal Server Error Error logs indicate the the #! is needed if I call it in the web root as http://127.0.0.1/one.php4 it prints the code to the screen any insight welcome Thanks going to RRTFM :) -- 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] Apache and PHP
I'm not even sure that the shell escape is even used in win32 perl - I think it's done via a regular file association. I clearly remember setting it to #!/some/fake/rubbish one time as a test and it still worked fine I imagine the same would go for php.exe jason Do you normally have #!perl.exe as your shebang? Normally I'd see something like #!/usr/local/bin/perl or #!/usr/local/bin/php not sure of pathing issues on Windows for that. #!c:\program files\php4\php.exe ? "Patrick L. Olson" wrote: I must be missing something while I had no problem getting perl and SSI working getting PHP to work is eluding me for some reason. I have added this to httpd.conf can someone enlighten me on what may be missing # And for PHP 4.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps if I call it like http://127.0.0.1/cgi-bin/one.php with the shebang line #!php.exe I get the following error No input file specified if I call it without the shebang I get the Internal Server Error Error logs indicate the the #! is needed if I call it in the web root as http://127.0.0.1/one.php4 it prints the code to the screen any insight welcome Thanks going to RRTFM :) -- 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] Re: [PHP-DB] .htpasswd?
James Smith wrote: Is there a way that when a user signs up for a user/pass on a site, to automatically update the .htpasswd on the site? Right now I'm running a Win2k Pro, with Apache installed and MySQL/PHP. Thanks, James The quite simpliest method is to put appropriate directives in a .htaccess file in appropriate (e.g. to be protected) directories like this: AuthName "Restricted Area" AuthUserFile /www/users/users AuthGroupFile /www/users/groups AuthType Basic Require registeredusers Then all you have to do is to regenerate the user and the group file according to your needs. Another way to do this directly with MySQL is to use the apache auth_mysql module which allows you to store authentication data in a MySQL DB. See http://mysql.com/downloads/contrib.html and http://httpd.apache.org/docs/misc/FAQ-G.html for more info. HTH Victor -- 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 should apologize
I don't mean to bash php in any way (as in the Ruby plugs in my last post). I use it because it has so many advantages over other more system-oriented not web-oriented languages for this type of work. It's fantastic. I don't think anyone will take offense to your mentioning the advantages of another language (especially another open source language). PHP definately has it's worts and there's no point in sticking our heads in the sand and pretending they are not there. I see so much enthusiasm on the web for this language, a significant codebase, feature list (I'm not sure, but does ASP generate SWF files, PDF files, support IMAP, etc), and it has a lot of great developers dedicated to it. But we need to be constantly self-critical, or we won't see areas we can improve in. Exactly. If the volume of this list is any indicator, I'd say PHP has grown quite a bit in the past six months. I also feel it's good to know more than one language, so you get more than one approach and you're more adaptable to situations that PHP (or whatever your language of choice may be) can't work in. Definately. Knowing Java or C will change the way your write code in Perl or PHP (and vice versa). I've written code in everything from ASM to toy scripting languages (by "toy scripting languages", I mean the small embedded scripting languages found in some applications - not PHP) and I'm a better programmer because of it. (Ruby does look very cool...I need to pick up the "Pragmatic Programmers Guide to Ruby" - the guys that wrote it also wrote "The Pragmatic Programmer" which is a great book.) Regards, Sean -- 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 5 Feb 2001 03:36:42 -0000 Issue 493
php-general Digest 5 Feb 2001 03:36:42 - Issue 493 Topics (messages 38109 through 38183): Newbie:Cannot send session cookie... 38109 by: james 38121 by: Teodor Cimpoesu Re: HTTP compression 38110 by: Sean Cazzell 38116 by: Alain Fontaine 38120 by: Teodor Cimpoesu 38122 by: Alain Fontaine 38124 by: Carsten Gehling 38129 by: Teodor Cimpoesu 38135 by: Sander Pilon 38137 by: Sander Pilon Re: % operator 38111 by: Steve Werby Re: Arrays from forms 38112 by: Steve Werby Problem with Zend Encoder testdrive - Win2k 38113 by: Carsten Gehling PHP Authenticate 38114 by: FredrikAT Re: PHP and Oracle resources 38115 by: Jon Jacob db paging with MS Sql 38117 by: Scott Parks 38123 by: Alain Fontaine 38152 by: Michael Kimsal 38161 by: Manuel Lemos 38163 by: Joe Stump 38164 by: Michael Kimsal 38170 by: Manuel Lemos 38171 by: Manuel Lemos 38172 by: Joe Stump 38174 by: Andrew Hill 38175 by: Manuel Lemos 2 questions 38118 by: Adrian Teasdale 38119 by: andreas \(.work\) 38126 by: Steve Werby 38150 by: WreckRman2 Re: Is this a missing feature? 38125 by: Lux 38130 by: Teodor Cimpoesu 38134 by: Steve Edberg 38136 by: Lux 38138 by: Teodor Cimpoesu 38145 by: Christian Reiniger 38157 by: Lux 38159 by: Josh G 38160 by: Lux 38162 by: Christian Reiniger 38165 by: Lux Re: Session With Cookies 38127 by: phpLover Re: Replacing A Word in HTML page 38128 by: phpLover 38132 by: Steve Werby 38146 by: Christian Reiniger Connectivity to AS/400 38131 by: Pete Lancashire Re: [PHP-DB] Connectivity to AS/400 38133 by: szii.sziisoft.com XML Parsing with PHP 38139 by: Steve Haemelinck 38142 by: Joe Stump Email Selected Data 38140 by: Website4S.aol.com 38147 by: Christian Reiniger 38177 by: David Robley 38181 by: Andrew Hill Installing Verisign PFPro Support 38141 by: Brady J. Horenstein 38143 by: John Donagher Re: PHP hosting - the final frontier. 38144 by: Boaz Yahav 38149 by: Robert Covell 38151 by: Christian Reiniger 38168 by: Robert Covell Strange behavior with parser/methods? 38148 by: T.S.Bhatnagar Learning MySQL 38153 by: Jeff Oien 38155 by: eschmid+sic.s.netic.de 38169 by: Toby Butzon db forms creator? 38154 by: Jaxon upload 38156 by: DragoslaV \( Paul \) I should apologize 38158 by: Lux 38167 by: Michael Kimsal 38183 by: Sean Cazzell Re: reload help!!! 38166 by: Wen Ni Leong Re: Help with XSLT! 38173 by: Theo Brinkman Re: [PHP-DB] .htpasswd? 38176 by: Victor Foitzik Apache and PHP 38178 by: Patrick L. Olson 38179 by: Michael Kimsal 38180 by: Jason Brooke 38182 by: Sean Cazzell 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] -- 1. Cannot send session cookie - headers already sent by (output started at c:/program files/apache group/apache/htdocs/index.php4:10) in c:/program files/apache group/apache/htdocs/index.php4 on line 11 What does it mean? Any hints? 2. Another problem: My htm page has two frames (left and right). I activate php4 script from button on left frame. Question: How can I print the result of query on the right frame? Thanks in advance Jacek Wojcik james wrote: 1. Cannot send session cookie - headers already sent by (output started at c:/program files/apache group/apache/htdocs/index.php4:10) in c:/program files/apache group/apache/htdocs/index.php4 on line 11 What does it mean? Any hints? the error message is quite explicit. By the time it reaches the line 11 in index.php4 you already sent something to output, so if you have on index.php4:11 something like header(), setCookie() or session_start() which imply sending a header, is no longer possible [ you cannot send a header after you already started sending the body ]. 2. Another problem: My htm page has two frames (left and right). I activate php4 script from button on left frame. Question: How can I print the result of query on the right frame? frame name="that_one_with_the_button" action="show.php" target="left_frame_name" ... -- teodor Alain, When PHP parses a file, it treats the stuff that's not in ?php? blocks as though each line were a print or echo statement. So your whole file will be compressed and sent to the browser. Regards, Sean On Sun, 4 Feb 2001, Alain Fontaine
Re: [PHP] Learning MySQL
You need to go get yourself a copy of the MySQL book from New Riders. Stay away from the O'Reilly one, it sucks. Regards, Sean -- 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] Learning MySQL
I'd second Sean's endorsement of the New Riders book. I generally am a fan of Oreilly books, but I can't figure out *what* was going on there with the Mysql book. It's actually mysql and msql covered in one book, with less docs than you can get online, from what I saw, and seemingly very little in the way of actual usage/administration/case studies. Sean Cazzell wrote: You need to go get yourself a copy of the MySQL book from New Riders. Stay away from the O'Reilly one, it sucks. Regards, Sean -- -- 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] Re:Apache and PHP
"Patrick L. Olson" [EMAIL PROTECTED] wrote: if I call it like http://127.0.0.1/cgi-bin/one.php with the shebang line #!php.exe I get the following error No input file specified if I call it without the shebang I get the Internal Server Error Error logs indicate the the #! is needed if I call it in the web root as http://127.0.0.1/one.php4 it prints the code to the screen any insight welcome Well, I know nothing about Windows, or SSI, but if I were trying to run a php script from Apache_as_localhost I'd do: http://localhost/php_script_thingy.php Unless you're doing something a bit wierd and wonderful the script must be in your htdocs (or whatever else you've called doc root) and should be called (according to what you've told Apache) by .php. Initially I ran into a lot of problems (self-created) by putting php stuff into the cgi bin and, after upgrading to php4, by trying to call stuff as php4 (as I used to call stuff by php3). Hope this helps. -- ** Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft." ** -- 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] Pricing for PHP programming???
sounds like you cannot afford NOT to have a second wife! DANG! Some folk have all the luck :! On Sat, Feb 03, 2001 at 09:25:35AM +0530, [EMAIL PROTECTED] wrote: tOn Fri, 2 Feb 2001, johnny p. wrote: Hah! My wife has a formal education in graphics design. My web sites would look like crap without her extensive layout skills. :) I'm so lucky... Ah! kindered spirit My wife has a formal education in Mass Communication and Public Relations I wouldn't be in bussiness if she was not able make presentations to drum up clients ! BUT we still lack a graphic designer - don't think I can afford a second wife ;-) Cheers Tarique -- = B2B Application Providers http://www.sanisoft.com Vortal for Nagpur http://nagpurcity.net = -- 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] RE: [PHP-DB] [PHP] .htpasswd?
Hi, you might want to take a look at this one: http://www.thewebmasters.net/php/Htpasswd.phtml Works in both php3 and php4. Give you functions for adding/deleting/listing/renaming users + much more, in standard .htpaccess password files. I use it myself on several sites, it works great. - t.a.madland - --- original message -- From: Cody Caughlan [mailto:[EMAIL PROTECTED]] Sent: 5. februar 2001 04:53 To: Victor Foitzik; php-db Subject: Re: [PHP-DB] .htpasswd? You could also run something like: system("htpasswd -b passwordilf $user $password"),,,basically get the shell to run a the htpasswd program supplied by apache. you might have to play around with the permissions to do this, so the webserver can execute the htpasswd binary. /cody caughlan Victor Foitzik wrote: James Smith wrote: Is there a way that when a user signs up for a user/pass on a site, to automatically update the .htpasswd on the site? Right now I'm running a Win2k Pro, with Apache installed and MySQL/PHP. Thanks, James The quite simpliest method is to put appropriate directives in a .htaccess file in appropriate (e.g. to be protected) directories like this: AuthName "Restricted Area" AuthUserFile /www/users/users AuthGroupFile /www/users/groups AuthType Basic Require registeredusers Then all you have to do is to regenerate the user and the group file according to your needs. Another way to do this directly with MySQL is to use the apache auth_mysql module which allows you to store authentication data in a MySQL DB. See http://mysql.com/downloads/contrib.html and http://httpd.apache.org/docs/misc/FAQ-G.html for more info. HTH Victor -- PHP Database 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 Database 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] attempt to use an empty IV with mcrypt
I get the following warning when I turn on logging... Warning: attempt to use an empty IV, which is NOT recommend in /home/local/apache/htdocs/encrypt.php on line 21 Here is the code $key = "testing"; $input = "Secret data"; $encrypted_data = mcrypt_ecb (MCRYPT_DES, $key, $input, MCRYPT_ENCRYPT); print "The CypherText in DES ECB is BR".bin2hex ($encrypted_data)."\nbr"; $encrypted_data = mcrypt_ecb (MCRYPT_TWOFISH, $key, $input, MCRYPT_ENCRYPT); print "The CypherText in TWOFISH ECB is BR".bin2hex ($encrypted_data)."\nbr"; $encrypted_data = mcrypt_cbc (MCRYPT_TWOFISH, $key, $input, MCRYPT_ENCRYPT); print "The CypherText in TWOFISH CBC is BR".bin2hex ($encrypted_data)."\nbr"; ? How do I prevent this error? Regards Terrence -- 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] mail
Greetings! I made one script with mail "email address". It works in my home computer (Linux and php 4) and not working in my web server (Linux and php 4). What can be the reason? Looking forward to hearing from you. DT -- 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] please help (network admin via web)
Dear sir, I am a 20 year old student doing a research project and I would like to have network administration via web. That is I want to change IP address os the system via web, want to do dns settings and also would like to do proxy setting via web using PHP scripts. I am working on RedHat 6.2 using apache as my web server. Please guide me what to do for that? please help me because this is important module in porjetc and without this my project is not marked as complete project. Please help me. waiting for your reply, Niraj _ 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]
Re: [PHP] manage number of rows displayed
No sure if i get it, very inexperience user here I am. Baiscally if the number of records returns is 20 records, in stead of display all 20 recodrs in one column in a page, I would like to display that as 4 columns and each columns has 5 recodrs displayed, how can I use limit statement to do that? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Milan Mlynarcik [EMAIL PROTECTED] To: Jacky@lilst [EMAIL PROTECTED] Sent: Monday, February 05, 2001 2:03 AM Subject: Re: [PHP] manage number of rows displayed You can use LIMIT statment in your query Milan Mlynarcik - Original Message - From: "Jacky@lilst" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 9:23 PM Subject: [PHP] manage number of rows displayed Hi, After I run a query, how do I set the number of rows returned to display as 3 or 4 columns in a page instead of one column as usual? 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]