[PHP] Question
Hi all, Is there a way in PHP to get the size of a directory? (so I can see how much disk space my users are using in their home directory). Can someone also tell me what the PHP General list is exactly. Is it run by PHP folk only? Can I subscribe to this list somewhere and maybe help someone else out for a change? Thanks, Gareth Davies Progressive Business Services Ltd +44 (0) 1274 889592 Office +44 (0) 1274 889656 Fax +44 (0) 7970 733851 Mobile (24 Hour)
[PHP] Version Difference
Hi all, With the following in one page: "; and this in the page called: echo "$document_title"; I am receiving two different results from two different environments under some circumstances, which is causing me a massive headache. My development environment is PHP 4.0.3pl1 running on Windows 95. My live environment is 4.0.1pl2 running on a Cobalt Raq. All is well in both the above until the user enters an apostrophe, upon which the development environment nicely adds a backslash prior to it, allowing it to be saved in Mysql with no additional effort. The live environment, however, does not. I am trying to build quite an advanced system using PHP and I'm finding a number of issues with quotes and double-quotes which makes building dependable code extremely difficult and time consuming. Has anyone else had trouble getting their applications to be 100% water tight regarding user entry? Any help would be greatly appreciated - I've now spent more than one week just messing around with apostrophes in one form or another - this is only the latest of my worries - and I'm sure there are more quote related issues to come :O) Gareth Davies Progressive Business Services Ltd +44 (0) 1274 889592 Office +44 (0) 1274 889656 Fax +44 (0) 7970 733851 Mobile (24 Hour)
Re: [PHP] Version Difference
Thanks philip..I must confess to not having ventured too much into the PHP.ini file. Simple when you know how, huh? Thanks again, that's cheered the miserable little mood I've been having this morning! Gareth. - Original Message - From: Philip Olson <[EMAIL PROTECTED]> To: Gareth Davies <[EMAIL PROTECTED]> Cc: PHP List <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 10:43 AM Subject: Re: [PHP] Version Difference > > Hi all, > > > > With the following in one page: > > "; > > > > and this in the page called: > > echo "$document_title"; > > > > I am receiving two different results from two different environments > > under some circumstances, which is causing me a massive headache. > > oh my! > > > My development environment is PHP 4.0.3pl1 running on Windows 95. > > My live environment is 4.0.1pl2 running on a Cobalt Raq. > > > > All is well in both the above until the user enters an apostrophe, upon > > which the development environment nicely adds a backslash prior to it, > > allowing it to be saved in Mysql with no additional effort. The live > > environment, however, does not. > > this will make perfect sense. live has setting magic_quotes_gpc on, the > dev has magic_quotes_gpc off. this is most likely cause at least. see : > > http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc > > > I am trying to build quite an advanced system using PHP and I'm finding > > a number of issues with quotes and double-quotes which makes building > > dependable code extremely difficult and time consuming. Has anyone else > > had trouble getting their applications to be 100% water tight regarding > > user entry? > > others have run into similar "issues" as well but after learning why it > usually is okay. > > > Any help would be greatly appreciated - I've now spent more than one > > week just messing around with apostrophes in one form or another - this > > is only the latest of my worries - and I'm sure there are more quote > > related issues to come :O) > > oh my, should have asked earlier! ;-) > > regards, > > philip > > > > > > Gareth Davies > > Progressive Business Services Ltd > > > > +44 (0) 1274 889592 Office > > +44 (0) 1274 889656 Fax > > +44 (0) 7970 733851 Mobile (24 Hour) > > > > -- PHP General Mailing List (http://www.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] Cobalt Raq/PHP Help Needed
Hi all, this list to date has been extremely helpful and I thought you might be able to help with my latest problem. I have a Cobalt Raq and need to host many different domain names but have them all point to one directory. e.g. web site is called www.frogtrade.com - I am currently allowing various companies to use www.frogtrade.com/companyname which allows them access to the system. Some clients, however want to use their own domain name rather than the frogtrade name. The Cobalt Raq, by default creates an entirely new directory structure. How do I get this to point at the same frogtrade directory structure? I am desperate for this help, but don't know where else to turn. Any help greatly appreciated!! Thanks, Gareth Davies Progressive Business Services Ltd +44 (0) 1274 889592 Office +44 (0) 1274 889656 Fax +44 (0) 7970 733851 Mobile (24 Hour)