[PHP] ImageTTFText Error
Hello, Did someone as experiences of crash when use ImageTTFText ? I have a Linux Mandrake 7.2 with Php 4.0.4 Thanks -- Gabriele Fain Fineware snc - Vendita computer, produzione software e Hardware EMail: mailto:[EMAIL PROTECTED] http://www.fineware.it Via Matteotti, 66 - 34071 Cormons (GO). TEL +39-0481-630810FAX: +39-0481-630132 -- 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-DB] PHP+MySQL charset problem
Good day all! Please help me with charset. I have some strange trouble. I use FreeBSD 4.2 STABLE and MySQL 3.23.28-gamma (compiled from FreeBSD ports) and PHP 4.04. Latin1 is a default charset in MySQL. So, I wanted to add cp1251 or koi8_ru. Ok, I add --default-character-set=cp1251 to my mysql start-up script. The problem is: If I connect from console to mysql and type \s (to get status information) it shows: Language: cp1251 Everything seems OK, but if I try to connect via phpMyAdmin 2.1.0 or Horde 1.2.3+Imp 2.2.3 (webmail implementation) it returns - For phpMyAdmin Warning: MySQL Connection Failed: Can't initialize character set 14 (path: default) in /usr/local/www/htdocs/adm/lib.inc.php on line 255 Error For Horde Warning: Can't initialize character set 14 (path: default) in /usr/local/lib/phplib/db_mysql.inc on line 73 I don't know where is my mistake? I tried to contact MySQL mailing list - thay said this problem has nothing to do with MySQL. I do have sql/share/charsets folder with Index and cp1251.conf. I checked Index - records are OK. Should I add something to /usr/local/lib/php.ini file? Looking forward to hear from you. Regards, Roman -- 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: PHP4 + GD 1.8.3 + PNG
Hello, I just finished upgrading my Red Hat 5.2 box from PHP3 to PHP4 with MySQL support and I also upgraded GD from 1.3 to 1.8.3 so that now I have according to ?php phpinfo(); ? support for both of them but I have the following problem. I pasted the PNG code from the manual and tried to view the corresponding PHP file with netscape but no image appeared and when I clicked on view page source netscape just crashed. I don't know if this is the problem but could it be that since I have both gd 1.3 and gd 1.8.3 installed that somehow PHP4 is finding the wrong version of GD? [nzanella@tulip nzanella]$ rpm -q gd gd-1.3-6 gd-1.8.3-4 [root@tulip public_html]# rpm -e gd-1.3-6 error: removing these packages would break dependencies: libgd.so.1 is needed by linuxconf-1.17r2-6 libgd.so.1 is needed by gnuplot-3.7.1-5 But PHP info says: PHP Version 4.0.1pl2 gd GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library PNG Supportenabled JPG Supportenabled Why am I having this problem? Is there a problem with the sample code from the manual or did I misconfigure something? I did not specify anything after the --with-gd flag since I did not know whether to specify /usr/lib or /usr/include as my gd installation directory as Red Hat (correctly) installs gd files all over the place. Thanks! Neil BTW, here is the PNG code from the manual: ?php Header("Content-type: image/png"); $string=implode($argv," "); $im = imageCreateFromPng("images/button1.png"); $orange = ImageColorAllocate($im, 220, 210, 60); $px = (imagesx($im)-7.5*strlen($string))/2; ImageString($im,3,$px,9,$string,$orange); ImagePng($im); ImageDestroy($im); ? -- 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] Creating a text file
Hi I have the following code in Delphi: procedure TFormConfirmAllocation.CreateTxt; var TxFile : TextFile; Buffer : string; x : integer; begin AssignFile(TxFile,'\SkyTrac.sky'); Rewrite(TxFile); with FormConfirmAllocation.Query1 do begin open; while not Eof do begin for x := 0 to fields.Count - 1 do begin Buffer := Fields[x].AsString; Writeln(TxFile, Buffer); end; next; end; end;//with CloseFile(TxFile); end; Now I want to create the same sort of thing in Php, could someone please help! Thanks Wade [EMAIL PROTECTED]
[PHP] session_start() and cache problem ...
Hello everybody, I have two websites that use Apache-1.3.12 + PHP-4.0.2 + Oracle8i on Linux RedHat servers. One of them doesn't use the session_start() function. If I do a telnet on port 80 and type in "HEAD / HTTP/1.0" I get the following : HTTP/1.1 200 OK Date: Wed, 17 Jan 2001 08:50:34 GMT Server: Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/4.0.2 X-Powered-By: PHP/4.0.2 Connection: close Content-Type: text/html The other website does use session_start(). A "HEAD / HTTP/1.0" gives me : HTTP/1.1 302 Found Date: Wed, 17 Jan 2001 08:55:49 GMT Server: Apache/1.3.12 (Unix) PHP/4.0.2 X-Powered-By: PHP/4.0.2 Set-Cookie: PHPSESSID=f986837823e67afe58b37bc6e45fd958; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-cache, post-check=0, pre-check=0 Pragma: no-cache Set-Cookie: gstr_cookies=Stockage%3DDISQUE; expires=Thu, 18-Jan-01 08:55:50 GMT; path=/ location: /index.php?tester=FALSE Connection: close Content-Type: text/html I have the extra lines : Expires, Cache-Control, Pragama. I would like to get rid of those 3 lines : is it possible and how could I achieve that ? I would appreciate any help. Many thanks. Best Regards. Sam
[PHP] effect of --enable-trans-sid
Dear all, I am using PHP 4.0.3-pl1 on a Red Hat 6.2 platform with the --enable-trans-sid option activated. URLs are rewritten fine (they contain the PHPSESSID value whenever necessary), however images are also re-written!, i.e. IMG SRC=/pix/dummy.gif get changed to IMG SRC=/pix/dummy.gif?PHPSESSID=hqsgqsgsqg. Could someone tell me whether this behaviour is correct and if not, if it has been corrected in 4.0.4 pl1 ? (I could not find anything relevant in the BUG DB). Thanx in advance, Olivier __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. 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]
Fw: [PHP] Images ???
-Original Message- From: Ignacio Vazquez-Abrams [EMAIL PROTECTED] To: Miguel Loureiro [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Tuesday, January 16, 2001 7:36 PM Subject: Re: [PHP] Images ??? On Tue, 16 Jan 2001, Miguel Loureiro wrote: Hello, I want to show a list of images ( but in a small size - should I use ImageCopyResized ? how ? ), existed in a directory ( they are uploaded to dir, and the name of each image is also inserted into a DataBase ), with a link to the respective image and real size. To work with images ( I think its the only way... ) I declare a Header telling that the content is an image, but the kind of image can be different (*.jpeg,*.png, *.gif, ...), so ( I think ...) should I have a different Headders ? My other problem is to show the small copied images in a page that already have other information(ex: the name of the user, for that I'm using sessions), so can I do it, is it possible ? Thanks Miguel Loureiro That's what databases are for. Store the image data and the image mimetype when the image is uploaded. -- Ignacio Vazquez-Abrams [EMAIL PROTECTED] Agree, but my real problem is to show the images in a small size, is ImageCopyResized the solution, because that command thake a part of the original message, there is another one ? Thanks your attention Miguel Loureiro -- 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] MySQL + PWS Problems
Whenever I try to connect with ANY Mysql code on my cpu, I get an error saying it can't connect. I installed usingthe 4.04 win32 installer(heresey I know) which has mysql built in. Do I have to edit anything to all me to try the scripts on my personal cpu? Chris Reading between the lines, I suspect you haven't installed mysql. The php binaries have support for mysql built in (ie the ability to talk to mysql) but not the database itself. You can get mysql from www.mysql.com Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] mail list archive
here: http://marc.theaimsgroup.com/?l=php-generalr=1w=2 have fun! Maxim Maletsky -Original Message- From: Taras Vasylkevych [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 7:08 PM To: [EMAIL PROTECTED] Subject: [PHP] mail list archive Hi, is it possible to review the archive of this mailing list. And if possible then where? Thanks, Taras Mit freundlichen Gren Taras Vasylkevych team in medias GmbH Aachen, Berlin, Kln 0241-4090909 http://www.frohe-weihnachten.de *** Unsere aktuellen Projekte mit Kurzerluterung: http://www.inmedias.de/referenz oder direkt: http://www.elsa.de http://www.nachbarland-niederlande.de http://www.datavision.de http://www.strabag.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] REGEX for tag attributes?
Howdy, I need to divide several attributes of a tag. div key1=val1 key2 = val2 key3='val3' key4 = "val4" how can I do this without too many time lost? Is it possible to do this with a regular expression? Thomas -- 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] Cookies still store old value(Help!!)
Dear Expert, I have to store user detail and password in the cookies so that i can detect if particular user is allowed to enter certain website Example is like this: User "A" is allowed to enter student page User "B" is allowed to enter lecturer page Both have to enter password with login at login page When User "A" enter ,the cookies will store User "A" name,when he enters the lecturer page,he will be directed to login page again(because he is not allowed to enter lecturer page) and so do User "B". BUT THE PROBLEM HAPPENS LIKE THIS: When User "A" enters ,and then User "B" enters,User "B" CAN ENTER THE STUDENT PAGE AND THE COOKIES STORE USER USER "A" VALUE.BUT WHEN I REFRESH IT ,THE COOKIES WILL STORE NOTHING AND REDIRECT TO LOGIN PAGE. Can i know what the problem is? Thank you very much,it is really annoying me because someone can enter other page if other has used that before Sincerely Yours Hendry Sumilo [EMAIL PROTECTED] http://members.tripodasia.com.my/hsumilo _ 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] Protecting my code
Check out the Zend site: www.zend.com They have a product that does exactly what you want (called zend encoder) Hope that helps Cheers Pankaj -- --- Pankaj Gupta Senior Undergraduate, Deptt. of Computer Science and Engineering, Indian Institute of Technology, Kanpur. http://www.waytobiz.com/pankajresume1.php3 --- "Enrico Olivelli" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have a little question.. I developed a PHP application and a I want to distribute it without distributing my source code in plain text (for commercial reasons). Can I encode (compile???) my files, letting PHP to execute them anyway ? Thanks Enrico Olivelli Diennea Telematica http://www.informatica.it http://www.mag-news.it -- 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] I love/hate FrontPage - need another HTML editor.
ROFLMAO =D - Kath - Original Message - From: "Chris Aitken" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 8:11 PM Subject: Re: [PHP] I love/hate FrontPage - need another HTML editor. At 09:06 PM 16/01/2001, Kath wrote: Hey, To get Frontpage to recognize PHP files (at least to let you edit them), do the following (I'm assuming FP2000): 1 - Open FP 2 - Click on Tools 3 - Click on Options 4 - Click on the Configure Editors tab 5 - Hit Add 6 - Make file type "php" 7 - Make editor name "FrontPage" 8 - Make command "frontpg.exe" 9 - Hit ok 10 - It should work :D There is a much easier and simpler way to handle Frontpage and PHP than this .. 1 - Open Control Panel 2 - Open Add/Remove Programs 3 - Click on Frontpage 2000 4 - Click on Uninstall 5 - Uninstall 6 - Click on Start 7 - Click on Run 8 - Type 'Notepad' 9 - Press Enter 10 - It DOES work :) A much more realistic windows solution in half the time (and about a thousandth of the HD space :) You can add in a Step 11 if needed which is to Slap yourself over the wrist 5 times for wanting to use Frontpage in the first place. Chris -- 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] Anything similar to phpmyedit?
I like phpMyAdmin - Kath - Original Message - From: "Gerry Chu" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:44 AM Subject: [PHP] Anything similar to phpmyedit? I'm looking for something exactly like phpmyedit (mysql database displayer/editor) but where I can edit more than one database row at a time. Is there anything like this? Thanks, Gerry -- 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] how do i hide my .inc files in apache??
hi.. can anyone tell me how i get apache to never send out the contents of my include files (*.inc) to users? i dont want my source sode to be visible to browsers. thanks, jamie.
Re: [PHP] Forcing renaming of download file (want output from a phpfile being saved as some particular file by browser)
On Wed, 17 Jan 2001, Pankaj Gupta wrote: Forcing a download is easy, but how can I tell the browser to name that file to something particular, say data1.txt Is there a header for that? There sure is: header("Content-disposition: filename=data1.txt"); BTW, I've been using that for a while, but I'm pretty sure I originally got it from reading the user comments on http://php.net/header. You can learn a lot from the people who post comments there. Whenever I look up syntax, I ALWAYS check them. Cheers, brad -- 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 love/hate FrontPage - need another HTML editor.
But, you know, the look and feel of a site is pretty important and an HTML editor goes a long way toward managing that part. If you can find an editor that helps you set up some style sheets that carry across all your pages without you having to type in all the code for every page, you're golden. If you can get some reports that check to be sure that you don't have any dead-ends, man, you're saving you and your users from some serious frustration. And, better yet, if you can see a bird's-eye view of your site with some easy-to-check tree charts, you can check on the logical layout of the site. Eek. You shouldn't have to "type in all the code" for each page for your styles anyway. The line link href="css/styles.css" rel="stylesheet" type="text/css" in your head../head will bring the same style rules into every document and give you the advantage of smaller pages. You can get link checkers such as Xenu which work superbly, even building you an HTML site map you can cut 'n' paste into your own site. I can't see the advantages of using an editor over hand code so far. See, all our fancy-schmancy work with databases and power-code is for naught if it's not easily accessible to the visitor and I think we all overlook that to our peril. What was that British fashion site that recently folded because they delayed launching because they wanted to "get it just right?" Then, their site was so bloated and took so long to load that people just surfed away... I think that a good HTML editor will display how long a page will load using various modem speeds and allow me to choose whether I want to spring that kind of burden on my visitors. Well, yes, in the same way Photoshop displays how long an image is supposed to take to load. But, in my experience, most HTML editors write code that is considerably more long-winded than a well-coded page should be - so the only benefit you get is an accurate picture of how much your editor has messed up your code. If you design your pages well and code them properly, you can avoid many of the long download times associated with most websites today. If you run an image-intensive site, optimising your pictures is as (more?) important than having tight code - and an HTML editor doesn't help with this. It was boo.com that went under, incidentally. So, you've used both products and you know what I mean when I say that I can apply a "theme" with FrontPage. Can you do likewise with Dreamweaver? If you set up a site that specializes in fireworks, for instance, will a button that you design once with a pretty exploding shell carry across all your pages without having to insert or "include" it on all your pages? With FrontPage, you just set up one "theme" and all the elements carry across without having to manually include them. That's the kind of drudgery I'd like to get away from so that all I have to do is open up the editor and stick some PHP in there that interacts with MySQL. Without having to insert or include it? You have two options, if you want the same stuff on several pages. 1. Have the code on each page. (ugh - if you want to change it you have to change all of them, and each page is bigger). 2. Have an include file of some sort (.css, .inc, .whatever) and link to it. I don't see (2) as being more drudgery than (1), quite the reverse in fact. Do you think I'm living in La-La Land? Not really - there's a time and a place for editors (marketing people who want to "just design a quick page for the Intranet"), but for anything serious, I'd like to quote your first sentence again. There's no question that hand-coding is the way to go. I'm with you 110% on that score! Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how do i hide my .inc files in apache??
Combine these options: http://httpd.apache.org/docs/mod/mod_access.html#allow http://httpd.apache.org/docs/mod/core.html#files to exclude access to anything matching *.inc. The safest/easiest thing is to move the files outside of the document path and add that directory to your php include path. That way you're not relying on a special apache configuration if you were to move to a new server, etc...your files could become inadvertently unprotected. - Tim http://www.phptemplates.org can anyone tell me how i get apache to never send out the contents of my include files (*.inc) to users? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] how do i hide my .inc files in apache??
don't name them .inc files. Name them blahblah.inc.php or something that will be parsed, and therefore not just gurped up by the server. blest, jeremy -- Jeremy Kelley [EMAIL PROTECTED] pgp keyid 0xAECBA355 Phil 1:21 www.ganooz.com Car pour moi, la vie c'est le Christ, et la mort est un gain. -Original Message- From: Jamie Burns [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 13:48 To: [EMAIL PROTECTED] Subject: [PHP] how do i hide my .inc files in apache?? hi.. can anyone tell me how i get apache to never send out the contents of my include files (*.inc) to users? i dont want my source sode to be visible to browsers. thanks, jamie. -- 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] From Cold Fusion back to PHP...
Hello, I'am a french CF developper and I've just started to dev in PHP. You're right! Cold fusion is much easier than PHP but I think it's just a question of "experience". It's true, cold fusion is easier but it's due (partialy) to Cold fusion studio. The Allaire Editor simplifies the work of the developer. I'am waiting for an editor like CFstudio for PHP (and also a good debuger) and I'am sure that it will be one of the most important language in the future. - Original Message - From: "W Luke" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 2:20 PM Subject: [PHP] From Cold Fusion back to PHP... Hi, I started PHP in 1999, and wrote just one Web Site based on it. I started to have a good feel for it and found it easy to implement, as well as it being powerful. Shortly after that though, I was given the opportunity to learn Cold Fusion, and haven't looked back since today. I've got a possible contrat that I'm interested in taking on, in PHP and MySql. What I would like to discuss with everyone, (it might more relevant to past or current CF programmers - I apologise if it's a litte OT), is the best way to get back into PHP from CF? When I got into CF, I found it so much easier than PHP - I loved Datasources, as they are so simple to connect to the database. Just give it a name and - bingo. I also found it so much easier, and quicker, coming up with code for querying and retrieving data from DBs, and displaying it in a Table. And combining it with HTML is a dream, when with PHP I found I was getting errors, and horrible ugly Tables. Are my fears in "re-learning" PHP well founded - or might my experience in Cold Fusion have helped? I'd be really interested to hear your comments. Will -- 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] Question concerning performance
On Wednesday 17 January 2001 11:37, jeremy wrote: Example ONE: (in just parse mode) [cut]--- ? print "html-tagblah blah blah blah blah blah blah/html-tag"; print "html-tag" . $Var1 . "/html-tagb-tag" . $Var2 . "/b-tag"; ? [/cut]-- Example TWO: (in html parse mode) [cut]--- html-tagblah blah blah blah blah blah blah/html-tag html-tag?=$Var1;?/html-tagb-tag?=$Var2;?/b-tag [/cut]-- Now, let me elaborate. I'm quite aware that the above 2 code segments will both be fast enough for me not to care. BUT, within an application that has 1000 lines of code per page (hypothetically), everything begins to matter, and the more cpu-clicks I can save, the happier I'll be. With big applications the *main* thing that matters is maintainability. In other words: Make it work, make it work well, make it maintainable and *then* make it as fast as possible while *keeping* it maintainable (and working of course) The 2 examples will turn out the same results to the browser, but which will do it faster? Don't care about it. The difference is most lileky in th 0.1% range. Look at bigger optimizations first, then benchmark and if it still is too slow (and only then) optimize further. -- 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[2]: [PHP] how do i hide my .inc files in apache??
Hello jeremy, j don't name them .inc files. j Name them blahblah.inc.php or something that will be parsed, and j therefore not just gurped up by the server. I think, more secure is move inc file out www tree. /home/user/public_html/index.php /home/user/include/lib.inc index.php ? include('/home/user/include/lib.inc'); ? Best regards, Andrew Sitnikov -- 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/sablot sablot.c
sterlingWed Jan 17 06:14:22 2001 EDT Modified files: /php4/ext/sablotsablot.c Log: Fix (well it works) the error display with sablotron. Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.30 php4/ext/sablot/sablot.c:1.31 --- php4/ext/sablot/sablot.c:1.30 Wed Jan 17 03:43:17 2001 +++ php4/ext/sablot/sablot.cWed Jan 17 06:14:22 2001 @@ -1394,27 +1394,16 @@ static void _php_sablot_standard_error(php_sablot_error *errors, php_sablot_error errors_start, int code, int level) { -int len = 0, -pos = 0; char *errstr = NULL; SABLOTLS_FETCH(); errors = errors_start.next; while (errors) { -len = pos + strlen(errors-key) + sizeof(": ") + strlen(errors-value) + sizeof("\n"); - -/** - * Could be a problem, I just hate looping through strings - * more than I have to ;-) - */ -if (pos) -errstr = erealloc(errstr, len); -else -errstr = emalloc(len+1); - -sprintf(errstr + pos, "%s: %s\n", errors-key, errors-value); - -pos = len; + if (strcmp(errors-key, "msg") == 0) { + errstr = estrdup(errors-value); + break; + } + errors = errors-next; } @@ -1427,6 +1416,8 @@ php_error(E_WARNING, errstr); break; } + +efree(errstr); } /* }}} */ -- 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-general Digest 17 Jan 2001 15:29:07 -0000 Issue 460
php-general Digest 17 Jan 2001 15:29:07 - Issue 460 Topics (messages 34974 through 35049): Re: XML, what is that supposed to do? 34974 by: Brian White 34979 by: Matt McClanahan Re: regexps 34975 by: Toby Butzon Re: Zend Optimizer 34976 by: Michael A. Peters 35021 by: Rick Hodger Re: I love/hate FrontPage - need another HTML editor. 34977 by: James McLaughlin 34978 by: Toby Butzon 34980 by: Murph 34998 by: Daniel Grace 35014 by: Adrian Murphy 35024 by: Kath 35029 by: Jon Haworth best user authentication method? 34981 by: Romulo Roberto Pereira mysql error 34982 by: James Mclean Addendum to the question: as a cgi version... 34983 by: Romulo Roberto Pereira Integers are not Variables..??? 34984 by: Dhaval Desai HTTP_POST??? 34985 by: Wade Halsey Anything similar to phpmyedit? 34986 by: Gerry Chu 34988 by: Maxim Maletsky 35005 by: Alain Fontaine 35025 by: Kath 35042 by: Gerry Chu Re: HELP! Date formatting 34987 by: Niel Zeeman Re: win 2000 nt 5.0 and IIS 34989 by: Niel Zeeman Re: I love/hate FrontPage - need another HTML editor. - Dreamweaver 4 34990 by: andreas \(.work\) random no. between two numbers? 34991 by: Erick Papadakis 34994 by: Angus Mann 35020 by: Frederico Augusto Costa ImageTTFText Error 34992 by: Gabriele Fain [PHP-DB] PHP+MySQL charset problem 34993 by: Roman Serbski 35044 by: Ignacio Vazquez-Abrams please help: PHP4 + GD 1.8.3 + PNG 34995 by: Neil Zanella Creating a text file 34996 by: Wade Halsey session_start() and cache problem ... 34997 by: Samuel Tran effect of --enable-trans-sid 34999 by: Olivier Guieu 35019 by: Jani Taskinen Re: WML/WAP and PHP 35000 by: Rick Hodger 35002 by: Rick Hodger 35006 by: Thierry Coopman Re: Images ??? 35001 by: Miguel Loureiro 35026 by: php3.developersdesk.com Re: Cookies, Dammit! 35003 by: CC Zona Re: MySQL + PWS Problems 35004 by: Phil Driscoll Forcing renaming of download file (want output from a php file being saved as some particular file by browser) 35007 by: Pankaj Gupta 35028 by: bard mail list archive 35008 by: Taras Vasylkevych 35010 by: Maxim Maletsky Re: Mail problems 35009 by: Jon Haworth REGEX for tag attributes? 35011 by: Thomas Angst Cookies still store old value(Help!!) 35012 by: Hendry Sumilo Images ??? ok,but... 35013 by: Miguel Loureiro Question concerning performance 35015 by: jeremy 35037 by: Christian Reiniger Protecting my code 35016 by: Enrico Olivelli 35023 by: Pankaj Gupta refresh Browser 35017 by: mailing_list.gmx.at 35018 by: jeremy Errors Compiling with --enable-sockets (php-4.0.3pl1) 35022 by: Stephen Maher how do i hide my .inc files in apache?? 35027 by: Jamie Burns 35030 by: Tim Zickus 35031 by: Jon Haworth 35032 by: jeremy 35033 by: Sebastian Stadtlich 35035 by: jeremy 35038 by: Matt Williams 35040 by: Andrew Sitnikov 35043 by: Jim Jagielski 35048 by: jeremy From Cold Fusion back to PHP... 35034 by: W Luke 35036 by: Frédéric Mériot 35046 by: W Luke calling static class functions using a function variable 35039 by: Shaun Batterton Press R: Letting you know about Emma 35041 by: Justice For Emma Problems compiling LDAP into php 4.0.2 35045 by: Bill.Hoffman.walgreens.com Re: string replace 35047 by: Monte Ohrt Php and FDF 35049 by: Erick Schmidt 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] -- I thought I might weigh into this debate in a small way. My background is a little different. I have spent the last five years playing with SGML ( Standard Generalised Markup Language ) which is the ancestor of XML - basically, XML was invented by elements of the SGML community to create a "lighter" form of SGML that could be used in client side apps and didn't require a CRAY to be able to do things quickly. The primary benefit of XML is that you have more control over the markup of your data. This has several aspects 1) You can markup a piece of data to describe what it *actually is* rather just marking it up how you would like it displayed in one particular media - it puts some intelligence in the data and allows you to mark up some of the context that us humans are generally able to infer. This also "future proofs" your data against the
Re: [PHP] XML, what is that supposed to do?
To everyone that wrote in answering this question, thanks. The answers were very interesting and well writen, I didn't post the origonal question but I am glad he did, Ive learned alot about something I allways wondered about :) On a side note, anyone ever see any good tutorials for XML - php ? Chris Lee Mediawaveonline.com "Brandon Orther" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello Everybody, I have seen a lot of people ask for XML support for PHP. I was wondering what it does that makes it good for PHP. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: How can I get a random number
This might not be quite what your looking for, but I often have then need for a unique number in an incrementing order. random isnt quite the word for it, unique is :) function mtime() { $mtime = microtime(); $mtime = str_replace("\.", '', $mtime); $mtime = explode(' ', $mtime); $mtime = $mtime[1] . $mtime[0]; return($mtime); } Chris Lee Mediawaveonline.com "Angela" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I see that you got a lot of responses, but I didn't see anyone using what I use. I had problems using rand() because it wasn't quite random enough. The following code is as random as you can get (at least from what I've seen). mt_srand ((double) microtime() * 100); $myrandomnumber = mt_rand($min_number, $max_number); -- 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] Hello
Hello, I'm an ASP guy gone PHP. So, be patient with me as I struggle my way with PHP. I have a some experience with writing C like syntax, as with JavaScript and TCL. I hope to pick up PHP quickly. 2 Questions: How to declare function and sub routines. How to call functions and sub routines. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I love/hate FrontPage - need another HTML editor.
I use ultraedit 8.0 this editor rocks :) on a side note as someone else posted, 'everyone to their own' it dont matter what editor you love as long as the work gets done. Chris Lee Mediawaveonline.com ""Murph"" [EMAIL PROTECTED] wrote in message 003201c08027$e886c480$[EMAIL PROTECTED]">news:003201c08027$e886c480$[EMAIL PROTECTED]... Hi. FrontPage sucks for working with PHP. I've been doing all my coding by hand and that's fine as far as it goes but I just got a promotion at work where everyone uses FrontPage so I bought it to see how I can use it to show these old dogs some new tricks. Nice program. Allows for workgroups where different people can work on different parts of a project. That'll come in handy. It also has some nice tree charts to show you where the project is branching out and generates some useful reports like where the dead links are. What I *really* liked about it was the ability to apply a common theme across all my pages. Man, that was pretty cool. Plus, let's face it, using an HTML editor really takes some of the drudgery out of designing your pages. The problem is, if the web page that is designed with FrontPage doesn't end with a regularly accepted filename extension like *.htm, FrontPage doesn't seem to really know how to handle it and I need it to handle pages that end with *.php. What are my options? I don't think I missed anything with FrontPage after scouring the manual and online and inline help pages. Anyone out there using an HTML editor that they'd like to recommend? Why? Are there any FAQs I should be reading for this answer? Maybe I should just use a style sheet for a common look and for the rest, suck it up and take it like a man? Yours, Murph www.murphatnight.com __ Brian Murphy - 193A Lowell St., Apt. 24 - Methuen, MA 01844 - (978) 725-6654 -- 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] Matching irregular cases
I think this'll be an easy one for you fellas... I'm writing a search function for my site. The code to search the mysql db's are in place and working but here's the problem. For any matches that are displayed, I want to change the search query so it stands out in the result list. I'm just using... ereg_replace($search_query, "b$search_query/b", $row[6]); ...at the moment, but it wont match results where the case doesn't match. Ie if the search query is "blah", the mysql search will return both "blah" and "Blah" but the ereg_replace will only add the b tag to the "blah" result, not the "Blah" one. Thanks in advance. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question concerning performance
Example ONE: (in just parse mode) [cut]--- ? print "html-tagblah blah blah blah blah blah blah/html-tag"; print "html-tag" . $Var1 . "/html-tagb-tag" . $Var2 . "/b-tag"; ? [/cut]-- Ran a pretty rough benchmark: 10040 lines of code (5020 repetitions of the above example) 10 times with an average execution time of 6.07904628515244 seconds. Example TWO: (in html parse mode) [cut]--- html-tagblah blah blah blah blah blah blah/html-tag html-tag?=$Var1;?/html-tagb-tag?=$Var2;?/b-tag [/cut]-- Same benchmark, except these two lines were used instead of the two lines in the above case (obviously). Again, 10 executions; this time the average execution time was 6.40339350700379 seconds. There are 100 ways error could've been introduced into this test; even so, the results seem to lean towards not switching between html php modes... although, you're talking about 1000 lines of code, and the test used 10 times that, and the resulting difference was a little more than 3 tenths of a second... if you compared it with 1/10th of the code (your 1000 line file), you'd probably have a difference in the hundredths-of-a-second range. It's up to you, but I agree with what Christian said - I'd probably shoot for being able to maintain the code; with such a little speed difference you might as well set up more servers than optimize for 1/5th of a second in execution time. --Toby -- 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] Matching irregular cases
(/me smacks head) thanks, completely forgot about that. Steve -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 15:57 To: 'jalist'; [EMAIL PROTECTED] Subject: RE: [PHP] Matching irregular cases Steve, Try the ereg_replace()somthing like this: eregi_replace($search_query, "b$search_query/b", $row[6]); Robert W. Collins Web Developer II Insight / TC Computers www.insight.com www.tccomputers.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] I love/hate FrontPage - need another HTML editor.
In article 008301c0803a$ff59af20$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Murph") wrote: But, you know, the look and feel of a site is pretty important and an HTML editor goes a long way toward managing that part. If you can find an editor that helps you set up some style sheets that carry across all your pages without you having to type in all the code for every page, you're golden. Why would you type in style sheet code on every page if you do it by hand? Doesn't that defeat half the purpose of style sheets? Jerry -- http://www.hoboes.com/jerry/ "Give a man a fish and you feed him for a day. Teach him to fish, and you've depleted the lake."--It Isn't Murder If They're Yankees (http://www.hoboes.com/jerry/Murder/) -- 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] Matching irregular cases
displayed, I want to change the search query so it stands out in the result list. I'm just using... ereg_replace($search_query, "b$search_query/b", $row[6]); ...at the moment, but it wont match results where the case doesn't match. Try eregi_replace... php.net/eregi_replace --Toby -- 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] Change the session timeout within a php-script
Hi, is it possible to change the session timeout from within a script. I can't change it in the *.ini-file because I have not the sufficient access rights. Jens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem with Exec()
Hello, Is there anybody in this conference who can tell me whether exec() will work under WinNT in future PHP releases? I am bound to use Windows. Currently I am working this around so that I have a daemon under NT. Daemon watches out for commands, written by PHP into a file, and does the exec() job on his own. PHP then reads results from another file It works, but I hate it Thanks Zbynek Jon Haworth wrote: | | It should also be noted that the system interaction functions (namely, | passthru(), exec(), system() and popen()) are | broken/incorrectly implemented, | actually, its windows that's incorrectly implemented, but be | that as it may, the | functions do not work with windows). Well, I guess that clears that up... cheers Mr. Gates | | To the original poster: | Hello | Use PHP's built-in mail() function instead, don't fork | out to sendmail, | actually, better yet, use linux :-). I spotted the mail() function about ten minutes after I posted... (and I would be on a linux box if I could persuade my boss) Cheers Jon -- 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] -- --- Zbynek Skvor Coordinator Region 8 IEEE Voluntary Contribution Fund mail: [EMAIL PROTECTED] fax: +420-2-3119958 www: http://www.cvut.cz/ascii/fee/k317/personnel/skvor -- 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] Functions
echo foo(dog);// outputs "This is a dog" This is an example of using a "bareword" - PHP doesn't recognize _dog_ as any sort of reserved word or constant, so it sends it like a quoted string. I don't recommend using this because it's ambiguous whether you mean "dog" or if _dog_ is a constant or whatever else is possible. echo foo('dog');// outputs "This is a dog" Single-quoted string: this is good for strings that don't need to be "interpretted" by the parser; it's the ideal way to pass the string 'dog' to foo() in this case. echo foo("dog");// outputs "This is a dog" Double-quoted string: this WILL be interpretted by the parser; for example, if you had to pass the whole string "This is a dog" to the function, but "dog" could actually be any word contained in $thing, then you'd do something like this: echo foo("This is a $thing"); Et cetera... Does it matter which way I pass my arguments to foo? All arguments were passed as a string variable. There are some very slight performance changes between these, but mostly it's a matter of style. --Toby -- 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 love/hate FrontPage - need another HTML editor.
Have any of you tried using EditPlus? (www.editplus.com) This is a great little editor for HTML, JavaScript, and PHP. You can download extra modules for color syntax hilighting of practically any language you can think of including many different databases. It has some nice useful HTML features and good handling of multiple documents... and most importantly, you don't have to worry about it mangling your code. It is helpful while also staying out of your way. The more I use it, the more I like it. It is simple, elegant, and it gives me all the control that I want. Its inexpensive and comes with a thirty day trial. Check it out. BTW, I do not work for EditPlus or have any association with them other than that of a satisfied customer. Matthew Aznoe -- 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 love/hate FrontPage - need another HTML editor.
Homesite from Allaire - although $99US is what I have been using for years. I really like it for editing PHP, HTML, and JavaScript. Dan ""Murph"" [EMAIL PROTECTED] wrote in message 003201c08027$e886c480$[EMAIL PROTECTED]">news:003201c08027$e886c480$[EMAIL PROTECTED]... Hi. FrontPage sucks for working with PHP. I've been doing all my coding by hand and that's fine as far as it goes but I just got a promotion at work where everyone uses FrontPage so I bought it to see how I can use it to show these old dogs some new tricks. Nice program. Allows for workgroups where different people can work on different parts of a project. That'll come in handy. It also has some nice tree charts to show you where the project is branching out and generates some useful reports like where the dead links are. What I *really* liked about it was the ability to apply a common theme across all my pages. Man, that was pretty cool. Plus, let's face it, using an HTML editor really takes some of the drudgery out of designing your pages. The problem is, if the web page that is designed with FrontPage doesn't end with a regularly accepted filename extension like *.htm, FrontPage doesn't seem to really know how to handle it and I need it to handle pages that end with *.php. What are my options? I don't think I missed anything with FrontPage after scouring the manual and online and inline help pages. Anyone out there using an HTML editor that they'd like to recommend? Why? Are there any FAQs I should be reading for this answer? Maybe I should just use a style sheet for a common look and for the rest, suck it up and take it like a man? Yours, Murph www.murphatnight.com __ Brian Murphy - 193A Lowell St., Apt. 24 - Methuen, MA 01844 - (978) 725-6654 -- 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] Change the session timeout within a php-script
set_time_limit($seconds) --Toby - Original Message - From: "Jens Rehphler" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 9:02 AM Subject: [PHP] Change the session timeout within a php-script Hi, is it possible to change the session timeout from within a script. I can't change it in the *.ini-file because I have not the sufficient access rights. Jens -- 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] I love/hate FrontPage - need another HTML editor.
It is NOT ported to Linux is it? I couldn't find any information on the website indicating weather it was compiled for *NIX or not. - Scott Have any of you tried using EditPlus? (www.editplus.com) This is a great little editor for HTML, JavaScript, and PHP. You can download extra modules for color syntax hilighting of practically any language you can think of including many different databases. It has some nice useful HTML features and good handling of multiple documents... and most importantly, you don't have to worry about it mangling your code. It is helpful while also staying out of your way. The more I use it, the more I like it. It is simple, elegant, and it gives me all the control that I want. Its inexpensive and comes with a thirty day trial. Check it out. BTW, I do not work for EditPlus or have any association with them other than that of a satisfied customer. Matthew Aznoe -- 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] ASP to PHP
Is there such thing as program that will convert ASP code to PHP code? I have built some nice libraries with ASP and am interested in converting those over to PHP, rather than rewriting them! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I love/hate FrontPage - need another HTML editor.
Nope. EditPlus is Windows-only. --Toby - Original Message - From: "Scott Gerhardt" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Php-General-Digest" [EMAIL PROTECTED]; "Chris Aitken" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 11:54 AM Subject: RE: [PHP] I love/hate FrontPage - need another HTML editor. It is NOT ported to Linux is it? I couldn't find any information on the website indicating weather it was compiled for *NIX or not. - Scott Have any of you tried using EditPlus? (www.editplus.com) This is a great little editor for HTML, JavaScript, and PHP. You can download extra modules for color syntax hilighting of practically any language you can think of including many different databases. It has some nice useful HTML features and good handling of multiple documents... and most importantly, you don't have to worry about it mangling your code. It is helpful while also staying out of your way. The more I use it, the more I like it. It is simple, elegant, and it gives me all the control that I want. Its inexpensive and comes with a thirty day trial. Check it out. BTW, I do not work for EditPlus or have any association with them other than that of a satisfied customer. Matthew Aznoe -- 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] I love/hate FrontPage - need another HTML editor.
Scott Gerhardt wrote: It is NOT ported to Linux is it? I couldn't find any information on the website indicating weather it was compiled for *NIX or not. Use emacs. Or vi. Or quanta. Or something else. Wagner -- One maniac alone can do what 20 together cannot -- 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 love/hate FrontPage - need another HTML editor.
Sadly, no. As far as I know, it is a completely windows product. I am currently developing on a Windows box using Samba to access the files on my UNIX box from windows. Its not necessarily the best way of doing things and it requires two computers, but it seems to get the job done, and since I need to use Windows anyway for my company's standards of MS Office and Outlook, its tolerable. When running exclusively in UNIX, I run Elvis, a graphical vi with syntax hilighting. XEmacs also is not a bad option, but Elvis is much faster. Matthew Aznoe -Original Message- From: Scott Gerhardt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 9:54 AM To: [EMAIL PROTECTED]; Php-General-Digest; Chris Aitken Subject: RE: [PHP] I love/hate FrontPage - need another HTML editor. It is NOT ported to Linux is it? I couldn't find any information on the website indicating weather it was compiled for *NIX or not. - Scott Have any of you tried using EditPlus? (www.editplus.com) This is a great little editor for HTML, JavaScript, and PHP. You can download extra modules for color syntax hilighting of practically any language you can think of including many different databases. It has some nice useful HTML features and good handling of multiple documents... and most importantly, you don't have to worry about it mangling your code. It is helpful while also staying out of your way. The more I use it, the more I like it. It is simple, elegant, and it gives me all the control that I want. Its inexpensive and comes with a thirty day trial. Check it out. BTW, I do not work for EditPlus or have any association with them other than that of a satisfied customer. Matthew Aznoe -- 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] include statement
This is because the PHP include statement is ment to include other blocks of PHP code, rather than bits of HTML. Hence, it includes things from anywhere on the system. To include things from under your current htdocs directory, use... include($DOCUMENT_ROOT . "/includes/metatags.include"); though the more 'correct' method would be readfile($DOCUMENT_ROOT . "/includes/metatags.include"); adamw - Original Message - From: "Michael Zornek" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:04 PM Subject: [PHP] include statement I'm a PHP newbie and am looking into using the include statement to put things like the header and footer in so they are always the same. I do this now with SSI. In SSI I'll use the following statement: !--#include virtual="/includes/metatags.include" -- I like this cause it lets me use the same statement all over the site and I don't have to worry about where the document is and how many directories i have to go up an into "../../../../../" I was guessing PHP's version would be: ?PHP include("/includes/metatags.include"); ? However I get an error. If I put the absolute it works: ?PHP include("/home/httpd/includes/metatags.include"); ? which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? Well what I want is to use something like /inc/footer.html so i can use the same PHP statements in any document and not worry about getting it "../../../" Any suggestions. Mike -- 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] include statement
This all depends on your include_path set in the PHP config files; see the manual section on config for more info. About the security hole... yes it would be dangerous on a system where accounts are given to untrusted users (ie, customers), but there are ways to make PHP secure for multi-account environments as well; this is also is described in the manual. php.net/manual --Toby - Original Message - From: "Michael Zornek" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:04 PM Subject: [PHP] include statement I'm a PHP newbie and am looking into using the include statement to put things like the header and footer in so they are always the same. I do this now with SSI. In SSI I'll use the following statement: !--#include virtual="/includes/metatags.include" -- I like this cause it lets me use the same statement all over the site and I don't have to worry about where the document is and how many directories i have to go up an into "../../../../../" I was guessing PHP's version would be: ?PHP include("/includes/metatags.include"); ? However I get an error. If I put the absolute it works: ?PHP include("/home/httpd/includes/metatags.include"); ? which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? Well what I want is to use something like /inc/footer.html so i can use the same PHP statements in any document and not worry about getting it "../../../" Any suggestions. Mike -- 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] include statement
Michael Zornek wrote: which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? No. If you know can trust your scripts, this is possible, but trusted scripts won't do any abuse, will they? If you can't trust your scripts, use safe-mode, and it isn't possible any more. Wagner -- One maniac alone can do what 20 together cannot -- 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] include statement
Adam(and everyone else who answers in 5 minutes, god i love this list), thanks for the help. Why is readfile more 'correct'? Just wondering? Mike At 5:07 PM + 1/17/01, Adam Wright wrote: This is because the PHP include statement is ment to include other blocks of PHP code, rather than bits of HTML. Hence, it includes things from anywhere on the system. To include things from under your current htdocs directory, use... include($DOCUMENT_ROOT . "/includes/metatags.include"); though the more 'correct' method would be readfile($DOCUMENT_ROOT . "/includes/metatags.include"); adamw - Original Message - From: "Michael Zornek" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:04 PM Subject: [PHP] include statement I'm a PHP newbie and am looking into using the include statement to put things like the header and footer in so they are always the same. I do this now with SSI. In SSI I'll use the following statement: !--#include virtual="/includes/metatags.include" -- I like this cause it lets me use the same statement all over the site and I don't have to worry about where the document is and how many directories i have to go up an into "../../../../../" I was guessing PHP's version would be: ?PHP include("/includes/metatags.include"); ? However I get an error. If I put the absolute it works: ?PHP include("/home/httpd/includes/metatags.include"); ? which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? Well what I want is to use something like /inc/footer.html so i can use the same PHP statements in any document and not worry about getting it "../../../" Any suggestions. Mike -- 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] Apache .htaccess Help (OT)
Hi, Sorry this is off topic but I just can`t find anywhere with reliable information to help me get my .htaccess working on my server. I have followed many tutorials and none of them give me a working password protected dir, so if anyone can help I would appreciate it. My .htaccess file is as follows: AuthUserFile /usr/home/ukgs/volunteer/.htpasswd AuthGroupFile /dev/null AuthName Bill's Restaurant AuthType Basic limit GET require user shaun101 /limit And My .htpasswd file just contains the user shaun101 with the scrambled up password. They are both in the same directory so when I log into my server I first click usr then home etc etc. But for some reason no matter what I do I still get direct access to the directory volunteer when I go to it in a browser. Anyone have any ideas what I`m doing wrong?? TIA 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] Can I fork a PHP thread?
There are occasions when I'd like to execute some long-running task in the background, in response to some user action. It seems that PHP has all the neccesary mechanisms to allow me to do this, but in my perusing of the manuals/FAQ's/digests, etc, I don't see such a facility. For example, I'd like to do something like this: function long_running_background_task() { ... } function handle_some_action() { ... fork (long_running_background_task); } In the cases I'd like to do this, I can manage synchronization externally... (i.e., implement join by waiting for a /tmp file to appear or something), so I'm not asking for a join, or any sychronization facilities. Does anyone agree that this would be useful? Is there another way to accomplish this? Better yet, does this function already exist, but has managed to hide for all this time...? thanks, dylan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/HTML IT.php ITX.php /pear/PHPDoc prepend.php /pear/PHPDoc/redist IT.php ITX.php
sbergmann Wed Jan 17 08:15:18 2001 EDT Added files: /php4/pear/HTML IT.php ITX.php Removed files: /php4/pear/PHPDoc/redistIT.php ITX.php Modified files: /php4/pear/PHPDoc prepend.php Log: Move IT[x] to HTML/. Index: php4/pear/PHPDoc/prepend.php diff -u php4/pear/PHPDoc/prepend.php:1.1 php4/pear/PHPDoc/prepend.php:1.2 --- php4/pear/PHPDoc/prepend.php:1.1Sun Oct 8 03:03:18 2000 +++ php4/pear/PHPDoc/prepend.phpWed Jan 17 08:15:18 2001 @@ -44,9 +44,9 @@ require( PHPDOC_INCLUDE_DIR . "xmlexporter/PhpdocXMLModuleExporter.php" ); require( PHPDOC_INCLUDE_DIR . "xmlexporter/PhpdocXMLClassExporter.php" ); -// Redistributed IT[X] Templates from the PHPLib -require( PHPDOC_INCLUDE_DIR . "redist/IT.php" ); -require( PHPDOC_INCLUDE_DIR . "redist/ITX.php" ); +// IT[X] Templates +require_once "HTML/IT.php"; +require_once "HTML/ITX.php"; // XML Reader require( PHPDOC_INCLUDE_DIR . "xmlreader/PhpdocXMLReader.php" ); Index: php4/pear/HTML/IT.php +++ php4/pear/HTML/IT.php ?php // // +--+ // | PHP version 4.0 | // +--+ // | Copyright (c) 1997-2001 The PHP Group| // +--+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is| // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | [EMAIL PROTECTED] so we can mail you a copy immediately. | // +--+ // | Authors: Ulf Wendel [EMAIL PROTECTED] | // +--+ // // $Id: IT.php,v 1.1 2001/01/17 16:15:17 sbergmann Exp $ // /** * Integrated Template - IT * * Well there's not much to say about it. I needed a template class that * supports a single template file with multiple (nested) blocks inside. * * Usage: * $tpl = new IntegratedTemplate( [string filerootdir] ); * * // load a template or set it with setTemplate() * $tpl-loadTemplatefile( string filename [, boolean removeUnknownVariables, boolean removeEmptyBlocks] ) * * // set "global" Variables meaning variables not beeing within a (inner) block * $tpl-setVariable( string variablename, mixed value ); * * // like with the Isotopp Templates there's a second way to use setVariable() * $tpl-setVariable( array ( string varname = mixed value ) ); * * // Let's use any block, even a deeply nested one * $tpl-setCurrentBlock( string blockname ); * * // repeat this as often as you neer. * $tpl-setVariable( array ( string varname = mixed value ) ); * $tpl-parseCurrentBlock(); * * // get the parsed template or print it: $tpl-show() * $tpl-get(); * * @author Ulf Wendel [EMAIL PROTECTED] * @version $Id: IT.php,v 1.1 2001/01/17 16:15:17 sbergmann Exp $ * @access public * @package PHPDoc */ class IntegratedTemplate { /** * Contains the error objects * @var array * @access public * @see halt(), $printError, $haltOnError */ var $err = array(); /** * Print error messages? * @var boolean * @access public * @see halt(), $haltOnError, $err */ var $printError = false; /** * Call die() on error? * @var boolean * @access public * @see halt(), $printError, $err */ var $haltOnError = false; /** * Clear cache on get()? * @var boolean */ var $clearCache = false; /** * First character of a variable placeholder ( _{_VARIABLE} ). * @var string * @access public * @see $closingDelimiter, $blocknameRegExp, $variablenameRegExp */ var $openingDelimiter = "{"; /** * Last character of a variable placeholder ( {VARIABLE_}_ ). * @var string * @access public * @see $openingDelimiter, $blocknameRegExp, $variablenameRegExp */ var $closingDelimiter = "}"; /** * RegExp matching a block in the template. * Per default "sm" is used as the regexp modifier, "i" is missing. * That means a case
[PHP-CVS] cvs: php4 /pear/HTML Processor.php
sterlingWed Jan 17 08:34:06 2001 EDT Added files: /php4/pear/HTML Processor.php Log: @ Add the HTML_Processor class which provides common functions for processing HTML. @ (Sterling) Index: php4/pear/HTML/Processor.php +++ php4/pear/HTML/Processor.php ?php // // +--+ // | PHP version 4.0 | // +--+ // | Copyright (c) 1997-2001 The PHP Group| // +--+ // | This source file is subject to version 2.0 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is| // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | [EMAIL PROTECTED] so we can mail you a copy immediately. | // +--+ // | Authors: Sterling Hughes [EMAIL PROTECTED] | // +--+ // // $Id: Processor.php,v 1.1 2001/01/17 16:34:05 sterling Exp $ // // HTML processing utility functions. // /** * TODO: * - Extend the XML_Parser module to provide HTML parsing abilities */ require_once('PEAR.php'); // {{{ HTML_Processor $_HTML_Processor_translation_table = array(); /** * The HTML_Processor class facilitates the parsing and processing of * HTML. Currently only some basic functionality to process HTML is * provided.. * * @access public * @author Sterling Hughes [EMAIL PROTECTED] * @since PHP 4.0.5 */ class HTML_Processor extends XML_Parser { // {{{ HTML_Processor() function HTML_Processor() { global $_HTML_Processor_translation_table; $_HTML_Processor_translation_table = get_html_translation_table(); } // }}} // {{{ ConvertSpecial() /** * Convert special HTML characters (like copy;) into their ASCII * equivalents. * * @param string $text The text to convert * * @access public * @author Sterling Hughes [EMAIL PROTECTED] * @since PHP 4.0.5 */ function ConvertSpecial($text) { global $_HTML_Processor_translation_table; $text = strtr($text, array_keys($_HTML_Processor_translation_table), array_flip(array_values($_HTML_Processor_translation_table))); } // }}} // {{{ ConvertASCII() /** * Convert ASCII characters into their HTML equivalents (ie, ' to * quot;). * * @param string $text The text to convert * * @access public * @author Sterling Hughes [EMAIL PROTECTED] * @since PHP 4.0.5 */ function ConvertASCII($text) { global $_HTML_Processor_translation_table; $text = strtr($text, array_flip(array_values($_HTML_Processor_translation_table)), array_keys($_HTML_Processor_translation_table)); } // }}} } // }}} ? -- 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] Ok thanx sessions that was great, now it's time to go backhome!!!
I am getting started with session and really love the sessions to death, but when I try to end a session I get an error. Can someone give me an example of code that ends a session. What is the error that you get? What is the code you're now using that causes the error? It's like saying to your mechanic "When I do something in my car, it makes a noise." xxo, Andy -- # Andy Lester http://www.petdance.com AIM:petdance %_=split';','.; Perl ;@;st a;m;ker;p;not;o;hac;t;her;y;ju'; print map $_{$_}, split //, '[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] include statement
What about the security issue mentioned? Is it then possible (using the include and/or readfile) to grab anything found on the server? 1 More thing: what if I wanted to place the contents of a file into a variable. How do you achieve that? Karl *also a newbie, and this is a great group* - Original Message - From: "Adam Wright" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Michael Zornek" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 10:18 AM Subject: Re: [PHP] include statement For your things (where you are including HTML), readfile just reads a file and dumps it to the screen. This is fine, because you are just dealing with HTML, so no processing is required. include will actually try and parse the file as if it has PHP inside somewhere, which your HTML (probably) doesnt. So, readfile uses less resources, and is much more like the SSI include statement than PHP's include :) adamw - Original Message - From: "Michael Zornek" [EMAIL PROTECTED] To: "Adam Wright" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:14 PM Subject: Re: [PHP] include statement Adam(and everyone else who answers in 5 minutes, god i love this list), thanks for the help. Why is readfile more 'correct'? Just wondering? Mike At 5:07 PM + 1/17/01, Adam Wright wrote: This is because the PHP include statement is ment to include other blocks of PHP code, rather than bits of HTML. Hence, it includes things from anywhere on the system. To include things from under your current htdocs directory, use... include($DOCUMENT_ROOT . "/includes/metatags.include"); though the more 'correct' method would be readfile($DOCUMENT_ROOT . "/includes/metatags.include"); adamw - Original Message - From: "Michael Zornek" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:04 PM Subject: [PHP] include statement I'm a PHP newbie and am looking into using the include statement to put things like the header and footer in so they are always the same. I do this now with SSI. In SSI I'll use the following statement: !--#include virtual="/includes/metatags.include" -- I like this cause it lets me use the same statement all over the site and I don't have to worry about where the document is and how many directories i have to go up an into "../../../../../" I was guessing PHP's version would be: ?PHP include("/includes/metatags.include"); ? However I get an error. If I put the absolute it works: ?PHP include("/home/httpd/includes/metatags.include"); ? which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? Well what I want is to use something like /inc/footer.html so i can use the same PHP statements in any document and not worry about getting it "../../../" Any suggestions. Mike -- 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 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 love/hate FrontPage - need another HTML editor.
I also find that ultraedit (forgive the goofy name, it's a _great_ app) works really well if I've got to code in a windows world. It's very flexible and fast on just any machine I've ever tried it on, while also doing syntax highlighting and compiling if you want it to. check it out at www.ultraedit.com It's actually the first piece of shareware that I had payed for, it's that good --something like $40 US, it's been a couple of years since I bought a license for it. Hmm, maybe I should go upgrade. jeremy -- Jeremy Kelley [EMAIL PROTECTED] pgp keyid 0xAECBA355 Phil 1:21 www.ganooz.com Car pour moi, la vie c'est le Christ, et la mort est un gain. -Original Message- From: Matthew Aznoe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 17:21 To: Php-General-Digest; Chris Aitken Subject: RE: [PHP] I love/hate FrontPage - need another HTML editor. Have any of you tried using EditPlus? (www.editplus.com) This is a great little editor for HTML, JavaScript, and PHP. You can download extra modules for color syntax hilighting of practically any language you can think of including many different databases. It has some nice useful HTML features and good handling of multiple documents... and most importantly, you don't have to worry about it mangling your code. It is helpful while also staying out of your way. The more I use it, the more I like it. It is simple, elegant, and it gives me all the control that I want. Its inexpensive and comes with a thirty day trial. Check it out. BTW, I do not work for EditPlus or have any association with them other than that of a satisfied customer. Matthew Aznoe -- 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] REGEX for tag attributes?
Thomas, Not sure if this si what you want but it may start you in the right direction. ? $bob = "div key1=val1 key2 = val2 key3='val3' key4 = \"val4\""; preg_match_all( '/\S*\s?=\s?\S+[^]/', $bob, $match ); foreach ($match[0] as $match_result) { echo $match_result."BR"; } ? Robert W. Collins Web Developer II Insight / TC Computers www.insight.com www.tccomputers.com -Original Message- From: Thomas Angst [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 5:47 AM To: [EMAIL PROTECTED] Subject: [PHP] REGEX for tag attributes? Howdy, I need to divide several attributes of a tag. div key1=val1 key2 = val2 key3='val3' key4 = "val4" how can I do this without too many time lost? Is it possible to do this with a regular expression? Thomas -- 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 connecting to FIlemaker Database
Has anyone used PHP to connect to a FileMaker database? If you have a url to a tutorial please e-mail me. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Ok thanx sessions that was great,now it's time to go back home!!!
Actually it would be like saying to a mechanic, Hey when I try to change my oil it spills can you give me an example of how to change my oil. All I was asking for was an example snip of code. But if this can help here is the error I get: Warning: Session object destruction failed in c:\apache\htdocs\sessions\done.php on line 3 Here is the code I am using: ?php session_start("CONTROL"); session_destroy(); echo "It WerkedBR"; ? A HREF="index.php"RESTART/a Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 9:33 AM To: Brandon Orther Cc: PHP User Group Subject: Re: [PHP] Ok thanx sessions that was great, now it's time to go back home!!! I am getting started with session and really love the sessions to death, but when I try to end a session I get an error. Can someone give me an example of code that ends a session. What is the error that you get? What is the code you're now using that causes the error? It's like saying to your mechanic "When I do something in my car, it makes a noise." xxo, Andy -- # Andy Lester http://www.petdance.com AIM:petdance %_=split';','.; Perl ;@;st a;m;ker;p;not;o;hac;t;her;y;ju'; print map $_{$_}, split //, '[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] Can I fork a PHP thread?
Im nearly posative this isnt what your looking for, but I thought I would see if maybe it was :) compile php as a cgi so you can run it from the command prompt. then just run the php file from the command prompt through exec () ? exec("php -q somephpfile.php "); ? untested of course. Chris Lee Mediawaveonline.com "Dylan McNamee" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... There are occasions when I'd like to execute some long-running task in the background, in response to some user action. It seems that PHP has all the neccesary mechanisms to allow me to do this, but in my perusing of the manuals/FAQ's/digests, etc, I don't see such a facility. For example, I'd like to do something like this: function long_running_background_task() { ... } function handle_some_action() { ... fork (long_running_background_task); } In the cases I'd like to do this, I can manage synchronization externally... (i.e., implement join by waiting for a /tmp file to appear or something), so I'm not asking for a join, or any sychronization facilities. Does anyone agree that this would be useful? Is there another way to accomplish this? Better yet, does this function already exist, but has managed to hide for all this time...? thanks, dylan -- 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] include statement
Pretty much, yes (within the bounds of the permissions of the files. Most webservers run as nobody on unix, and hence can only read those files which nobody can (confusing, huh :)). But, unless you have a mallicious user with upload access to your server, this isnt an issue. If you do, investigate "Safe mode" this instant :) adamw - Original Message - From: "Karl J. Stubsjoen" [EMAIL PROTECTED] To: "Adam Wright" [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Michael Zornek" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:21 PM Subject: Re: [PHP] include statement What about the security issue mentioned? Is it then possible (using the include and/or readfile) to grab anything found on the server? 1 More thing: what if I wanted to place the contents of a file into a variable. How do you achieve that? Karl *also a newbie, and this is a great group* - Original Message - From: "Adam Wright" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Michael Zornek" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 10:18 AM Subject: Re: [PHP] include statement For your things (where you are including HTML), readfile just reads a file and dumps it to the screen. This is fine, because you are just dealing with HTML, so no processing is required. include will actually try and parse the file as if it has PHP inside somewhere, which your HTML (probably) doesnt. So, readfile uses less resources, and is much more like the SSI include statement than PHP's include :) adamw - Original Message - From: "Michael Zornek" [EMAIL PROTECTED] To: "Adam Wright" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:14 PM Subject: Re: [PHP] include statement Adam(and everyone else who answers in 5 minutes, god i love this list), thanks for the help. Why is readfile more 'correct'? Just wondering? Mike At 5:07 PM + 1/17/01, Adam Wright wrote: This is because the PHP include statement is ment to include other blocks of PHP code, rather than bits of HTML. Hence, it includes things from anywhere on the system. To include things from under your current htdocs directory, use... include($DOCUMENT_ROOT . "/includes/metatags.include"); though the more 'correct' method would be readfile($DOCUMENT_ROOT . "/includes/metatags.include"); adamw - Original Message - From: "Michael Zornek" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:04 PM Subject: [PHP] include statement I'm a PHP newbie and am looking into using the include statement to put things like the header and footer in so they are always the same. I do this now with SSI. In SSI I'll use the following statement: !--#include virtual="/includes/metatags.include" -- I like this cause it lets me use the same statement all over the site and I don't have to worry about where the document is and how many directories i have to go up an into "../../../../../" I was guessing PHP's version would be: ?PHP include("/includes/metatags.include"); ? However I get an error. If I put the absolute it works: ?PHP include("/home/httpd/includes/metatags.include"); ? which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? Well what I want is to use something like /inc/footer.html so i can use the same PHP statements in any document and not worry about getting it "../../../" Any suggestions. Mike -- 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 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] Perl regular expression bug
It's a bug. Try the latest CVS, it has been fixed. Shaun Thomas wrote: This only applies to PHP 4.0.4 Back with PHP 4.0.2, I could do this: ?PHP $string = "[["; $string = preg_replace("/(\W)/", "1", $string); ? $string would then contain "\[\[". Now, if I use that same code, $string contains "\\1\\1\\1\\1". I tried to compensate for this using PHP's new ability to allow perl syntax in the replace section. ?PHP $string = "[["; $string = preg_replace("/(\W)/", "\\$1", $string); ? That leaves $string with "\$1\$1\$1\$1". Which tells me it thought I was backreferencing the $. So, to combat said assumption, I tried three, four, even five slashes in front of $1, and nothing worked. All I got were variations of "\$1\$1\$1\$1". I have to assume this is a bug, since this worked back in 4.0.2 which I stopped using due to segfaults under certain circumstances. Ideas? -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Shaun M. ThomasINN Database Programmer | | Phone: (309) 743-0812 Fax : (309) 743-0830| | Email: [EMAIL PROTECTED]AIM : trifthen | | Web : hamster.lee.net | | | | "Most of our lives are about proving something, either to | | "ourselves or to someone else." | | -- Anonymous | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- 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] -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.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] error message handling
I tried to send this before, so if I did, forgive me, but I don't think it worked last time .:) I'm trying to find a way to handle errors by number. For example, if I get a "directory already exists" error, I want to know what the number that is so I can check the return value on the function that gave the error. That made no sense. Lemme try again. Instead of getting the php-generated error message, I want to create my own so the user has a nice message instead of one that makes it look like I don't know what I'm doing. :) Any suggestions? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mail list archive
Check out The Mail Archive at http://www.mail-archive.com/ ! On Wed, 17 Jan 2001, Taras Vasylkevych wrote: Hi, is it possible to review the archive of this mailing list. And if possible then where? Thanks, Taras Mit freundlichen Gren Taras Vasylkevych team in medias GmbH Aachen, Berlin, Kln 0241-4090909 http://www.frohe-weihnachten.de *** Unsere aktuellen Projekte mit Kurzerluterung: http://www.inmedias.de/referenz oder direkt: http://www.elsa.de http://www.nachbarland-niederlande.de http://www.datavision.de http://www.strabag.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] Netscape rand() not random
Hello, I have been toying with php for a short while and have problems getting the following code to correctly execute on Netscape: ?php header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s",getlastmod())." GMT"); header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); for($i=0; $i40; $i++) { $rand= rand(1, 40); print "$randBR"; } ? I included the headers because I thought this would prevent caching, but even still, everytime I reload and shift-reload Netscape (browser cache is set to zero) I receive the same output from first access, which really ruins any true random activity. Any ideas? thanks much, Joel Dossey __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. 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] A little problem
Hello all I have a little problem: Sometimes when you invokes some .php page, appears "could not redefine function...". It looks like a Web server problem because If you try again one or two times, the same operation works Ok. Im using PHP 4, Win 98 SR2, PWS and MySql for Windows. Thanks. Emiliano Marmonti
[PHP] ? PHP vs. ?
Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? *wow, some real beginer questions! eh?* -- 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] MySQL and Array Problem
I'm trying to store an array into a MySQL table, what datatype should the column be, Varchar? second this is the code I use to store it. mysql_connect("$DBHost","$DBUser","$DBPass"); $name = implode(",", $name); mysql("$DBName","INSERT INTO CartItems VALUES ('$UID','$ItemID','$ItemQuantity','$all_toppings','$Date','$CartItemsID')"); this works fine, it stores the comma delimited info into the table. however when I extract it and try to count($name) it comes back as 1 and if I try to implode it it says Warning bad argument to implode() and if I do this echo "font size=-2".$name."/font"; $name_test = explode("," $name); echo $name_test; the names item1,item2,item3 is returned, but I get a parse error on the explode, what am I missing...? Jerry Lake -- 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 vs. ?
"Karl J. Stubsjoen" wrote: Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? You should use ?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. -Egon -- SIX Offene Systeme GmbH Stuttgart - Berlin - New York Sielminger Strae 63 D-70771 Leinfelden-Echterdingen Fon +49 711 9909164 Fax +49 711 9909199 http://www.six.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]
Re: [PHP] Question concerning performance
PHP's time functions and this little library I put together a while back - http://imawebdesigner.com/utils/runtime_clock --Toby - Original Message - From: "jeremy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:49 PM Subject: RE: [PHP] Question concerning performance Now THAT's the kind of answer I was looking for. Thanks very much for checking that out. Mind if I ask what you used for your benchmarking/timing software-wise? blest, jeremy -- Jeremy Kelley [EMAIL PROTECTED] pgp keyid 0xAECBA355 Phil 1:21 www.ganooz.com Car pour moi, la vie c'est le Christ, et la mort est un gain. -Original Message- From: Toby Butzon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 16:55 To: jeremy; [EMAIL PROTECTED] Subject: Re: [PHP] Question concerning performance Example ONE: (in just parse mode) [cut]--- ? print "html-tagblah blah blah blah blah blah blah/html-tag"; print "html-tag" . $Var1 . "/html-tagb-tag" . $Var2 . "/b-tag"; ? [/cut]-- Ran a pretty rough benchmark: 10040 lines of code (5020 repetitions of the above example) 10 times with an average execution time of 6.07904628515244 seconds. Example TWO: (in html parse mode) [cut]--- html-tagblah blah blah blah blah blah blah/html-tag html-tag?=$Var1;?/html-tagb-tag?=$Var2;?/b-tag [/cut]-- Same benchmark, except these two lines were used instead of the two lines in the above case (obviously). Again, 10 executions; this time the average execution time was 6.40339350700379 seconds. There are 100 ways error could've been introduced into this test; even so, the results seem to lean towards not switching between html php modes... although, you're talking about 1000 lines of code, and the test used 10 times that, and the resulting difference was a little more than 3 tenths of a second... if you compared it with 1/10th of the code (your 1000 line file), you'd probably have a difference in the hundredths-of-a-second range. It's up to you, but I agree with what Christian said - I'd probably shoot for being able to maintain the code; with such a little speed difference you might as well set up more servers than optimize for 1/5th of a second in execution time. --Toby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Netscape rand() not random
you need to seed the rand with srand() before the rand() command... cheers, Rom - Original Message - From: Joel Dossey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 1:39 PM Subject: [PHP] Netscape rand() not random Hello, I have been toying with php for a short while and have problems getting the following code to correctly execute on Netscape: ?php header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s",getlastmod())." GMT"); header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); for($i=0; $i40; $i++) { $rand= rand(1, 40); print "$randBR"; } ? I included the headers because I thought this would prevent caching, but even still, everytime I reload and shift-reload Netscape (browser cache is set to zero) I receive the same output from first access, which really ruins any true random activity. Any ideas? thanks much, Joel Dossey __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. 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] ? PHP vs. ?
I didn't know that - very intersting! thank you Egon, this reaaly helps... Rom - Original Message - From: Egon Schmid (@work) [EMAIL PROTECTED] To: Karl J. Stubsjoen [EMAIL PROTECTED] Cc: PHP Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 1:51 PM Subject: Re: [PHP] ? PHP vs. ? "Karl J. Stubsjoen" wrote: Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? You should use ?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. -Egon -- SIX Offene Systeme GmbH Stuttgart - Berlin - New York Sielminger Strae 63 D-70771 Leinfelden-Echterdingen Fon +49 711 9909164 Fax +49 711 9909199 http://www.six.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] ? PHP vs. ?
Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? You should use ?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. Well, I don't see the short tag ever being dropped actually. But yes, ?php would be best for writing code meant to be portable. -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] ? PHP vs. ?
Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? You should use ?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. Are there in fact plans to drop the short tags? --Toby -- 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] Change the session timeout within a php-script
Setting the $seconds value to 0 makes the timeout value of the script unlimited. If you're having problems with the browser timing out, try sending a space every few seconds to keep the connection open. If I'm still misunderstanding your question, my apologies. --Toby - Original Message - From: "Jens Rehphler" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: "Toby Butzon" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 1:05 PM Subject: Re: [PHP] Change the session timeout within a php-script I think you understood me wrong. I don't want to change (or limit) the execution time of a script. I want to change the lifetime of a http session. Toby Butzon wrote: set_time_limit($seconds) Jens -- 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] Netscape differences?
In article [EMAIL PROTECTED], "Joel Dossey" [EMAIL PROTECTED] wrote: One way to fool browsers when making an image request is to append a random string to the query string of the img src. In these situations, adding 'rand=?php print(time()); ?' can do the trick. Jeff Greetings, I have a php script that generates a random image. All images are kept in a mysql table. It works fine when viewed by IE, but Netscape, and Lynx, always show the same image. The database information, however, is changed as it should be (correctly incrementing the times seen column for the image), and on refresh all information goes as it should, except for randomly selecting an image. This may be an apache caching problem, but I was wondering if anyone has run into this working with php in general, and what solutions I need to explore. Thanks much, Joel Dossey __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. 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]
RE: [PHP] MySQL and Array Problem
Never mind, I caught my syntax error it works fine now. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:43 AM To: [EMAIL PROTECTED] Subject: [PHP] MySQL and Array Problem I'm trying to store an array into a MySQL table, what datatype should the column be, Varchar? second this is the code I use to store it. mysql_connect("$DBHost","$DBUser","$DBPass"); $name = implode(",", $name); mysql("$DBName","INSERT INTO CartItems VALUES ('$UID','$ItemID','$ItemQuantity','$all_toppings','$Date','$CartItemsID')"); this works fine, it stores the comma delimited info into the table. however when I extract it and try to count($name) it comes back as 1 and if I try to implode it it says Warning bad argument to implode() and if I do this echo "font size=-2".$name."/font"; $name_test = explode("," $name); echo $name_test; the names item1,item2,item3 is returned, but I get a parse error on the explode, what am I missing...? Jerry Lake -- 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] Netscape rand() not random
Ah! excellent, it works fine now. I must apparently skipped that line about seeding it in the php documentation. (doh!) I wonder why IE5.5 didnt need the seeding in order to do the rand()? Thanks alot, Joel --- Romulo Roberto Pereira [EMAIL PROTECTED] wrote: you need to seed the rand with srand() before the rand() command... cheers, Rom - Original Message - From: Joel Dossey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 1:39 PM Subject: [PHP] Netscape rand() not random Hello, I have been toying with php for a short while and have problems getting the following code to correctly execute on Netscape: ?php header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s",getlastmod())." GMT"); header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); for($i=0; $i40; $i++) { $rand= rand(1, 40); print "$randBR"; } ? I included the headers because I thought this would prevent caching, but even still, everytime I reload and shift-reload Netscape (browser cache is set to zero) I receive the same output from first access, which really ruins any true random activity. Any ideas? thanks much, Joel Dossey __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. 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] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. 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]
RE: [PHP] ASP to PHP
Try asp2php: http://asp2php.naken.cc/home.php Michael Simcich AccessTools -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 8:48 AM To: PHP Mailing List Subject: [PHP] ASP to PHP Is there such thing as program that will convert ASP code to PHP code? I have built some nice libraries with ASP and am interested in converting those over to PHP, rather than rewriting them! 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] MySQL Disk Space Usage
Is it possible to find out how much disk space a particular number of rows in a table takes up?? If you have an answer, please email me directly. Thank you!!
Re: [PHP] I love/hate FrontPage - need another HTML editor.
Coming in on this late and from another platform: I use Bluefish and Gvim under Unix. Of the two, Gvim is probably the most configurable editor out there (macros, syntax highlighting, runs its own scripts, uses a variety of scripting languages) and is available for Windows. It's free (well, it's really charity ware) and Open Source. While Bluefish is a nice non-gui HTML editor, Gvim is what I use for "serious" coding in C, C++, Perl, Python, PHP and so on and on. It has "unlimited" undoos and built in syntax highlighting for languages I've never encountered in the "real world" (and a few I've never heard of). Highly recommended. Incidentally, could'nt you use PHP to manage the "look" at a CSS level? Should this be the job of the editor? -- ** 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]
[PHP] Re: Problems compiling LDAP into php 4.0.2
I switched from Netscape to Openldap and it now compiles fine. Unfortunately Apache bombs when I try to start it with the following error: Syntax error on line 237 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ldap_value_free Any ideas as to why this would happen would be much appreciated, BEH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] new email address
Just a quick note to all. My old address, [EMAIL PROTECTED], will no longer be in service. You can reach me at [EMAIL PROTECTED] or [EMAIL PROTECTED] Please make the necessary changes to your address books. Thanks, Tom Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [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] MySQL Disk Space Usage
I think that these are your answer: Memory use explanation in MYSQL DB: http://www.mysql.com/doc/m/y/myisamchk_memory.html Memory used by MYSQL DB: http://www.mysql.com/doc/M/e/Memory_use.html MYSQL DB Status: http://www.mysql.com/doc/S/H/SHOW_STATUS.html Problems with HARD DISKS and MYSQL DB: http://www.mysql.com/doc/D/i/Disk_issues.html Have fun, Rom - Original Message - From: [ rswfire ] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 2:09 PM Subject: [PHP] MySQL Disk Space Usage Is it possible to find out how much disk space a particular number of rows in a table takes up?? If you have an answer, please email me directly. Thank you!! -- 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] 4.0.4pl1 still reports version as 4.0.3pl1
I had 4.0.3pl1 running on a Windows98 system. After I upgraded to 4.0.4pl1, calling phpinfo() still reports the version as being 4.0.3pl1. I deleted the original c:/php/ directory completely before installing the newer version, so I don't *think* i left behind any old files. The php4ts.dll file is dated 1/12/01. Has anyone else noticed this same problem? -- 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] Postgres pconnect
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a website where each new page access connects to a Postgres database to load information. Each DB connect uses a $dblink=pg_connect() to connect to the database. I'd like to avoid the overhead with opening a new connection with every page. So, can I change all of the pg_connect calls to pg_pconnect call and have the pages use persistent connections, or is there something more that needs to be done? - --Wade -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6ZfSfX5y4ZKLK2pMRAkVBAKCznNSkCNX7CCZtnWSVKKMqmf7tSwCgiBez q4vzBEFouHJ2ZvaLXvJGvdo= =nNgn -END PGP SIGNATURE- -- 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] MySQL Disk Space Usage
Thank you for the reply, however, I do not believe this will solve my problem. So please let me explain what I am trying to do. I'll use an example. Let's say I have a guestbook application. And let's say that several different people have their own guestbooks. I would create a guestbook table with, let's say: rowid person_id (...other fields...) What I want to do is something like a SELECT query, where I select all of the rows by person_id. Then, I want to find out how much DISK SPACE is being used by these particular rows. I am doing this to determine how much disk space is being used by any particular client. Each client is allocated a certain amount of disk space usage on my server and I need to determine how much space they are using in the database. Any ideas on how to do this in PHP??? Please email me directly with a response. Thank you - Original Message - From: Romulo Roberto Pereira [EMAIL PROTECTED] To: [ rswfire ] [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 2:29 PM Subject: Re: [PHP] MySQL Disk Space Usage I think that these are your answer: Memory use explanation in MYSQL DB: http://www.mysql.com/doc/m/y/myisamchk_memory.html Memory used by MYSQL DB: http://www.mysql.com/doc/M/e/Memory_use.html MYSQL DB Status: http://www.mysql.com/doc/S/H/SHOW_STATUS.html Problems with HARD DISKS and MYSQL DB: http://www.mysql.com/doc/D/i/Disk_issues.html Have fun, Rom - Original Message - From: [ rswfire ] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 2:09 PM Subject: [PHP] MySQL Disk Space Usage Is it possible to find out how much disk space a particular number of rows in a table takes up?? If you have an answer, please email me directly. Thank you!! -- 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] Two things
When I get a list of items from a database I would like to display them with alternating colors. Does anyone know how or where I can get some code that will show me how to do that? The other question is what is the code to get the ip of the client that is accessing your site? I know that one is easy but I forget how to do it. thanks Phil Labonte Systems Administrator Atreus Systems (p) 613-233-1741 x243 (c) 613-277-1697 [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] Two things
When I get a list of items from a database I would like to display them with alternating colors. Does anyone know how or where I can get some code that will show me how to do that? $col = 0; $colors = array('#ff','#00'); while($row=mysql_fetchrow($result)) { echo "td bgcolor=".$colors[$i++%2]."".$row[0]."/td\n"; } The other question is what is the code to get the ip of the client that is accessing your site? I know that one is easy but I forget how to do it. $REMOTE_ADDR -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] error message handling
You probably want to suppress the error message with an @ symbol. Try putting an "@" before the function calls that give you errors. you want to avoid doing that, I recommend properly handling the error. ?php $x = @php_function_here(); ? This suppresses the error function. Many functions return FALSE if unsuccessful, so you can test and supply your own error message. better to write a handler to deal with your errors properly. ?php if ($x == FALSE) { print ("error."); } ? If you find yourself doing this alot, you may want to create a wrapper function or wrapper class around the original. Look at PHPLIB's DB_SQL class for an example of how they suppress error messages. Look at www.php.net for more info. or have a look at binarycloud: http://www.binarycloud.com best, _alex -- 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] Two things
Did you mean this? ?php $i = 0 $colors = array('#ff','#0'); ? -Ben -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 11:52 AM To: Phil Labonte Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Two things When I get a list of items from a database I would like to display them with alternating colors. Does anyone know how or where I can get some code that will show me how to do that? $col = 0; $colors = array('#ff','#00'); while($row=mysql_fetchrow($result)) { echo "td bgcolor=".$colors[$i++%2]."".$row[0]."/td\n"; } The other question is what is the code to get the ip of the client that is accessing your site? I know that one is easy but I forget how to do it. $REMOTE_ADDR -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] how do i hide my .inc files in apache??
move them out of your apache docroot. /usr/local/apache/htdocs/blah.php includes /usr/local/apache/include/hoo.inc _a -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 From: [EMAIL PROTECTED] ("Matt Williams") Newsgroups: php.general Date: 17 Jan 2001 05:58:59 -0800 Subject: RE: [PHP] how do i hide my .inc files in apache?? Files *.inc Order allow,deny Deny from all /Files in either your httpd.conf or a .htaccess file will deny users access to your *.inc files M@ -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 13:01 To: 'Jamie Burns' Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] how do i hide my .inc files in apache?? I take it you're talking about normal html .inc files, and not the PHP include() function? If so, this is well off-list, try the comp.infosystems.www.servers heirarchy for this sort of thing. But... You can't, AFAIK. The whole *point* of an include file is that the entire contents of that file are included in whatever document you call it from. You use them for holding repetitive information that you don't want to type out for every page, such as a footer, eg: pThis page is copyright blah blah blah/p pa href="mailto:[EMAIL PROTECTED]"E-mail the webmaster/a/p would be a candidate for a .inc file. If I have completely missed the point, please forgive me. Cheers Jon -Original Message- From: Jamie Burns [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 12:48 To: [EMAIL PROTECTED] Subject: [PHP] how do i hide my .inc files in apache?? hi.. can anyone tell me how i get apache to never send out the contents of my include files (*.inc) to users? i dont want my source sode to be visible to browsers. thanks, jamie. -- 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] determine number of days, hours minutes between 2 dates
The subject pretty much explains it all. I have 2 dates (MMDDHHSS format) and want to determine the number of days, hours, minutes and seconds left from the later date to the earlier date. I figure I could do all this using date arithmatic, divide by 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day and so forth, but was wondering if there a better (or easier way) to do this before I start coding away.? ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] how do i hide my .inc files in apache??
I could be mistaken here, but last I checked you could include files outside of the document root. Can't get much more secure then that and you don't have to mess with the Apache rewrite engine, which is known for slowing things down. --Jon At 02:02 PM 1/17/01 +, Matt Williams wrote: Files *.inc Order allow,deny Deny from all /Files in either your httpd.conf or a .htaccess file will deny users access to your *.inc files M@ -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 13:01 To: 'Jamie Burns' Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] how do i hide my .inc files in apache?? I take it you're talking about normal html .inc files, and not the PHP include() function? If so, this is well off-list, try the comp.infosystems.www.servers heirarchy for this sort of thing. But... You can't, AFAIK. The whole *point* of an include file is that the entire contents of that file are included in whatever document you call it from. You use them for holding repetitive information that you don't want to type out for every page, such as a footer, eg: pThis page is copyright blah blah blah/p pa href="mailto:[EMAIL PROTECTED]"E-mail the webmaster/a/p would be a candidate for a .inc file. If I have completely missed the point, please forgive me. Cheers Jon -Original Message- From: Jamie Burns [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 12:48 To: [EMAIL PROTECTED] Subject: [PHP] how do i hide my .inc files in apache?? hi.. can anyone tell me how i get apache to never send out the contents of my include files (*.inc) to users? i dont want my source sode to be visible to browsers. thanks, jamie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Disk Space Usage
this page sho you in how to retriev table info (like space used) from a mysql table using myisamchk... Give it a look! http://www.mysql.com/doc/T/a/Table-info.html The trick would be create a virtual table by join and use this command to mesure the amount of memory beeing used by each user.. What do you think? Rom - Original Message - From: [ rswfire ] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 2:42 PM Subject: Re: [PHP] MySQL Disk Space Usage Thank you for the reply, however, I do not believe this will solve my problem. So please let me explain what I am trying to do. I'll use an example. Let's say I have a guestbook application. And let's say that several different people have their own guestbooks. I would create a guestbook table with, let's say: rowid person_id (...other fields...) What I want to do is something like a SELECT query, where I select all of the rows by person_id. Then, I want to find out how much DISK SPACE is being used by these particular rows. I am doing this to determine how much disk space is being used by any particular client. Each client is allocated a certain amount of disk space usage on my server and I need to determine how much space they are using in the database. Any ideas on how to do this in PHP??? Please email me directly with a response. Thank you - Original Message - From: Romulo Roberto Pereira [EMAIL PROTECTED] To: [ rswfire ] [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 2:29 PM Subject: Re: [PHP] MySQL Disk Space Usage I think that these are your answer: Memory use explanation in MYSQL DB: http://www.mysql.com/doc/m/y/myisamchk_memory.html Memory used by MYSQL DB: http://www.mysql.com/doc/M/e/Memory_use.html MYSQL DB Status: http://www.mysql.com/doc/S/H/SHOW_STATUS.html Problems with HARD DISKS and MYSQL DB: http://www.mysql.com/doc/D/i/Disk_issues.html Have fun, Rom - Original Message - From: [ rswfire ] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 2:09 PM Subject: [PHP] MySQL Disk Space Usage Is it possible to find out how much disk space a particular number of rows in a table takes up?? If you have an answer, please email me directly. Thank you!! -- 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] 4.0.4pl1 still reports version as 4.0.3pl1
I had 4.0.3pl1 running on a Windows98 system. After I upgraded to 4.0.4pl1, calling phpinfo() still reports the version as being 4.0.3pl1. I deleted the original c:/php/ directory completely before installing the newer version, so I don't *think* i left behind any old files. The php4ts.dll file is dated 1/12/01. Has anyone else noticed this same problem? No - 4.0.4pl1 definitely reports itself as such. You must have a stale php4ts.dll somewhere in your windows path. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Search Engine submittal and PHP
I have a site that uses PHP extensively. Each page has PHP, so of course each page ends in the .php extension. Does anyone know if this affects the way a search engine crawls a site? I have several sites that are very successful, but this site does not even show up on the search engines. All design criteria and submission techniques were the same, except I used PHP on this particular site on every page. Thanks for your help... Shane
Re: [PHP] ? PHP vs. ?
Hi Philip! On Wed, 17 Jan 2001, Philip Olson wrote: Short open tags won't work with xml. Therefore they won't work with xhtml. They conflict with where the Web is going. Aha! Yet another reason not to use ?= :-) you can always use % and %= instead. No XML problems, and you may confuse your {A,J}SP coders :) -- 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] PHP Win32 and *NIX
Is there a difference in the way PHP parses scripts in various operating systems? I've gotten opinions that say PHP under Linux parses more/different code than does under Windows NT. Thanks -Marc
RE: [PHP] Sessions/security
Try looking at register_shutdown_function at http://www.php.net/manual/en/function.register-shutdown-function.php From the documentation: "int register_shutdown_function (string func) Registers the function named by func to be executed when script processing is complete." What qualifies as "complete"? After each page is parsed and served to the client? After a certain amount of time when the requesting browser hasn't made another request? Chris
[PHP] Session and Cookies
Dear everyone Can someone tell me how to use Session Object because when the user login the page I want to store the login,pass,and type_login so that I can pass this throughout the process. I found that i can store that by using cookies ,but the problem ,some computer can't store cookies,and it caused redirect to main page. So,that i was asked to use Session Object By ASP people,and i wonder how to do that in PHP? thank you very much Sincerely Yours Hendry Sumilo [EMAIL PROTECTED] http://members.tripodasia.com.my/hsumilo _ 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]