Re: [PHP] SSL SSL SSL SSL -- READ THIS!!!!!!
Well there is one method to do this! OpenSSL ./config --prefix=/usr/local/openssl-0.9.6 --openssl=/usr/local/openssl-0.9. 6 make make test make install Mod_SSL ./configure --prefix=/usr/local/mod_ssl-2.8.0-1.3.17 --with-apache=../apache _1.3.17 --with-ssl=../openssl-0.9.6 Apache ./configure --prefix=/usr/local/apache_1.3.17 PHP ./configure --prefix=/usr/local/php-4.0.2 --with-apache=../apache_1.3.17 --w ith-openssl=../openssl-0.9.6 --without-mysql --enable-track-vars Apache SSL_BASE=../ssl ./configure --prefix=/usr/local/apache_1.3.17 --enable-module=ssl --activate -module=src/modules/php4/libphp4.a make make certificate (optional) make install That is all you need. Apache will automatically enable the Mod_SSL and compile it. The file path for Apache or PHP, or SSL is up to you or you can leave hte --prefix blank. Scott Toby Miller [EMAIL PROTECTED] wrote in message 029d01c0c834$b75f61f0$[EMAIL PROTECTED]">news:029d01c0c834$b75f61f0$[EMAIL PROTECTED]... - Original Message - From: phpman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 4:55 PM Subject: [PHP] SSL SSL SSL SSL -- READ THIS!! How do I establish an SSL socket connection with PHP? I have PHP compiled in an Apache Mod_SSL server. Do I need to compile PHP with some sort of open_ssl option? I have --enable-sockets in the command line. Please help!!! -dave -- PHP General Mailing List (http://www.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] PHP ---- sort()
I have used the PHP sort function -- sort(). When I use sort($data, NUMERIC), it sort the data by Numeric order. But it goes in ascending order. Is there a way to make it go in Descending order? Thanks, Scott -- PHP General Mailing List (http://www.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 ---- sort()
I mean, sort($data, SORT_NUMBERIC), not sort($data, NUMERIC). Scott Fletcher [EMAIL PROTECTED] wrote in message 9c191q$crh$[EMAIL PROTECTED]">news:9c191q$crh$[EMAIL PROTECTED]... I have used the PHP sort function -- sort(). When I use sort($data, NUMERIC), it sort the data by Numeric order. But it goes in ascending order. Is there a way to make it go in Descending order? Thanks, Scott -- PHP General Mailing List (http://www.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] Calculating the difference between two dates
Please can someone tell me there is a nice function that can calculate the difference between two dates. If there isn't such a function I'm sure someone could tell me how I can do a different way. -- PHP General Mailing List (http://www.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 powered forums
On Mon, 23 Apr 2001 15:34, kenny.hibs wrote: Don't know if this id the place to ask but Can anyone recommend a good php powered forum that I could use on my site. kenny Phorum - http://www.phorum.org/ -- David Robley| WEBMASTER Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Remove headers and footer from printed pages.
Hi guys, I have created a little "order" system for our company internal needs, and when I want to print the order, I use a special page, that has a jpg picture as a background and all items are positioned absolutely on the picture. This thing makes all the frames and lines look good. Now, when I print the page, I'd like to get rid of the "header" and "footer" that browser adds on the printed page. Does anybody have an idea how to do this? I know, that I can change these settings in IE manually, but I have no intention to go to every computer and change it, and even have no idea how to do that in NS. tia, Dezider. -- PHP General Mailing List (http://www.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] Remove headers and footer from printed pages.
you have to do it manually in IE NS as far as i know to do in NS click on file then page set up uncheck all things to do with header and footer click ok Peter -Original Message- From: Dezider Gra [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 4:25 PM To: PHP General Subject: [PHP] Remove headers and footer from printed pages. Hi guys, I have created a little "order" system for our company internal needs, and when I want to print the order, I use a special page, that has a jpg picture as a background and all items are positioned absolutely on the picture. This thing makes all the frames and lines look good. Now, when I print the page, I'd like to get rid of the "header" and "footer" that browser adds on the printed page. Does anybody have an idea how to do this? I know, that I can change these settings in IE manually, but I have no intention to go to every computer and change it, and even have no idea how to do that in NS. tia, Dezider. -- PHP General Mailing List (http://www.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 powered forums
http://www.vbulletin.com/ Can anyone recommend a good php powered forum that I could use on my site. = -- Nick Terzich Creative Director - PopSmack, LLC Insane Advertising Posse http://www.popsmack.com/studio __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.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] What's wrong with this code?
Tyler Longren wrote: $file = fopen(includes/about.inc, r); $data = fread($file, 2400); [..] Any ideas why that doesn't work on one server but it will work on another server? The server it works on is Win2k, IIS5, php4.0.4pl1. The server it doesn't work on is Linux, Apache, php4.0.4pl1. Any ideas why this won't work? Just to be sure, I did a chmod 777 about.inc, so file permissions isn't it. I don't know why this wouldn't work on LAMP, but if you want to read a whole file you should do this: $data = implode('',file(includes/about.inc)); regards Wagner -- In place of infinity we usually put some really big number, like 15. - Anonymous Computer Science professor -- PHP General Mailing List (http://www.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] Where can I get php_msql.dll?
try: www.php4win.de -elias http://eassoft.cjb.net Shan GAO [EMAIL PROTECTED] wrote in message 002501c0ca82$116784d0$579a86cb@shans">news:002501c0ca82$116784d0$579a86cb@shans... Can anybody tell me where I can get extension for MINI sql -- php_msql.dll for NT4.0? Cheers Shan GAO -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What's wrong with this code?
I think you need to specify the full path rather than relative when using fopen eg: $file = fopen(/usr/local/apache/htocs/includes/about.inc, r); Chris Alexander Wagner wrote: Tyler Longren wrote: $file = fopen(includes/about.inc, r); $data = fread($file, 2400); [..] Any ideas why that doesn't work on one server but it will work on another server? The server it works on is Win2k, IIS5, php4.0.4pl1. The server it doesn't work on is Linux, Apache, php4.0.4pl1. Any ideas why this won't work? Just to be sure, I did a chmod 777 about.inc, so file permissions isn't it. I don't know why this wouldn't work on LAMP, but if you want to read a whole file you should do this: $data = implode('',file(includes/about.inc)); regards Wagner -- In place of infinity we usually put some really big number, like 15. - Anonymous Computer Science professor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.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] crypt() and md5
Hello all, i would like to crypt a password as secure as possible. The documentation says crypt() will use DES unless MD5 is available. But in my case this doesn't seem to work. 'echo CRYPT_STD_DES ;' returns 1 'echo CRYPT_EXT_DES;' returns 0 'echo CRYPT_MD5;' returns 1 'echo CRYPT_BLOWFISH;'returns 0 so i will asume, that MD5 is available on my system. But 'echo CRYPT_SALT_LENGTH;' returns 2 and if i test 'crypt('test')' the string is only encrypted with DES. Anybody had similar expieriences? Is this a bug or an error on my side? Best regards Niklas Neumann -- Ein Experte ist ein Mann, der hinterher genau sagen kann, warum seine Prognose nicht gestimmt hat. - Winston Churchil -- PHP General Mailing List (http://www.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] Connecting to a MS Access database
On Sunday 22 April 2001 22:02, Steve Maroney wrote: This brings up a question that I always wondered. Does Access have server functionality? Where do you configure these settings ? If you go over the menuchoice - file, shake your mouse, bite in the cord, slam your head in the monitor fifteen times and then trow a bucket of water over your computer a new option called 'server' comes up. if not, repeat the steps. Or install a database server. when using ex. asp towards an accessbase it's odbc that deals with the communication. it's slow, it's a bottleneck.. but it works :) -- php developer / CoreTrek AS| Thus spake the master programmer: Sandnes / Rogaland / Norway| After three days without programming, web: http://www.moijk.net/ | life becomes meaningless. -- Geoffrey -- PHP General Mailing List (http://www.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] crypt() and md5
That means that you do have MD5 crypt() support. If you simply provide a salt that starts with $1$ you should get an md5-encrypted password. If you look in a passwd or shadow file that contains md5'ed passwords you will see something like this: $1$rZelmysN$Gj0rbqD76STIotGExxpna1 SALT So to generate a password like this you would do: crypt($string,'$1$rZelmysN$'); -Rasmus On Mon, 23 Apr 2001, Niklas Neumann wrote: Hello all, i would like to crypt a password as secure as possible. The documentation says crypt() will use DES unless MD5 is available. But in my case this doesn't seem to work. 'echo CRYPT_STD_DES ;' returns 1 'echo CRYPT_EXT_DES;' returns 0 'echo CRYPT_MD5;' returns 1 'echo CRYPT_BLOWFISH;'returns 0 so i will asume, that MD5 is available on my system. But 'echo CRYPT_SALT_LENGTH;' returns 2 and if i test 'crypt('test')' the string is only encrypted with DES. Anybody had similar expieriences? Is this a bug or an error on my side? Best regards Niklas Neumann -- PHP General Mailing List (http://www.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: Linux Suggestion
On Sunday 22 April 2001 23:51, Padraic Tynan wrote: You know, that's a tad rude, just suggestion an OS switch like that. :þ I mean, my http server isn't the only thing I run -- this is my personal use computer. I run linux and freebsd on my personal and work computer(s). but that's my personal choice, It does everything I want so why not :) (beside the neighborhood have stopped calling me for help now since I just replies that I haven't touched windows in ages so I can't help them with their tidious problems ;) seriosly, ever considered putting up a old computer for test-purposes? like a pentium 200? goes for nothing on the second hand marked. Windows XP Beta contains the sum total of what Windows has been up to now, so I don't think the OS has very much to do with it. total sum? you mean, all bugs and security flaws gathering in one box? Reminds me of the insurance company that charge double if you run windows on the servers cause it's more prone to fail :) entirely experimental and recommended only for experienced users, Linux itself (every flavor) is still experimental, and you have to know beyond a shadow of a doubt what you're doing to use it. Not to mention, every time I've tried to set it up (RH6, Mandrake 7.1), nearly immediately following the installation, it's messed up, without my editing any part of it. Try FreeBSD, it's not linux but it beats the crap out of most linux distros in ease to install. ofcourse redhat 7, openlinux and such is real easy but freebsd installs never fails unless your harddrive has the surface of the moon. -- php developer / CoreTrek AS| Jones' Motto: Friends come and go, but Sandnes / Rogaland / Norway| enemies accumulate. web: http://www.moijk.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-CVS] cvs: php4 / configure.in
sniper Mon Apr 23 00:32:36 2001 EDT Modified files: /php4 configure.in Log: Fixed bugs: #10194, #9177. Index: php4/configure.in diff -u php4/configure.in:1.237 php4/configure.in:1.238 --- php4/configure.in:1.237 Sun Apr 22 23:00:43 2001 +++ php4/configure.in Mon Apr 23 00:32:35 2001 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.237 2001/04/23 06:00:43 rasmus Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.238 2001/04/23 07:32:35 sniper Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -240,10 +240,6 @@ fi -AC_CHECK_LIB(crypt, crypt, [ - PHP_ADD_LIBRARY(crypt) - AC_DEFINE(HAVE_LIBCRYPT,1,[ ]) ], []) - AC_CHECK_LIB(dl, dlopen,[PHP_ADD_LIBRARY(dl)]) dnl The sin may be in a library which need not be specifed @@ -600,6 +596,12 @@ if test $PHP_PHP_STREAMS = yes; then AC_DEFINE(HAVE_PHP_STREAM, 1, [Whether to use php streams]) fi + +AC_CHECK_LIB(crypt, crypt, [ + PHP_ADD_LIBRARY(crypt) + AC_DEFINE(HAVE_LIBCRYPT,1,[ ]) + AC_DEFINE(HAVE_CRYPT,1,[ ]) +], []) divert(5) -- 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] Counting Words In a String
Greg Donald wrote: I want to check a string and return the amount of words present in it. These strings could be quite large, some higher than 100,000 characters. I realize I could explode the string on the whitespace and count the number of values. However, I'm not sure this would be the most optimized way to do this, especially considering there will be some quite large strings passed. Any ideas on the most efficient to count the number of words in a large string? $string = Here is a very long string; $array = explode( , $string); $count = sizeof($array); echo $count; Hello, Greg, Jason asked for an _optimized_ solution. Solution: 1. If you're using PHP=4.02 just take the substr_count() function (see manual). 2. Otherwise you can take this code: $count=0; for($x=0;$xstrlen($string);$x++) if(substr($string,$x,1)== ) $count++; if($count0) $count++; Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What's wrong with this code?
On Monday 23 April 2001 08:59, Alexander Wagner wrote: Tyler Longren wrote: $file = fopen(includes/about.inc, r); $data = fread($file, 2400); $file = includes/about.inc; if ($fp = fopen($file,r)) { $data = fread($fp,filesize($file)); fclose($fp); } ought to work. -- php developer / CoreTrek AS| Beware of a tall dark man with a spoon Sandnes / Rogaland / Norway| up his nose. web: http://www.moijk.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]
Re: [PHP] crypt() and md5
Hy, That means that you do have MD5 crypt() support. If you simply provide a salt that starts with $1$ you should get an md5-encrypted password. I know how to do it manually. But isn't crypt supposed to choose MD5-hashing if it is available on the system php is running on? I use PHP 4.0.4pl1 and md5 support is definitively available. Btw. $1$rZelmysN$Gj0rbqD76STIotGExxpna1 SALT Isn't this just a 8 chars SALT (rZelmysN)? Best regards Niklas Neumann -- PHP General Mailing List (http://www.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] crypt() and md5
If your system's crypt() function supports standard DES crypt, then that will be the default if you do not supply a salt. PHP will generate a random DES salt for you. If you supply your own random MD5 salt and your system's crypt() function supports MD5, then it will generate an md5-encrypted string. That's just the way it works. If you want PHP to always default to md5 crypt and generate random md5 salts for you then you should undefine PHP_STD_DES_CRYPT in php_config.h and recompile PHP. -Rasmus On Mon, 23 Apr 2001, Niklas Neumann wrote: Hy, That means that you do have MD5 crypt() support. If you simply provide a salt that starts with $1$ you should get an md5-encrypted password. I know how to do it manually. But isn't crypt supposed to choose MD5-hashing if it is available on the system php is running on? I use PHP 4.0.4pl1 and md5 support is definitively available. Btw. $1$rZelmysN$Gj0rbqD76STIotGExxpna1 SALT Isn't this just a 8 chars SALT (rZelmysN)? Best regards Niklas Neumann -- PHP General Mailing List (http://www.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] Incrementing a String Name
On 22 Apr 2001 17:56:23 -0700 AD in php.general, Chris Aitken said: Hi Just a quick puzzle I cant seem to get around at the moment... Why don't you put it in your own thread -- PHP General Mailing List (http://www.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] redirection to another page function
One thing that doesn't seem to have been considered is the use of the refresh meta tag. Whilst it depends on whether or not the browser is archaic (and let's face it, most people nowadays seem to be running at least version 4 of either IE or Netscape), it's something that can't be turned off (at least to my knowledge, I could be wrong) and workarounds can be supplied for instances when the browser doesn't accept the tag. This doesn't hinder programming too much, as you don't have to worry about sending output after headers, nor whether or not the browser has javascript enabled. Personally, I prefer to use the header() function, and it's ages since I've used this meta tag, though it's worth keeping in mind that old techniques can still be useful ;) META HTTP-EQUIV=Refresh CONTENT=1;url=page.php James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] crypt() and md5
Hello, If your system's crypt() function supports standard DES crypt, then that will be the default if you do not supply a salt. PHP will generate a random DES salt for you. If you supply your own random MD5 salt and your system's crypt() function supports MD5, then it will generate an md5-encrypted string. That's just the way it works. Thanks, i reread the english documentation and there it's also explained this way. But my german documentation says 'If no salt is supplied crypt() will use a 2 chars des-salt per default unless md5 exists on your system. PHP will then generate randomly a md5-salt.'. A bit mistakable I think. I'll give the translator a wink. Thanks again and best regards Niklas Neumann -- PHP General Mailing List (http://www.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 23 Apr 2001 09:53:51 -0000 Issue 644
php-general Digest 23 Apr 2001 09:53:51 - Issue 644 Topics (messages 49766 through 49826): Re: writing to file on server 49766 by: Adam 49767 by: Felix Kronlage Re: Link Color Questions 49768 by: Adam What's wrong with this code? 49769 by: Tyler Longren 49812 by: Alexander Wagner 49814 by: Chris Fry 49815 by: David Bouw 49821 by: Geir Eivind Mork Re: Recursive Childs 49770 by: Joe Conway is there something like get_time_limit() ? 49771 by: almir 49774 by: CC Zona PHP4 for Apache httpd-2_0_16 49772 by: The Doctor Reference to arrays 49773 by: Wayne Parrott Incrementing a String Name 49775 by: Chris Aitken 49776 by: Andreas Landmark 49781 by: Tom Rogers 49782 by: Meir kriheli 49824 by: Patrick Dunford Re: Connecting to a MS Access database 49777 by: Steve Maroney 49817 by: Geir Eivind Mork redirection to another page function 49778 by: Carlos Fernando Scheidecker Antunes 49779 by: Tyler Longren 49780 by: Jason Murray 49783 by: Christian Dechery 49784 by: Jason Murray 49786 by: Christian Dechery 49787 by: Jason Murray 49788 by: Chris Aitken 49790 by: Christian Dechery 49791 by: Jason Murray 49793 by: Chris Aitken 49794 by: Christian Dechery 49795 by: Christian Dechery 49804 by: Adam 49825 by: James Holloway Printing 49785 by: Dmitry 49789 by: Chris Anderson Counting Words In a String 49792 by: Jason Beebe 49801 by: Greg Donald 49820 by: Robert Vetter web page grab 49796 by: Ed Lazor 49797 by: Michael Hall 49798 by: Michael Hall 49799 by: nicuc.ac.jp Re: Linux Suggestion 49800 by: Jason Caldwell 49819 by: Geir Eivind Mork calculate length between date to date 49802 by: Jacky.lilst 49803 by: Jason Murray IMAP Help 49805 by: Nashirak Bosk php powered forums 49806 by: kenny.hibs 49807 by: David Robley 49811 by: Nick Terzich Remove headers and footer from printed pages. 49808 by: Dezider Góra 49809 by: Peter Houchin 49810 by: Peter Houchin Re: Where can I get php_msql.dll? 49813 by: elias crypt() and md5 49816 by: Niklas Neumann 49818 by: Rasmus Lerdorf 49822 by: Niklas Neumann 49823 by: Rasmus Lerdorf 49826 by: Niklas Neumann 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] -- chmod the file to 777, this will allow anyone write permission to the file and thus you will be able to append to the file On Sun, Apr 22, 2001 at 03:06:04PM -0700, Adam wrote: chmod the file to 777, this will allow anyone write permission to the file and thus you will be able to append to the file file-mode 777 is ugo=rwx. You want 'chmod 666', which is ugo=rw. read is 4 write is 2 execute is 1 If you want rw on the file, it's 6 not 7. -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | |all your base are belong to us | shame on me | fkr@IRCnet | # yes, make a style sheet called domain.css and put in this text: # a.domain1:link { color: #FF; } a.domain2:link { color: #FF; } a.domain3:link { color: #FF8000; } # in the head tag, be sure to add the style's location: # head link rel=stylesheet href=domain.css type=text/css /head # then inset your html on teh page as follows: # body a href=http//www.domain1.com class=domain1www.domain1.com/a a href=http//www.domain2.com class=domain2www.domain2.com/a a href=http//www.domain3.com class=domain3www.domain3.com/a /body hope this helps some :) -Adam $file = fopen(includes/about.inc, r); $data = fread($file, 2400); $stripped = stripslashes($data); $formatted_data = nl2br($stripped); echo $formatted_data; Any ideas why that doesn't work on one server but it will work on another server? The server it works on is Win2k, IIS5, php4.0.4pl1. The server it doesn't work on is Linux, Apache, php4.0.4pl1. Any ideas why this won't work? Just to be sure, I did a chmod 777 about.inc, so file permissions isn't it. Thanks everyone, Tyler Longren Tyler Longren wrote: $file = fopen(includes/about.inc, r); $data = fread($file, 2400); [..] Any ideas why that doesn't work on one server but it will work on another
[PHP] Why is it dangerous to have register_globals on?
I have read in several places that is dangerous to have register_globals on, but I have not understood the (short) explanations given. Can anyone enlighten me? Euan Greig Technical Consultant BRANN DATA [EMAIL PROTECTED] 01285 645997 ** Any opinions expressed in this email are those of the individual and not necessarily the Company. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from the Company, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Sydney meeting for April
Hello PHPers, The next PHP Sydney User Group meeting is tomorrow night Tuesday April 24, 2001 Starts at 7:00pm At Greythorn Pty Ltd Level 7 50 Margaret Street Sydney NSW 2000 Just around the corner from Wynyard. If you arrive before 6:00pm, just walk in. Between 6:00pm and 7:00pm, someone will meet you in the foyer and take you up to the 7th floor. Star of the evening is Nathan Wallace fresh from ApacheCon 2001 in Santa Clara. Please reply with a definite yes or no so Greythorn can arrange everything. If you cannot make Tuesday nights, Please nominate another night. Let other PHP users know about the meeting and send mailing list updates to [EMAIL PROTECTED] Greythorn are providing the premises, a projector, tea and coffee. HelpNet are providing chocolate cookies. Peter -- PHP General Mailing List (http://www.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] crypt() and md5
Hello again, [...] A bit mistakable I think. I'll give the translator a wink. ... if i can find a way to contact him. Anybody knows how to get a contact for the german translation of the PHP documentation? Their names are listed on the front page of the manual but no email addresses. Niklas Neumann -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP Help
Hi, imap_createmailbox() does not ceate a real new unix account. It creates a folder (speaking in Win terms, but rather mailbox) inside an account. Like Trash, Drafts etc. Physicly a file is created for each mailbox in the users home dir. And there is one default mailbox INBOX, where all the delivered mail is put. Now adding new mail user is very tricky part. You can do it by either creating a new unix accouont by some means, either running an appropriate mail server, which would have it's own internal system of mail accounts (sorry, but I don't recal which servers have such system). Sigitas Paulavicius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: php-general Digest 23 Apr 2001 09:53:51 -0000 Issue 644
I would like to separate the php errors generated by my scripts (quite a lot unfortunately) from my apache log files, but can't seem to get this to work. If this is a frequent question, please let me know a good place to search the mailing list and I promise I'll do. Here's what I do: In php.ini: ;; ; Error handling and logging ; ;; error_reporting = E_ALL ; Show all errors log_errors = On error_log = /logs/php.err ; log errors to specified file the logs directory is writable by the www user, which is the uid that apache runs as. Please copy me in your answer, as i only subscribe to the digest. thanks, .ps -- PHP General Mailing List (http://www.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 / sql help plz!
i have this table: - Id Value -- -- a a a b a c a d b a b b b c b d c a c b how can i get an SQL statment that when run, i get a query result like that: Id: Value count: --- -- a4 values b4 values c2 values i feel that it's easy...but i'm not really good at SQL. -elias http://eassoft.cjb.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] how do I do this
Hi, I have the following script. What I want is that when I select the country the corresponding cities should only be listed in the second dropdown box. Can some one guide me. Right below is my table structure. $searchStmt = select name from airlines group by name order by name ; #$searchStmt1 = select * from destinazione order by name ; $searchStmt1 = select * from country order by country; $searchStmt2 = select name from airport group by name order by name ; $searchStmt3 = select * from city order by city; // connect to the db if (!($link = mysql_pconnect($db_server, $db_login, $db_passwd))){ DisplayErrMsg(sprintf(internal error %d:%s\n, mysql_errno(), mysql_error())); exit() ; } // Selct the db if (!mysql_select_db($db, $link)) { DisplayErrMsg(sprintf(Error in selecting %s db, $db)) ; DisplayErrMsg(sprintf(error:%d %s, mysql_error($link), mysql_error($link))) ; exit(); } // Execute the Statement for compagnia_aerea if (!($result = mysql_query($searchStmt, $link))) { DisplayErrMsg(sprintf(Error in executing %s stmt, $searchStmt)); DisplayErrMsg(sprintf(error:%d %s, mysql_errno($link), mysql_error($link))); exit(); } // Execute the Statement for destinazione/Country if (!($result1 = mysql_query($searchStmt1, $link))) { DisplayErrMsg(sprintf(Error in executing %s stmt, $searchStmt1)); DisplayErrMsg(sprintf(error:%d %s, mysql_errno($link), mysql_error($link))); exit(); } // Execute the Statement for airports if (!($result2 = mysql_query($searchStmt2, $link))) { DisplayErrMsg(sprintf(Error in executing %s stmt, $searchStmt2)); DisplayErrMsg(sprintf(error:%d %s, mysql_errno($link), mysql_error($link))); exit(); } // Execute the Statement for city if (!($result3 = mysql_query($searchStmt3, $link))) { DisplayErrMsg(sprintf(Error in executing %s stmt, $searchStmt3)); DisplayErrMsg(sprintf(error:%d %s, mysql_errno($link), mysql_error($link))); exit(); } $num = mysql_numrows($result); include(header.php); ? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN body TEXT=#ff bgcolor=white h1 ALIGN=CENTERfont SIZE=5 FACE=ArialOFFERTE VOLI ENTRATA DATI/font/h1 form ACTION=flight.php METHOD=POST table WIDTH=100% BORDER=1 CELLPADDING=2 CELLSPACING=3 COL WIDTH=59* removed some lines to shorten the mail tr td WIDTH=22%font SIZE=2 FACE=ArialDESTINAZIONE/font/td td WIDTH=55%input type=radio name=ndest value=n checkedselect NAME=destinazione ?php $i=0; while($row1 = mysql_fetch_object($result1)) { // Display records for destinazione/Country echo(option value=$row1-contid $row1-country); } ? /select select name=city ?php while($row3 = mysql_fetch_object($result3)) { // Display records for city echo(option value=$row3-id$row3-city); } ? === Tables Structures == city | id| int(5) | | PRI | | auto_increment | | city | varchar(35) | | MUL | || | countryid | int(5) country | id | int(5) | | PRI | | auto_increment | | country | varchar(35) | | MUL | || | contid | int(5) flight | id| int(11) | | PRI | | auto_increment | compagnia_aerea | varchar(255) | YES | | | | contid| int(5) | | | 0 | | cityid| int(5) | | | 0 | | airport | varchar(40) | | | | | partenza | date | YES | | | | valido_fino | date | YES | | | | prezzo_pubblicato | varchar(255) | YES | | | | curr2 | char(3) | YES | | | | prezzo_offerta| varchar(255) The contid field in the country table holds unique ids for each country. The city.id holds unique ids for each city and is linked to the country table with the countryid. The flight.contid and flight.cityid holds values of the the country and city tables. TIA Adrian -- PHP General Mailing List (http://www.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 / sql help plz!
that would be: select Id, count(*) from sometable group by Id Sigitas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] reading apache log into MySQL
hi.. annybody know how i could read the apache logfile into mysql ? my problems is that i dont find anny reasonable field limiters... like first it uses then it uses \ then again if i would do a explode on it destroys the get index.php markus -- ~~~ Markus Maussner Application Development and Operations DISTEFORA Mobile (Germany) GmbH Amsinckstrasse 69 D-20097 Hamburg T: +49 (0) 40 80 80 99 - 904 F: +49 (0) 40 80 80 99 - 502 E: [EMAIL PROTECTED] W: www.distefora.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] gd-jpeg-support and php-3.0.18
Hi, on one of our Ultra-sparc boxes I need to get php-3.0.18 and gd 1.8.4 running together smoothly. I compiled gd lib from scratch (Version: 1.8.4) to have jpeg-support. Following lines come out of the Makefile for gd: | CFLAGS=-O -DHAVE_LIBJPEG -DHAVE_LIBPNG | LIBS=-lgd -ljpeg -lpng -lz -lm This should enable jpeg-support for it. the compiling of gd runs just fine. Now, the ./configure for php-3.0.18 comes, I use following ./configure-args: | ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning |--with-mysql --with-gd --with-jpeg-dir and during the configure it's saying the following: | checking for compress in -lz... (cached) yes | checking for png_info_init in -lpng... (cached) yes | checking for gdImageCreateFromPng in -lgd... (cached) yes | checking for libjpeg (needed by gd-1.8+)... yes | checking for jpeg_read_header in -ljpeg... (cached) yes | checking for gdImageCreateFromJpeg in -lgd... (cached) no | checking for gdImageCreateFromGif in -lgd... (cached) no | checking for gdImageLzw in -lgd... (cached) no | checking for gdImageColorResolve in -lgd... (cached) yes | checking for gdImageString16 in -lgd... (cached) yes Somehow, there is no support for gdImageCreateFromJpeg detected... any hints? -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | |all your base are belong to us | shame on me | fkr@IRCnet | -- PHP General Mailing List (http://www.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/oci8 oci8.c
thies Mon Apr 23 04:54:02 2001 EDT Modified files: /php4/ext/oci8 oci8.c Log: fixed ZTS buidl - still some WS pollution left Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.118 php4/ext/oci8/oci8.c:1.119 --- php4/ext/oci8/oci8.c:1.118 Thu Apr 19 15:00:34 2001 +++ php4/ext/oci8/oci8.cMon Apr 23 04:54:02 2001 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: oci8.c,v 1.118 2001/04/19 22:00:34 jason Exp $ */ +/* $Id: oci8.c,v 1.119 2001/04/23 11:54:02 thies Exp $ */ /* TODO list: * @@ -584,7 +584,7 @@ php_info_print_table_start(); php_info_print_table_row(2, OCI8 Support, enabled); - php_info_print_table_row(2, Revision, $Revision: 1.118 $); + php_info_print_table_row(2, Revision, $Revision: 1.119 $); #ifndef PHP_WIN32 php_info_print_table_row(2, Oracle Version, PHP_OCI8_VERSION ); php_info_print_table_row(2, Compile-time ORACLE_HOME, PHP_OCI8_DIR ); @@ -1314,7 +1314,6 @@ int dtype; dvoid *buf; oci_descriptor *descr; - OCILS_FETCH(); statement-error = oci_error(statement-pError, @@ -4337,6 +4336,7 @@ int inx; double ndx; ub4 loblen; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -4445,6 +4445,7 @@ int ocifmt_len; char *ocilang; int ocilang_len; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -4538,6 +4539,7 @@ int ocifmt_len; char *ocilang; int ocilang_len; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -4637,6 +4639,7 @@ int ocifmt_len; char *ocilang; int ocilang_len; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -4724,6 +4727,7 @@ char buff[1024]; int len; double dnum; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -4809,6 +4813,7 @@ text *str; char buff[1024]; double dnum; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -4858,6 +4863,7 @@ text *str; char buff[1024]; double dnum; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -4964,6 +4970,7 @@ oci_collection *coll; sb4 sz; int inx; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -4986,6 +4993,7 @@ oci_collection *coll; sb4 sz; int inx; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -5008,6 +5016,7 @@ oci_collection *coll; sb4 sz; int inx; + OCILS_FETCH(); if ((id = getThis()) != 0) { if ((inx = _oci_get_ocicoll(id,coll)) == 0) { @@ -5041,8 +5050,8 @@ oci_connection *connection; oci_collection *coll; OCISvcCtx *svchp = 0; - int dtype; + OCILS_FETCH(); dtype = OCI_DTYPE_LOB; -- 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] if... then... else with HTML
Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.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] if... then... else with HTML
Ah, I forgott the {} ;-) ?php if(strstr($HTTP_USER_AGENT,MSIE)) { ? centerbYou are using Internet Explorer/b/center ? } else { ? centerbYou are not using Internet Explorer/b/center ? } ? Martin Thoma schrieb: Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.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] if... then... else with HTML
?php if (condition) { ? HTML ?php { else { ? HTML ?php } ? -Stewart -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: 23 April 2001 13:41 To: [EMAIL PROTECTED] Subject: [PHP] if... then... else with HTML Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.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] if... then... else with HTML
On Monday 23 April 2001 14:41, Martin Thoma wrote: if ($word != flat) { echo OUT lot of crap with 's and stories about your mom OUT; } else { echo OUT do the same OUT; } remember not to have anything before or after OUT (or whatever other text you use instead of OUT) or you get prase errors. Or the html/php switiching way, a fraction slower after my tests :) ?if ($world != flat) {? html ?} else {? html ?]? -- php developer / CoreTrek AS| I judge a religion as being good or bad Sandnes / Rogaland / Norway| based on whether its adherents become web: http://www.moijk.net/ | better people as a result of practicing -- PHP General Mailing List (http://www.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] if... then... else with HTML
? if (condition) { ? 1st HTML here ? } else { ? 2nd HTML here ? } ? -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 7:41 AM To: [EMAIL PROTECTED] Subject: [PHP] if... then... else with HTML Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.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] if... then... else with HTML
Something like this: ?php if (condition) { ? output this html-block ?php } else { ? output that html-block ?php } ? Regards, Avetis Martin Thoma wrote: Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] ICT Specialist UNDP, Armenia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-CVS] cvs: php4 /ext/ccvs ccvs.c
Are you sure this patch is right? It seems a bit odd. You shouldn't really have NULL pointers in strings which are passed to convert_to_string_ex(). Andi At 11:40 PM 4/22/2001 +, Sterling Hughes wrote: sterlingSun Apr 22 16:40:34 2001 EDT Modified files: /php4/ext/ccvs ccvs.c Log: Fix bug #10447. Index: php4/ext/ccvs/ccvs.c diff -u php4/ext/ccvs/ccvs.c:1.13 php4/ext/ccvs/ccvs.c:1.14 --- php4/ext/ccvs/ccvs.c:1.13 Sun Feb 25 22:06:48 2001 +++ php4/ext/ccvs/ccvs.cSun Apr 22 16:40:34 2001 @@ -17,7 +17,7 @@ +--+ */ /* -* cvvs.c $Revision: 1.13 $ - PHP4 Interface to the RedHat CCVS API +* cvvs.c $Revision: 1.14 $ - PHP4 Interface to the RedHat CCVS API * --- * Interfaces RedHat's CCVS [Credit Card Verification System] http://www.redhat.com/products/ccvs/ * This code is ported from an original php3 interface written by RedHat's Doug DeJulio [EMAIL PROTECTED] @@ -27,10 +27,10 @@ /* * Code started on [EMAIL PROTECTED] by Brendan W. McAdams [EMAIL PROTECTED] -* $Revision: 1.13 $ +* $Revision: 1.14 $ */ -static char const cvsid[] = $Id: ccvs.c,v 1.13 2001/02/26 06:06:48 andi Exp $; +static char const cvsid[] = $Id: ccvs.c,v 1.14 2001/04/22 23:40:34 sterling Exp $; #include php.h #include stdlib.h @@ -193,6 +193,11 @@ } convert_to_string_ex(psess); + if (!Z_STRVAL_PP(psess)) { +php_error(E_WARNING, Invalid session to ccvs_new()); +RETURN_FALSE; + } + sess = hks_ptr_stringtoptr((*psess)-value.str.val); convert_to_string_ex(pinvoice); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
SV: [PHP] if... then... else with HTML
I hope I understood your question right. You can do like this ?php if () { ? bhtml text/b ?php else { ? bother html/b ?php } ? -Ursprungligt meddelande- Fran: Martin Thoma [mailto:[EMAIL PROTECTED]] Skickat: den 23 april 2001 14:41 Till: [EMAIL PROTECTED] Amne: [PHP] if... then... else with HTML Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.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] if... then... else with HTML
yes, consider this: html body ? if (isset($name)) { ? your name is ?=$name? ? } else { ? h1name is not set!/h1 ? } ? /body /html -elias http://eassoft.cjb.net Martin Thoma [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.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] Connecting to a MS Access database
Actually, I must put my .02 in again. ODBC is not by nature slow. Some implementations of ODBC are indeed slow, especially the ones that are additional abstraction layers on top of a native driver, but other ODBC drivers (OpenLink's included) can bypass the native networking layer, producing a connection that is as fast and in some cases far faster than the native driver. Not that the speed would be an issue with Access, though :) I agree fully with Geir - install a full-fledged multi-user database. If you are looking for another 'free' one, try Virtuoso http://www.openlinksw.com/virtuoso It is a fully functional SQL92 db and comes with a free 2 user license - enough to give you the same scalability as Access and you have the option of upgrading it's license later. It works quite well as a backend for PHP, and also lets you link other databases transparently through it (so you can access multiple database schemas as if they are a single local schema). Best regards, Andrew -- Andrew Hill - OpenLink Software Director Technology Evangelism Universal Data Access Integration http://www.openlinksw.com -Original Message- From: Geir Eivind Mork [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 4:07 AM To: Steve Maroney; Andrew Hill Cc: Søren Soltveit; [EMAIL PROTECTED] Subject: Re: [PHP] Connecting to a MS Access database On Sunday 22 April 2001 22:02, Steve Maroney wrote: This brings up a question that I always wondered. Does Access have server functionality? Where do you configure these settings ? If you go over the menuchoice - file, shake your mouse, bite in the cord, slam your head in the monitor fifteen times and then trow a bucket of water over your computer a new option called 'server' comes up. if not, repeat the steps. Or install a database server. when using ex. asp towards an accessbase it's odbc that deals with the communication. it's slow, it's a bottleneck.. but it works :) -- php developer / CoreTrek AS| Thus spake the master programmer: Sandnes / Rogaland / Norway| After three days without programming, web: http://www.moijk.net/ | life becomes meaningless. -- Geoffrey -- PHP General Mailing List (http://www.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] logging in (online?!)
Hi! I have users logging in on my site (they write news).. What is the best way to show how's online? Write to MySQL (last logged in) ? Somehow use the sessions to this ? - Fredrik A. Takle [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] 'XML To Array' Class
Hello, I'm new to using XML with PHP, but I think I've got it figured out for the most part. I have created a class that reads in an XML file and returns the data it finds to an array, but I'm running into a problem because the array keeps coming back empty. Would you mind taking a moment to see where I'm going wrong? file.xml === ARTICLE URL/article1.html/URL TITLEArticle 1/TITLE /ARTICLE ATRICLE URL/article2.html/URL TITLEArticle 2/TITLE /ATRICLE xml.class.php === ? class eXML { var $Parser; var $theArray; var $theArrayTopElement; var $theArrayElements; var $theArrayPointer; var $theArrayGetElement; function eXML($_PARENT_, $_CHILDREN_) { $this-Parser = xml_parser_create(ISO-8859-1); xml_set_object($this-Parser, $this); xml_set_element_handler($this- Parser, Tag_Open, Tag_Close); xml_set_character_data_handler($this- Parser, CData); $this-theArray = array(); $this-theArrayPointer = 0; $this-theArrayGetElement = NULL; $this-theArrayTopElement = $_PARENT_; $this-theArrayElements = $_CHILDREN_; } function Free() { xml_parser_free($this-Parser); } function Parse_Array($_FILE_) { $_FP_ = fopen($_FILE_, r) or die(Cannot Open XML Stream); while ($_DATA_ = fread($_FP_, 4096)) { if (!xml_parse($this-Parser, $_DATA_, feof($_FP_))) { return(FALSE); } } fclose($_FP_); var_dump($this-theArray); return($this-theArray); } function Tag_Open($_PARSER_, $_TAG_, $_ATTR_) { if ($_TAG_ == $this-theArrayTopElement) { $this-theArray[$this-theArrayPointer] = SOMETEXT; // NOT SURE IF THIS IS NECESSARY } $_ELEMENTS_ = explode(::, $this- theArrayElements); for ($I = 0; $I count($_ELEMENTS_); $I++) { if ($_TAG_ == $_ELEMENTS_[$I]) { $this-theArrayGetElement = $_ELEMENTS_[$I]; } } } function Tag_Close($_PARSER_, $_TAG_) { if ($_TAG_ == $this-theArrayTopElement) { $this-theArrayPointer++; } $this-theArrayGetElement = NULL; } function CData($_PARSER_, $_CDATA_) { if ($this-theArrayGetElement != NULL) { array_push($this-theArray, $_CDATA_); $this-theArray[$this-theArrayPointer] [$this-theArrayGetElement] = $_CDATA_; } } } ? xml.test.php === ? $XML = new eXML(ARTICLE, URL::TITLE); $ARTICLES = $XML-Parse_Array(file.xml); print_r($ARTICLES); ? What I expect to happen is this: $ARTICLES[0][URL] == /article1.html; $ARTICLES[0][TITLE] == Article 1; $ARTICLES[1][URL] == /article2.html; $ARTICLES[1][TITLE] == Article 2; But the array is empty. Thankz in advance for your help. Robert -- [ Swift eNetwork ] Matrix http://matrix.swifte.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]
Re: [PHP] MySql / sql help plz!
At 02:33 PM 4/23/01 -0700, elias wrote: how can i get an SQL statment that when run, i get a query result like that: Id: Value count: --- -- a4 values b4 values c2 values SELECT ID,COUNT(*) FROM table_name GROUP BY ID; i feel that it's easy...but i'm not really good at SQL. ..and you probably won't get better at it here. Try an SQL list or any number of online tutorials or books on SQL. - Brian - Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 [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 Error
Yeah right... Sure, we can use ob_start(), but the poster of original message apparently does not make any use of these functions , therefore his problem is easily solvable by just keeping track of output start rather then creating a whole buffering system. After all, why would you use some strange (for the poster) functions when he can just delete the space/newline after ? ? Thanks for suggesting an alternative. Maxim Maletsky www.PHPBeginner.com -Original Message- From: Jochen Kaechelin [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 6:49 PM To: Maxim Maletsky Subject: RE: [PHP] PHP Error it says that on line 15 of settings.php there's an output. you need to set cookies BEFORE any output. that's not quiet right! you can use the output buffering functions such as ob_start() to avoid this problem! -- phpArbeitsgruppe in Gruendung - Jochen Kaechelin Stuttgarter Str.3, D-73033 Goeppingen Tel. 07161-92 95 94, Fax 07161-92 95 98 http://www.php-arbeitsgruppe.de, mailto:[EMAIL PROTECTED] Emanuel.exe -- PHP General Mailing List (http://www.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] ALERTE: VIRUS DETECTE DANS UN MESSAGE ENVOYE PAR php-general-return-49852-jnapieraj=nordnet.fr@lists.php.net
A L E R T E V I R U S Notre système de détection automatique anti-virus a détecté un virus dans un message qui vous a été envoyé par jessica [EMAIL PROTECTED]. La distribution de ce message a été stoppée. Veuillez vous rapprocher de l'émetteur jessica [EMAIL PROTECTED] pour régler avec lui le problème. *** V I R U S A L E R T Our anti-virus system has detected a virus in an email sent by jessica [EMAIL PROTECTED]. We have stopped the delivery of this email. We invite you to contact jessica [EMAIL PROTECTED] to solve the 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]
Re: [PHP] 'XML To Array' Class
heey, i'm currently facing the same problem as you. i was thinking of using either xml_parse_into_struct or using a class i found phpxml.class at http://www.phpxml.org let me know how you did it, i'm very intrested Serge Zeddicus Zu'l Zorandre Vleugels -- freedom is the wizard's only choice -- On 23 Apr 2001 09:18:25 -0400, [EMAIL PROTECTED] wrote: Hello, I'm new to using XML with PHP, but I think I've got it figured out for the most part. I have created a class that reads in an XML file and returns the data it finds to an array, but I'm running into a problem because the array keeps coming back empty. Would you mind taking a moment to see where I'm going wrong? file.xml === ARTICLE URL/article1.html/URL TITLEArticle 1/TITLE /ARTICLE ATRICLE URL/article2.html/URL TITLEArticle 2/TITLE /ATRICLE xml.class.php === ? class eXML { var $Parser; var $theArray; var $theArrayTopElement; var $theArrayElements; var $theArrayPointer; var $theArrayGetElement; function eXML($_PARENT_, $_CHILDREN_) { $this-Parser = xml_parser_create(ISO-8859-1); xml_set_object($this-Parser, $this); xml_set_element_handler($this- Parser, Tag_Open, Tag_Close); xml_set_character_data_handler($this- Parser, CData); $this-theArray = array(); $this-theArrayPointer = 0; $this-theArrayGetElement = NULL; $this-theArrayTopElement = $_PARENT_; $this-theArrayElements = $_CHILDREN_; } function Free() { xml_parser_free($this-Parser); } function Parse_Array($_FILE_) { $_FP_ = fopen($_FILE_, r) or die(Cannot Open XML Stream); while ($_DATA_ = fread($_FP_, 4096)) { if (!xml_parse($this-Parser, $_DATA_, feof($_FP_))) { return(FALSE); } } fclose($_FP_); var_dump($this-theArray); return($this-theArray); } function Tag_Open($_PARSER_, $_TAG_, $_ATTR_) { if ($_TAG_ == $this-theArrayTopElement) { $this-theArray[$this-theArrayPointer] = SOMETEXT; // NOT SURE IF THIS IS NECESSARY } $_ELEMENTS_ = explode(::, $this- theArrayElements); for ($I = 0; $I count($_ELEMENTS_); $I++) { if ($_TAG_ == $_ELEMENTS_[$I]) { $this-theArrayGetElement = $_ELEMENTS_[$I]; } } } function Tag_Close($_PARSER_, $_TAG_) { if ($_TAG_ == $this-theArrayTopElement) { $this-theArrayPointer++; } $this-theArrayGetElement = NULL; } function CData($_PARSER_, $_CDATA_) { if ($this-theArrayGetElement != NULL) { array_push($this-theArray, $_CDATA_); $this-theArray[$this-theArrayPointer] [$this-theArrayGetElement] = $_CDATA_; } } } ? xml.test.php === ? $XML = new eXML(ARTICLE, URL::TITLE); $ARTICLES = $XML-Parse_Array(file.xml); print_r($ARTICLES); ? What I expect to happen is this: $ARTICLES[0][URL] == /article1.html; $ARTICLES[0][TITLE] == Article 1; $ARTICLES[1][URL] == /article2.html; $ARTICLES[1][TITLE] == Article 2; But the array is empty. Thankz in advance for your help. Robert -- [ Swift eNetwork ] Matrix http://matrix.swifte.net/ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List
Re: [PHP-CVS] Re: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h
On Sun, 22 Apr 2001, [EMAIL PROTECTED] wrote: I don't think this is wise to do. Harald put in some fixes for COM support (a lot even) and Sascha's patch will fix bugs in thttpd support. I don't think it's a prob to delay the Release another week, as it's been a very long time since php4.0.4pl1 anyway. Releases with less bugs (through the patches from Harald and Sascha) are prefered over a fast release. You can see what happens if a product is release to fast if you look at the Win* OSses. Yeah, but don't forget release early, release often saying related to open source stuff. -Andrei The secret of flying is to throw yourself at the ground, and miss. -- Douglas Adams -- 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] Getting a binary file from URL
On Sunday 22 April 2001 21:25, Sigitas Paulavicius wrote: Solution #1 $contents = fread ($pointer, 1); Solution #2 $contents=; while ($partial = fread ($pointer, 8192)) { $contents.=$partial; }; But test this before you rely on it. I once did this with (IIRC) PHP 4.0.1 and it read up to several hundred junk bytes after encountering EOF. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) World domination. Fast. (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 'XML To Array' Class (Array Problem)
I think it's important to mention that my problem is not with XML, but with my use of arrays. I have tested the variable content that comes back with XML and the data is coming through. My problem is I am not doing something right to make the data into an array... heey, i'm currently facing the same problem as you. i was thinking of using either xml_parse_into_struct or using a class i found phpxml.class at http://www.phpxml.org let me know how you did it, i'm very intrested Serge Zeddicus Zu'l Zorandre Vleugels -- freedom is the wizard's only choice -- On 23 Apr 2001 09:18:25 -0400, [EMAIL PROTECTED] wrote: Hello, I'm new to using XML with PHP, but I think I've got it figured out for the most part. I have created a class that reads in an XML file and returns the data it finds to an array, but I'm running into a problem because the array keeps coming back empty. Would you mind taking a moment to see where I'm going wrong? file.xml === ARTICLE URL/article1.html/URL TITLEArticle 1/TITLE /ARTICLE ATRICLE URL/article2.html/URL TITLEArticle 2/TITLE /ATRICLE xml.class.php === ? class eXML { var $Parser; var $theArray; var $theArrayTopElement; var $theArrayElements; var $theArrayPointer; var $theArrayGetElement; function eXML($_PARENT_, $_CHILDREN_) { $this-Parser = xml_parser_create(ISO-8859- 1); xml_set_object($this-Parser, $this); xml_set_element_handler($this- Parser, Tag_Open, Tag_Close); xml_set_character_data_handler($this- Parser, CData); $this-theArray = array(); $this-theArrayPointer = 0; $this-theArrayGetElement = NULL; $this-theArrayTopElement = $_PARENT_; $this-theArrayElements = $_CHILDREN_; } function Free() { xml_parser_free($this-Parser); } function Parse_Array($_FILE_) { $_FP_ = fopen($_FILE_, r) or die(Cannot Open XML Stream); while ($_DATA_ = fread($_FP_, 4096)) { if (!xml_parse($this-Parser, $_DATA_, feof($_FP_))) { return(FALSE); } } fclose($_FP_); var_dump($this-theArray); return($this-theArray); } function Tag_Open($_PARSER_, $_TAG_, $_ATTR_) { if ($_TAG_ == $this-theArrayTopElement) { $this-theArray[$this- theArrayPointer] = SOMETEXT; // NOT SURE IF THIS IS NECESSARY } $_ELEMENTS_ = explode(::, $this- theArrayElements); for ($I = 0; $I count($_ELEMENTS_); $I++) { if ($_TAG_ == $_ELEMENTS_[$I]) { $this-theArrayGetElement = $_ELEMENTS_[$I]; } } } function Tag_Close($_PARSER_, $_TAG_) { if ($_TAG_ == $this-theArrayTopElement) { $this-theArrayPointer++; } $this-theArrayGetElement = NULL; } function CData($_PARSER_, $_CDATA_) { if ($this-theArrayGetElement != NULL) { array_push($this-theArray, $_CDATA_); $this-theArray[$this- theArrayPointer] [$this-theArrayGetElement] = $_CDATA_; } } } ? xml.test.php === ? $XML = new eXML(ARTICLE, URL::TITLE); $ARTICLES = $XML-Parse_Array(file.xml); print_r($ARTICLES); ? What I expect to happen is this: $ARTICLES[0][URL] == /article1.html; $ARTICLES[0][TITLE] == Article 1;
[PHP] Problem with session vars !
I am having problem with PHP4 session variables. I think I misunderstood how they work, and I can't see what I'm doing wrong. Any help would be appreciated. I am using the version from EasyPhp 1.1.1. Below is a short example to explain my problem. I've got two php scripts. 'test1.php' which starts a session, set a variable $sess and register it as a session variable. It then redirects to 'test2.php' which only displays session variables and switches $sess[var1] between true and false on each call. With the code in example, I retrieve the variable set by 'test1.php' on 'test2.php', but $HTTP_SESSION_VARS['sess']['var1'] is always true. With the same code, If I set register_globals to off in my php.ini, I get the opposite. I never retrieve the variable set by 'test1.php' on 'test2.php', but $HTTP_SESSION_VARS['sess']['var1'] is switches correctly. What is wrong in this code ?? If I replace session_register('sess'); in 'test1.php' by $GLOBALS['HTTP_SESSION_VARS']['sess'] = $sess; and set register_globals to off everything works. Someone could explain to me why ?? Best regards, Nicolas File test1.php ? function initSessionVar() { global $sess; // initialise sess variable for the new session $sess = array(); $sess['user'] = test; $sess['var1'] = true; session_register('sess'); } session_start(); initSessionVar(); header('Location: http://localhost/test2.php'); exit; ? File test2.php ? session_start(); echo gettype($HTTP_SESSION_VARS['sess']) . BR; echo $HTTP_SESSION_VARS['sess']['user'] . BR; echo ($HTTP_SESSION_VARS['sess']['var1'] ? true : false); if ($HTTP_SESSION_VARS['sess']['var1']){ $HTTP_SESSION_VARS['sess']['var1'] = false; } else{ $HTTP_SESSION_VARS['sess']['var1'] = true; } ? -- PHP General Mailing List (http://www.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 file using .htaccess
thanks for that , it is working fine. keyur - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Keyur Kalaria [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Saturday, April 21, 2001 9:18 PM Subject: Re: [PHP] include file using .htaccess Make sure AllowOverride includes Options and put these lines in your .htaccess: php_value auto_prepend_file header.html php_value auto_append_file footer.html -Rasmus On Sat, 21 Apr 2001, Keyur Kalaria wrote: Hello, How can I include any html or php file via .htaccess ? I want to include an html file in a site contaning around 1000 pages. I want to add header footer dynamically on these pages . Is there any way to include header footer on these pages using .htaccess file. thanks in advance keyur $$$ -- PHP General Mailing List (http://www.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] Site Structure
Hi, I have a site structure like: - root --- includes --- admin --- images I'm using headers and footers and they are in the includes directory. My pages in the root directory include the files like: include('includes/header.inc'); Thats woprks fine, but i want to be able ti use the same headers and footers in the admin directory but, of course, the paths are going to be wrong. How can i get around this? Any ideas, Jord -- PHP General Mailing List (http://www.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] Site Structure
try include('../includes/header.inc'); Sebastián Renzi Consultoría Desarrollo de Sistemas. CODES S.A -Mensaje original- De: Jordan Elver [SMTP:[EMAIL PROTECTED]] Enviado el: lunes 23 de abril de 2001 11:56 Para: PHP General Mailing List Asunto: [PHP] Site Structure Hi, I have a site structure like: - root --- includes --- admin --- images I'm using headers and footers and they are in the includes directory. My pages in the root directory include the files like: include('includes/header.inc'); Thats woprks fine, but i want to be able ti use the same headers and footers in the admin directory but, of course, the paths are going to be wrong. How can i get around this? Any ideas, Jord -- PHP General Mailing List (http://www.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] Site Structure
Or better yet: include( $DOCUMENT_ROOT/includes/header.inc ); Martin Gottlieb -Original Message- From: Renzi, Sebastian [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:56 AM To: 'Jordan Elver'; PHP General Mailing List Subject: RE: [PHP] Site Structure try include('../includes/header.inc'); Sebastián Renzi Consultoría Desarrollo de Sistemas. CODES S.A -Mensaje original- De: Jordan Elver [SMTP:[EMAIL PROTECTED]] Enviado el: lunes 23 de abril de 2001 11:56 Para: PHP General Mailing List Asunto: [PHP] Site Structure Hi, I have a site structure like: - root --- includes --- admin --- images I'm using headers and footers and they are in the includes directory. My pages in the root directory include the files like: include('includes/header.inc'); Thats woprks fine, but i want to be able ti use the same headers and footers in the admin directory but, of course, the paths are going to be wrong. How can i get around this? Any ideas, Jord -- PHP General Mailing List (http://www.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 do this
On Mon, Apr 23, 2001 at 04:59:49PM +0530, Adrian D'Costa produced this golden nugget: Hi, I have the following script. What I want is that when I select the country the corresponding cities should only be listed in the second dropdown box. Can some one guide me. Right below is my table structure. If you want to do this with pure php you'll need to reload the page after the user selects the country from the dropdownbox, to get the webbrowser to switch the cities in the city-dropdown w/o reloading you'll need to use javascript or similar evil measures... -- Andreas D. Landmark / noXtension A physicist is an atom's way of knowing about atoms. -- George Wald -- PHP General Mailing List (http://www.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] PHP4 session management and internal HTML links
I wrote a HTML page using PHP 4.0 and its session management and I am getting very strange results. I found out that it only happens when I use href=#1. There is no problem with href=file.php#1. Original code: table width=100% tr tda href=#1Gesuchte Tauml;tigkeit/a/td tda href=#2Gesuchte Tauml;tigkeit/a/td tda href=#3Gesuchte Tauml;tigkeit/a/td /tr /table form action=bewerbung.php method=post input type=hidden name=cmd value=send input type=hidden name=login value=? echo $login; ? a name=1 Result in IE: table width=100% tr tda href= #1Gesuchte Tauml;tigkeit/a/td tda href= #2Gesuchte Tauml;tigkeit/a/td tda href= #3Gesuchte Tauml;tigkeit/a/td /tr /table form action=bewerbung.php method=post input type=hidden name=cmd value=send input type=hidden name=login value=?SID=0b04e7e464152a73d8217c244bb38626 #1Gesuchte Tauml;tigkeit/a/td tda href= #2Gesuchte Tauml;tigkeit/a/td tda href= #3Gesuchte Tauml;tigkeit/a/td /tr /table form action=bewerbung.php method=post input type=hidden name=cmd value=send input type=hidden name=login value=?SID=0b04e7e464152a73d8217c244bb38626 #2Gesuchte Tauml;tigkeit/a/td tda href= #3Gesuchte Tauml;tigkeit/a/td /tr /table form action=bewerbung.php method=post input type=hidden name=cmd value=send input type=hidden name=login value=?SID=0b04e7e464152a73d8217c244bb38626 #3Gesuchte Tauml;tigkeit/a/td /tr /table form action=bewerbung.php?SID=0b04e7e464152a73d8217c244bb38626 method=post input type=hidden name=cmd value=send input type=hidden name=login value=sdi3 a name=1 -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.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] Newbie Question
I wanted to say thanks to all those that have helped me. This is really a great language and I am doing things I never thought I'd be able to do! Now to my question: I am doing some form validation, where I check the values entered by the user. If the value is correct, I format the results and print it out. If it is not correct, I want to allow them to fix it. When I have a text field, like first_name, I'm ok. But when I do an HTML list menu, I'm having troubles. Basically, this is what I want to do. If the value is correct, print the value. If it is not correct, display the list box. Here's an example (but you can see my else statement is wrong, and this is what I need help with): if (my_type != 0){ switch($my_type){ case one: print img src=\/trillion/img/one.gif\ width=\41\ height=\26\ alt=\One\; print One; break; case two: print img src=\/trillion/img/two.gif\ width=\41\ height=\26\ alt=\Two\; print Two; break; case three: print img src=\/trillion/img/three.gif\ width=\40\ height=\26\ alt=\Three\; print Three; break; } } else { select tabindex=13 name=my_type option value=0 selectedSelect a Value/option option value=oneOne/option option value=twoTwo/option option value=threeThree/option /select } } -- PHP General Mailing List (http://www.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 ---- sort()
On Mon, Apr 23, 2001 at 08:57:21AM -0400, Scott Fletcher produced this golden nugget: I have used the PHP sort function -- sort(). When I use sort($data, NUMERIC), it sort the data by Numeric order. But it goes in ascending order. Is there a way to make it go in Descending order? Use rsort() (and if you looked at the manual, you would've found this yourself instead of posting to the list ;-) -- Andreas D. Landmark / noXtension There is no time like the present for postponing what you ought to be doing. -- PHP General Mailing List (http://www.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] Site Structure
Hi, Thanks for the reply. I can do that but then the images will not be in the correct location? Jordan On Monday 23 April 2001 15:58, you wrote: give the include() function a complete path: include '/apache/htdocs/include/yourfile.inc.php'; -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.. -- PHP General Mailing List (http://www.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] Fatal Errors and Error Handling
Hi! I am working on a project for exchanging tidal water level information, and we are exchanging information using XML over HTTP, and decided to try PHP for the job. PHP has been a good choice so far, and the project is nearly finished. But there is one problem remaining that could force us to drop PHP entirely if we do not find a good solution. And that is error handling. The standard we are using demands that all errors must be reported using a predefined XML format. The problem is that many of the errors generatet by PHP are fatal errors, so we are unable to trap them. It could have been barely acceptable to use the error_prepend_string and error_append_string from php.ini to encapsulate the error message, but the problem is that the error message contains tags for linebreak and bold (br and b), which makes it an invalid xml message, and also invalid acording to the standard we are using. And I see no reason why we should not be allowed to handle most of the fatal errors we get on our own. Especially annoying is the xslt_process() function that returns something like brbFatal error/b: XML parser error 7: mismatched tag in b/var/www/[...]. As far as I can see, this error should not be fatal. In another programming language I would expect this type of function to simply return false if there was an error of this kind. In my opinion, untrapable errors should be reserved for the case where PHP really had messed up its own internals. So I should be really grateful if someone could help us out of this one! Regards, Svein Roar Nilsen Norwegian Hydrographic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] XML/Array Class
I've narrowed down my problem... It is building the array as it should. I can print_r the results in the function CData(). However, the results are no longer then at the end of GetArray(). I'm not sure what's causing this problem... ? class eXML { var $Parser; var $theArray; var $theArrayTopElement; var $theArrayElements; var $theArrayPointer; var $theArrayGetElement; function eXML($_PARENT_, $_CHILDREN_) { $this-Parser = xml_parser_create(ISO-8859-1); xml_set_object($this-Parser, $this); xml_set_element_handler($this- Parser, Tag_Open, Tag_Close); xml_set_character_data_handler($this- Parser, CData); $this-theArray = array(); $this-theArrayPointer = 0; $this-theArrayGetElement = NULL; $this-theArrayTopElement = $_PARENT_; $this-theArrayElements = $_CHILDREN_; } function Free() { xml_parser_free($this-Parser); } function GetArray($_FILE_) { $_FP_ = fopen($_FILE_, r) or die(Cannot Open XML Stream); while ($_DATA_ = fread($_FP_, 4096)) { if (!xml_parse($this-Parser, $_DATA_, feof($_FP_))) { return(FALSE); } } fclose($_FP_); //print_r($this-theArray);~~ shows empty array return($this-theArray); } function Tag_Open($_PARSER_, $_TAG_, $_ATTR_) { $_ELEMENTS_ = explode(::, $this- theArrayElements); for ($I = 0; $I count($_ELEMENTS_); $I++) { if ($_TAG_ == $_ELEMENTS_[$I]) { $this-theArrayGetElement = $_ELEMENTS_[$I]; } } } function Tag_Close($_PARSER_, $_TAG_) { if ($_TAG_ == $this-theArrayTopElement) { $this-theArrayPointer++; } $this-theArrayGetElement = NULL; } function CData($_PARSER_, $_CDATA_) { if ($this-theArrayGetElement != NULL) { $this-theArray[$this-theArrayPointer] [$this-theArrayGetElement] = $_CDATA_; //print_r($this-theArray); --- shows the multi-dimentional array } } } ? -- [ Swift eNetwork ] Matrix http://matrix.swifte.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]
RE: [PHP] Site Structure
I would suggest putting your includes out of the web tree. /.../website/htdocs/admin /.../website/htdocs/images /.../website/includes This may be totally inappropriate for now, but is a good habit to get into. Call the includes with the full pathname. I know this stinks, but is a good solution if you define most of your path with a variable. -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:56 AM To: PHP General Mailing List Subject: [PHP] Site Structure Hi, I have a site structure like: - root --- includes --- admin --- images I'm using headers and footers and they are in the includes directory. My pages in the root directory include the files like: include('includes/header.inc'); Thats woprks fine, but i want to be able ti use the same headers and footers in the admin directory but, of course, the paths are going to be wrong. How can i get around this? Any ideas, Jord -- PHP General Mailing List (http://www.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] Newbie Question
You've got some typo's if (my_type != 0){ -- if ($my_type != 0) { Plus you forgot to use the print function (or to turn off php ?) to output the Select HTML. -Stewart -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: 23 April 2001 16:15 To: [EMAIL PROTECTED] Subject: [PHP] Newbie Question I wanted to say thanks to all those that have helped me. This is really a great language and I am doing things I never thought I'd be able to do! Now to my question: I am doing some form validation, where I check the values entered by the user. If the value is correct, I format the results and print it out. If it is not correct, I want to allow them to fix it. When I have a text field, like first_name, I'm ok. But when I do an HTML list menu, I'm having troubles. Basically, this is what I want to do. If the value is correct, print the value. If it is not correct, display the list box. Here's an example (but you can see my else statement is wrong, and this is what I need help with): if (my_type != 0){ switch($my_type){ case one: print img src=\/trillion/img/one.gif\ width=\41\ height=\26\ alt=\One\; print One; break; case two: print img src=\/trillion/img/two.gif\ width=\41\ height=\26\ alt=\Two\; print Two; break; case three: print img src=\/trillion/img/three.gif\ width=\40\ height=\26\ alt=\Three\; print Three; break; } } else { select tabindex=13 name=my_type option value=0 selectedSelect a Value/option option value=oneOne/option option value=twoTwo/option option value=threeThree/option /select } } -- PHP General Mailing List (http://www.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] if... then... else with HTML
Alternatively, and this is what I would do because it would be easier to maintain should you want to change the content later on, you could use includes as per the following: ?php print(html\nhead\ntitleTry This/title\n/head\nbody\n); if(condition) include(html_block_1.html); else include(html_block_2.html); print(/body\n/html); ? I suppose it would depend on how big your HTML blocks are. Either way -- using includes or using the method below -- will work, and with neither method will you have to escape out your special characters. Original Message On 4/23/01, 3:59:41 PM, elias [EMAIL PROTECTED] wrote regarding Re: [PHP] if... then... else with HTML: yes, consider this: html body ? if (isset($name)) { ? your name is ?=$name? ? } else { ? h1name is not set!/h1 ? } ? /body /html -elias http://eassoft.cjb.net Martin Thoma [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.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] Newbie Question
Stewart- Thanks a great deal It works now. Wade Taylor, Stewart [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You've got some typo's if (my_type != 0){ -- if ($my_type != 0) { Plus you forgot to use the print function (or to turn off php ?) to output the Select HTML. -Stewart -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: 23 April 2001 16:15 To: [EMAIL PROTECTED] Subject: [PHP] Newbie Question I wanted to say thanks to all those that have helped me. This is really a great language and I am doing things I never thought I'd be able to do! Now to my question: I am doing some form validation, where I check the values entered by the user. If the value is correct, I format the results and print it out. If it is not correct, I want to allow them to fix it. When I have a text field, like first_name, I'm ok. But when I do an HTML list menu, I'm having troubles. Basically, this is what I want to do. If the value is correct, print the value. If it is not correct, display the list box. Here's an example (but you can see my else statement is wrong, and this is what I need help with): if (my_type != 0){ switch($my_type){ case one: print img src=\/trillion/img/one.gif\ width=\41\ height=\26\ alt=\One\; print One; break; case two: print img src=\/trillion/img/two.gif\ width=\41\ height=\26\ alt=\Two\; print Two; break; case three: print img src=\/trillion/img/three.gif\ width=\40\ height=\26\ alt=\Three\; print Three; break; } } else { select tabindex=13 name=my_type option value=0 selectedSelect a Value/option option value=oneOne/option option value=twoTwo/option option value=threeThree/option /select } } -- PHP General Mailing List (http://www.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] print and echo
What's the difference between these two and is there a preference in which one to use? -Wade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] print and echo
This has been answered several times I think check here http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 CAA -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:43 AM To: [EMAIL PROTECTED] Subject: [PHP] print and echo What's the difference between these two and is there a preference in which one to use? -Wade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newbie Question
On Monday 23 April 2001 17:34, Taylor, Stewart wrote: You've got some typo's if (my_type != 0){ -- if ($my_type != 0) { if ($my_type) if it's a check if it's true, not-equal-ing it to string 0 is a ugly way to do it. just my two cents. -- php developer / CoreTrek AS| Forest fires cause Smokey Bears. Sandnes / Rogaland / Norway| web: http://www.moijk.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]
Re: [PHP] print and echo
Thank you! Angerer, Chad [EMAIL PROTECTED] wrote in message 9E35C54B0C7AD411B5C1009027DE539940B5ED@MSPMX01">news:9E35C54B0C7AD411B5C1009027DE539940B5ED@MSPMX01... This has been answered several times I think check here http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 CAA -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:43 AM To: [EMAIL PROTECTED] Subject: [PHP] print and echo What's the difference between these two and is there a preference in which one to use? -Wade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.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] anyone know of a dicitionary for bad site content?
For example, lets say you had a tool site. You wanted a standard dictionary to compare incoming user supplied content against to prevent stuff like, Sadomasochist implements, F**K YOU!, This site is a pieces of 'merde' etcetera out. -- PHP General Mailing List (http://www.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] Fatal Errors and Error Handling
On Monday 23 April 2001 17:29, Svein Roar Nilsen wrote: And I see no reason why we should not be allowed to handle most of the fatal errors we get on our own. Especially annoying is the xslt_process() function that returns something like brbFatal error/b: XML parser error 7: mismatched tag in b/var/www/[...]. As far as I can see, this http://www.php.net/manual/en/features.error-handling.php have you taken a deeper look into this? beside, use @ in front of the command to pipe away the current error or stop on-screen display of errors in general. -- php developer / CoreTrek AS| Only God can make random selections. Sandnes / Rogaland / Norway| web: http://www.moijk.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] Building as an Apache module
Hi, I am running Apache on win 2000 and when I configured PHP it automatically installed as a CGI binary. Is there any way I can install it as an Apache Module on win 2000 machine. Thanks for your help, Hasan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Apache, PHP, Windows XP, MSIE 6, Cheese, and Cookies.
Choose a flavor of linux, format your HD, install, and run the that server like it was meant to run. If you don't want to kill your Windooz, you could do a dualinstall. I'm not sure it will run with XP.. never seen XP.. hope it stays that way :-) But with W95 it runs like a dream. Or.. use a cheap Celeronbased computer and create your own in-house testbed server.. For most people even an old 486 or Pentium might do the job.. Bye, B. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] XML/Array Class (Possible Bug??)
I decided to take my class and just turn it into some functions. It works perfectly. I did not change any code except for removing the class declaration and getting rid of the $this- statements. I believe that maybe my problem has to do with the use of xml_set_object() making a reference to $this: xml_set_object($this-Parser, $this); If this is the case, I'm not sure why it would show the correct results in CData() but not at the end of GetArray(), but that's the only thing I can think the problem may be. Below is a copy of my code just as seperate functions. The code works perfectly. I *really* wish I could find out why this won't work as a class though... ? function GetArray($_FILE_) { global $Parser, $theArrayTopElement, $theArrayElements, $theArrayPointer, $theArrayGetElement, $theArray; $theArray = array(); $_FP_ = fopen($_FILE_, r) or die(Cannot Open XML Stream); while ($_DATA_ = fread($_FP_, 4096)) { if (!xml_parse($Parser, $_DATA_, feof($_FP_))) { return(FALSE); } } fclose($_FP_); return($theArray); } function Tag_Open($_PARSER_, $_TAG_, $_ATTR_) { global $Parser, $theArrayTopElement, $theArrayElements, $theArrayPointer, $theArrayGetElement, $theArray; $_ELEMENTS_ = explode(::, $theArrayElements); for ($I = 0; $I count($_ELEMENTS_); $I++) { if ($_TAG_ == $_ELEMENTS_[$I]) { $theArrayGetElement = $_ELEMENTS_[$I]; } } } function Tag_Close($_PARSER_, $_TAG_) { global $Parser, $theArrayTopElement, $theArrayElements, $theArrayPointer, $theArrayGetElement, $theArray; if ($_TAG_ == $theArrayTopElement) { $theArrayPointer++; } $theArrayGetElement = NULL; } function CData($_PARSER_, $_CDATA_) { global $Parser, $theArrayTopElement, $theArrayElements, $theArrayPointer, $theArrayGetElement, $theArray; if ($theArrayGetElement != NULL) { $theArray[$theArrayPointer] [$theArrayGetElement] = $_CDATA_; } } $theArrayTopElement = ARTICLE; $theArrayElements = URL::TITLE; $theArrayPointer = 0; $theArrayGetElement = NULL; $Parser = xml_parser_create(ISO-8859-1); xml_set_element_handler($Parser, Tag_Open, Tag_Close); xml_set_character_data_handler($Parser, CData); $NEWS = GetArray(myfile.xml); print_r($NEWS); ? -- PHP General Mailing List (http://www.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] Building as an Apache module
Download the larger Windows binary zip from the php downloads page - that includes the Apache module. 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] anyone know of a dicitionary for bad site content?
On Monday 23 April 2001 17:57, Dennis Gearon wrote: For example, lets say you had a tool site. You wanted a standard dictionary to compare incoming user supplied content against to prevent stuff like, Sadomasochist implements, F**K YOU!, This site is a pieces of 'merde' etcetera out. Be very careful with this. IIRC CyberPatrol blocks most german students because their email adresses contain such a nasty word: [EMAIL PROTECTED] contains stud. Of course that's because it's used as short version of student in this context, but how can a filter differentiate between that and the sex bomb meaning? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle computers, and many do. -- PHP General Mailing List (http://www.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] Cannot remove module mod_php4.c: not found in module list
Hello i have a big problem and find no answer In /var/log/httpd/error_log if have this error Cannot remove module mod_php4.c: not found in module list i installed three times the php4.0.4 no problems with configure; make; make install but if i would start the apache i get this error gruß snooter -- PHP General Mailing List (http://www.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] Cannot remove module mod_php4.c: not found in module list
i have a big problem and find no answer In /var/log/httpd/error_log if have this error Cannot remove module mod_php4.c: not found in module list i installed three times the php4.0.4 no problems with configure; make; make install but if i would start the apache i get this error What configure flags did you use? (see your config.nice file) What does httpd -l show? The easy fix is to get rid of your ClearModuleList directive in your httpd.conf file and remove all the AddModule lines. Unless you are doing something really complex, there is no need for these. -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] Site Structure
Jordan, Not true. If you make your PHP includes look like this: include($DOCUMENT_ROOT/includes/header.inc); Then you can make your image calls with an absolute URL like this: img src=/images/image.gif width=10 height=10 border=0 Also, it's not a good idea to use the .inc extension unless you've associated it with PHP. The reason is if I type the URL directly to /includes/header.inc I will get the source code for that file in text format. However, if you named it header.inc.php it will still follow an intelligent naming convention, but will still get interpreted if someone tries to access it directly. This will most likely result in an error or will just display a blank page depending on what your header file does. Either way it doesn't open your source code up to anonymous users. This is why Martin is suggesting you to store your include files outside of the root web directory so people can't directly access your source code. So either do what I've suggested or do what Martin suggested, but it is definitely worth the effort to do one of the two. --Toby - Original Message - From: Jordan Elver [EMAIL PROTECTED] To: Ben Cairns [EMAIL PROTECTED] Cc: PHP General Mailing List [EMAIL PROTECTED] Sent: Monday, April 23, 2001 11:28 AM Subject: Re: [PHP] Site Structure Hi, Thanks for the reply. I can do that but then the images will not be in the correct location? Jordan On Monday 23 April 2001 15:58, you wrote: give the include() function a complete path: include '/apache/htdocs/include/yourfile.inc.php'; -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.. -- PHP General Mailing List (http://www.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] Associative arrays in strings
We have an array: $myArray = array( joe=bob, this=that ); I know that technically, you shouldn't do the following to print it out: echo Here is a $string, $myArray[joe] with $alot of PHP $variables; If you have the highest error level on, PHP will display an error though if you don't, it makes some assumptions for you and goes on it's merry way. Now, supposing you do have error level set to very high, you cannot do this: echo Here is a $string, $myArray['joe'] with $alot of PHP $variables; (using single quotes) to stop the error. You actually have to do this: echo Here is a $string, . $myArray[joe] . with $alot of PHP $variables; While that works, it makes the code look very fragmented. And if you have *alot* of stuff like that all over your page, it could get very difficult to read. First question: Why doesn't the single quote example work? Second question: Is there any other way (aside from setting the error level down; we are already doing that and these questions are purely academic) to do this so the code doesn't look as fragmented? Chris
[PHP] compiling with stronghold
Anyone know of docs in place for compiling php4 under stronghold? Its apache based, however I was hoping that someone had put some doc into place specific to this webserver. Thanks- charles -- PHP General Mailing List (http://www.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] Site Structure
Hi, Also, it's not a good idea to use the .inc extension unless you've associated it with PHP. The reason is if I type the URL directly to /includes/header.inc I will get the source code for that file in text format. you don't have to keep your .inc files in the web server document root folder at all... Rgds, Tfr --== [EMAIL PROTECTED] == MySQL development team == Tallinn / Estonia ==-- -- PHP General Mailing List (http://www.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] Site Structure
At 01:12 PM 4/23/2001, Toby Miller wrote: personally i deny all access to my .inc files. with this Apache config... works really good :-) in httpd.conf # The following prevents .inc file from being read by web clients Files ~ .inc Order allow,deny Deny from all /Files ~kurth Jordan, Not true. If you make your PHP includes look like this: include($DOCUMENT_ROOT/includes/header.inc); Then you can make your image calls with an absolute URL like this: img src=/images/image.gif width=10 height=10 border=0 Also, it's not a good idea to use the .inc extension unless you've associated it with PHP. The reason is if I type the URL directly to /includes/header.inc I will get the source code for that file in text format. However, if you named it header.inc.php it will still follow an intelligent naming convention, but will still get interpreted if someone tries to access it directly. This will most likely result in an error or will just display a blank page depending on what your header file does. Either way it doesn't open your source code up to anonymous users. This is why Martin is suggesting you to store your include files outside of the root web directory so people can't directly access your source code. So either do what I've suggested or do what Martin suggested, but it is definitely worth the effort to do one of the two. --Toby - Original Message - From: Jordan Elver [EMAIL PROTECTED] To: Ben Cairns [EMAIL PROTECTED] Cc: PHP General Mailing List [EMAIL PROTECTED] Sent: Monday, April 23, 2001 11:28 AM Subject: Re: [PHP] Site Structure Hi, Thanks for the reply. I can do that but then the images will not be in the correct location? Jordan On Monday 23 April 2001 15:58, you wrote: give the include() function a complete path: include '/apache/htdocs/include/yourfile.inc.php'; -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.. -- PHP General Mailing List (http://www.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] Associative arrays in strings
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Boget, Chris) wrote: Now, supposing you do have error level set to very high, you cannot do this: echo Here is a $string, $myArray['joe'] with $alot of PHP $variables; (using single quotes) to stop the error. You actually have to do this: echo Here is a $string, . $myArray[joe] . with $alot of PHP $variables; echo Here is a $string, {$myArray['joe']} with $alot of PHP $variables; -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Associative arrays in strings
echo Here is a $string, {$myArray[joe]} with $alot of PHP $variables; -- 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] insert data to mysql
Hello, I am just wondering if someone can help me out with this. This is what I have so far, but it isnt working: MYSQL_CONNECT($hostname, $username, $password) or die(Unable to connect to database); @mysql_select_db( $dbName) or die( Unable to select database); $sql = INSERT INTO $userstable (client, contact, email, address, city, state, zip, phone, fax, model, country, details, type) VALUES($client, $contact, $email, $address, $city, $state, $zip, $phone, $fax, $model, $country, $details, $type); $result = MYSQL_QUERY($sql) or die (Couldn't execute query); MYSQL_CLOSE(); Im new (no kidding?), so i hope this is easy, also, is there a address anyone can point me to for a archive of this list? Thanks in advance, Shawn
[PHP] Problems compiling DBG debugger
Hi I am trying to compile Dmitri Dmitrienko's DBG PHP debugger on RedHat. The docs say to put the DBG directory into the PHP ext directory, delete the existing PHP ./configure shell script, and then create a new configure script by running ./buildconf. My problem is that when I try to run the ./buildconf script I get permission denied from every script called. I can only run each script by manually adding x to its permissions - but this surely can't be the right way... I am new to compiling on *nix so I am probably making an elementary error. Can anyone help me out? Geoff Caplan -- PHP General Mailing List (http://www.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] insert data to mysql
On 4/23/2001 1:32 PM this was written: $sql = INSERT INTO $userstable (client, contact, email, address, city, state, zip, phone, fax, model, country, details, type) VALUES($client, $contact, $email, $address, $city, $state, $zip, $phone, $fax, $model, $country, $details, $type); Um.. You're using double-quotes inside of double quotes. You need to use single quotes VALUES('$client', '$contact', '$email', '$address', '$city', '$state', '$zip', '$phone', '$fax', '$model', '$country', '$details', '$type'); -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.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] insert data to mysql
Concatenate your string. ...VALUES ('.$client.','.$contact.') (etc.) Or just replace the double-quotes within the string with single quotes. That should do it. Original Message On 4/23/01, 10:32:47 AM, shawn [EMAIL PROTECTED] wrote regarding [PHP] insert data to mysql: Hello, I am just wondering if someone can help me out with this. This is what I have so far, but it isnt working: MYSQL_CONNECT($hostname, $username, $password) or die(Unable to connect to database); @mysql_select_db( $dbName) or die( Unable to select database); $sql = INSERT INTO $userstable (client, contact, email, address, city, state, zip, phone, fax, model, country, details, type) VALUES($client, $contact, $email, $address, $city, $state, $zip, $phone, $fax, $model, $country, $details, $type); $result = MYSQL_QUERY($sql) or die (Couldn't execute query); MYSQL_CLOSE(); Im new (no kidding?), so i hope this is easy, also, is there a address anyone can point me to for a archive of this list? Thanks in advance, Shawn -- PHP General Mailing List (http://www.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] Site Structure
This is true and I do this in .htaccess or in the main Apache config file when possible. However, for those who do not have control over the main config file, you are at the mercy of the system operator. They could turn off looking at your .htaccess files and not have the Files directive to hide the .inc files and then your code you thought private is not private at all. The moral of this is to always assume the worst and put those .inc files anywhere, but the web tree. However, do this only if you care about protecting the contents. Caveat Emptor -Original Message- From: Kurth Bemis [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 1:24 PM To: Toby Miller; Jordan Elver Cc: PHP General Mailing List Subject: Re: [PHP] Site Structure At 01:12 PM 4/23/2001, Toby Miller wrote: personally i deny all access to my .inc files. with this Apache config... works really good :-) in httpd.conf # The following prevents .inc file from being read by web clients Files ~ .inc Order allow,deny Deny from all /Files -- PHP General Mailing List (http://www.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 /main config.w32.h php_ini.c
fmk Mon Apr 23 10:33:22 2001 EDT Modified files: /php4/main config.w32.h php_ini.c Log: Fix build on WIn32 Should the new directorys be static? Index: php4/main/config.w32.h diff -u php4/main/config.w32.h:1.40 php4/main/config.w32.h:1.41 --- php4/main/config.w32.h:1.40 Sat Mar 10 19:49:21 2001 +++ php4/main/config.w32.h Mon Apr 23 10:33:22 2001 @@ -1,5 +1,5 @@ /* config.w32.h. Configure file for win32 platforms */ -/* tested only with MS Visual C++ V5 */ +/* tested only with MS Visual C++ V6 */ /* Define if PHP to setup it's own SIGCHLD handler (not needed on Win32) */ @@ -325,3 +325,12 @@ #define PHP_EXTENSION_DIR NULL #define SIZEOF_INT 4 + +/* Define directory constants for php and pear */ +#define PHP_BINDIR c:\\php4 +#define PHP_LIBDIR c:\\php4 +#define PHP_DATADIR c:\\php4 +#define PHP_SYSCONFDIR c:\\php4 +#define PHP_LOCALSTATEDIR c:\\php4 +#define PHP_CONFIG_FILE_PATH c:\\winnt +#define PEAR_INSTALLDIR c:\\php4\\pear Index: php4/main/php_ini.c diff -u php4/main/php_ini.c:1.57 php4/main/php_ini.c:1.58 --- php4/main/php_ini.c:1.57Sat Apr 21 18:09:13 2001 +++ php4/main/php_ini.c Mon Apr 23 10:33:22 2001 @@ -18,7 +18,9 @@ #include php.h +#ifndef PHP_WIN32 #include build-defs.h +#endif #include ext/standard/info.h #include zend_ini.h #include php_ini.h -- 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] Encryption (Browser Side)
Greets, I have a question about PHP and browser-side encryption. I currently authenticate my users to an LDAP system using the PHP LDAP APIs. The user enters their login name and password on a browser form, with the password box being set to all '*'s for password. However, this information is sent 'plaintext' to the LDAP server, so an interloper could potentially sniff the password off of the network. The second issue is that I am also presented with a way in which to grab the user's password, simply by saving the contents of the password field and dumping it to a text file or database from the PHP code. My question is: what is the best way for me to do an LDAP bind without having access to the password in plaintext? Can I encrypt the password as the user types it in on the browser window, so that no form type variables can be trapped by PHP? SSL will address the encryption of the passwords after they are sent to the LDAP server, but it is probably a little bit of overkill to encrypt the entire stream. It also permits me to steal passwords from the PHP side, which is a security consideration. What is the best, easiest solution for me to follow? Cheers, 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] Encryption (Browser Side)
Don't know much about LDAP so I can't answer those questions, but the only way (short of creating/requiring a plug-in just to encrypt the data, which isn't a good idea) to have the user send an encrypted password is to use SSL on the login/creation page. That means you can't ever send their password through the url of a non-SSL page for security, but you shouldn't do that anyway. That's the only browser side encryption that all browsers support. -- Plutarck Should be working on something... ...but forgot what it was. Jason Mowat [EMAIL PROTECTED] wrote in message 9c1rja$5kp$[EMAIL PROTECTED]">news:9c1rja$5kp$[EMAIL PROTECTED]... Greets, I have a question about PHP and browser-side encryption. I currently authenticate my users to an LDAP system using the PHP LDAP APIs. The user enters their login name and password on a browser form, with the password box being set to all '*'s for password. However, this information is sent 'plaintext' to the LDAP server, so an interloper could potentially sniff the password off of the network. The second issue is that I am also presented with a way in which to grab the user's password, simply by saving the contents of the password field and dumping it to a text file or database from the PHP code. My question is: what is the best way for me to do an LDAP bind without having access to the password in plaintext? Can I encrypt the password as the user types it in on the browser window, so that no form type variables can be trapped by PHP? SSL will address the encryption of the passwords after they are sent to the LDAP server, but it is probably a little bit of overkill to encrypt the entire stream. It also permits me to steal passwords from the PHP side, which is a security consideration. What is the best, easiest solution for me to follow? Cheers, 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] -- PHP General Mailing List (http://www.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] Icq Message
Greetings: Anyone have a clue as how to send an icq message to a given ICQ number via a php-web-page? TIA. Christopher C. M. Allen -- PHP General Mailing List (http://www.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] --enable-trans-sid
I wasn't able to find this in the docs, so could someone tell me exactly how --enable-trans-sid is supposed to work behind the scenes? while it won't for this url: a href=/interactive/direct_apply/resident.php target=_tophere/a I've also tried... a href=/interactive/direct_apply/resident.php target=_blankhere/a It makes no sense to me... Any help would be greatly appreciated!! Ok, I found one of my problems but I didn't find the other. Again, I have 2 frames. The above link is in the left frame. In the frame, in the actual page, I'm printing out the the value of $PHPSESSID and it is showing a value. So I know the session has been started. I click on the above link to get to the next page and the next page isn't getting the $PHPSESSID passed to it. I have --enable-trans-sid turned on and it's working in most places. However, it's not working in all places. Can anybody guess as to what is going on? Why wouldn't PHP automagically transmit the SID to the next page (append it to the href) as it should with --enable-trans-sid turned off. One last thing of note - this works when cookies are turned on. The $PHPSESSID gets set as a cookie and it's all good. Now, I'm going through my pages with cookies turned off to make sure that nothing in the site breaks... I want to make sure users w/cookies turned off can use my site, too. In doing this I made the following configuration settings: IE: Tools-Internet Options-Security-Custom Level- Cookies and I said disable for both: Allow cookies that are stored on your computer Allow per session cookies NS: Edit-Preferences-Advanced-Disable Cookies Again, any help would be greatly appreciated! Chris