Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Christopher Weldon
ns of your PHP files, as you could then do directory specific PHP4/5 app running. You still have to make certain Apache has both the PHP4 and PHP5 modules loaded, obviously. -- Christopher Weldon President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] (866) 813-4603 x605

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Christopher Weldon
urn "\n". $sqlRow['time'] ." \n".$row['field'].""; // Simplified for time purposes. } // Execute the query foreach ($row = mysql_fetch_array($query)) { echo drawTableRow($row); } /me pours you a cold frosty one to soothe the pain of the long

Re: [PHP] Billing client for studying documentation

2007-02-03 Thread Christopher Weldon
l part of the development and "coding" for the project and should be billed to the client appropriately. -- Christopher Weldon President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] (866) 813-4603 x605 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Who uses PHP

2007-02-03 Thread Christopher Weldon
anguage could be inherently more security or why one could not write PHP code which implemented the same techniques as 'XXX'. (No, I do not know what 'XXX' might be.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Christopher Weldon President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] (866) 813-4603 x605 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WebMail client

2006-10-04 Thread Christopher Weldon
Peter Lauri wrote: > Hi, > > > > Do you have any suggestion on WebMail clients written in PHP that is good > and easy to install? > http://hastymail.sourceforge.net/ -- Christopher Weldon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-27 Thread Christopher Weldon
Richard Lynch wrote: > On Mon, September 25, 2006 3:57 pm, Christopher Weldon wrote: >> On 2:36 pm 09/25/06 "Ramiro Cavalcanti" <[EMAIL PROTECTED]> wrote: >>> Hi Christopher, >>> at first, thank you for your answer. >>> >>> I'

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-25 Thread Christopher Weldon
On 2:36 pm 09/25/06 "Ramiro Cavalcanti" <[EMAIL PROTECTED]> wrote: > Hi Christopher, > at first, thank you for your answer. > > I'd like to know if it's possible use this when php is running like > cgi (php-suexec). I've put this code at httpd.conf at , > then tryed to use it at .htaccess, but with

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-25 Thread Christopher Weldon
/www/htdocs/authenticate.php" authenticate.php would theoretically have some code to check that the user is authenticated, and if not, redirect to a login screen before any headers are sent to the user. -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] 979.

Re: [PHP] php/css and .htaccess

2006-09-20 Thread Christopher Weldon
hose files (.htaccess). So, are you 100% positive that PHP is in fact processing the file? -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] 979.739.5874 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] storing function names in db and running them as row is output?

2006-09-20 Thread Christopher Weldon
blackwater dev wrote: great, thanks. So if it's just text, eval won't do anything? On 9/20/06, Christopher Weldon <[EMAIL PROTECTED]> wrote: blackwater dev wrote: > First, the example I have is not the real situation, just an example so I > don't want to get int

Re: [PHP] Re: Most stable combination of AMP?

2006-09-20 Thread Christopher Weldon
tings (configure options) to make absolutely certain that you don't have missing dependencies / expectations on your production system when they were there on the dev box. -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] 979.739.5874 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] storing function names in db and running them as row is output?

2006-09-20 Thread Christopher Weldon
mysql_num_rows($db_query) > 0) { while ($array = mysql_fetch_array($db_query)) { eval($array['command']); } } eval() is your solution. -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] 979.739.5874 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] R: [PHP] session_start() and fopen

2006-09-14 Thread Christopher Weldon
ove 'session_start()' then only one file will be generated: that's > correct! > > Fabri Hey Fabri, I cannot replicate this bug (PHP 4.2.3 on older server). I'm only getting one file written. What version of PHP are you using? - -- Christopher Weldon, ZCE Pr

Re: [PHP] session_start() and fopen

2006-09-13 Thread Christopher Weldon
code and what exactly you mean by the file being written twice. From the code snippet above, it seems as though you are just going to overwrite a file and destroy it's contents, not write to it twice. This isn't being called from any sort of loop, is it? - -- Christopher Weldon, ZCE

Re: [PHP] mail() help

2006-09-12 Thread Christopher Weldon
sin has a rule that scores big SPAM points for messages that are > 90% HTML. Finally, after you fix all of those issues, if you still have a problem with your messages being flagged as SPAM, send us the full email (with all the headers) so we can see the reason behind the message being mark

Re: [PHP] FUNCTION TO CHECK IMAGE

2006-09-11 Thread Christopher Weldon
anted to make sure you knew about that in case it was copied and pasted. - -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] 979.739.5874 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.m

Re: [PHP] FUNCTION TO CHECK IMAGE

2006-09-11 Thread Christopher Weldon
7; such > image size couldn't be resolved. > Is there any function to define that image is ok or not? > >> What happens when you stop manipulating it's size and try to view just the >> uploaded >> file? > > Size of image (after or before uploading) woul

Re: [PHP] Really stupid cookie question

2006-09-11 Thread Christopher Weldon
reset it to another 30 days? > > --PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > It will expire in 5 days. - -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] 979.739.5874 -B

Re: [PHP] mail() help

2006-09-11 Thread Christopher Weldon
t down on the SPAM probability. Second, if you are making MIME emails, make sure you are doing so correctly. You can learn about creating multipart/alternative MIME emails more at www.php.net/mail. Finally, if none of the above works, it would be helpful for us to see the headers of the receive

Re: [PHP] strip urls

2006-09-11 Thread Christopher Weldon
#x27;); Second, don't forget the tags you'll need in the preg_replace function: $str = preg_replace('/\]*\>/', "\1", $str); You can use other characters, such as ! if you want instead of /, but you have to use the same at the beginning and the end. - -- Christopher Wel

Re: [PHP] does magic_quotes_gpc prevents sql injection through forms?

2006-09-11 Thread Christopher Weldon
just straight-up typecast: $clean['var'] = (int) $_POST['var']; The best way is to check to see if it is_numeric rather than force it's type to be integer - but for simplicities sake, it can be used. - -- Christopher Weldon, ZCE President & CEO Cerberus Interacti

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-10 Thread Christopher Weldon
t's the error, and how do you have the class and functions defined? - -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. [EMAIL PROTECTED] 979.739.5874 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.m

Re: [PHP] FUNCTION TO CHECK IMAGE

2006-09-10 Thread Christopher Weldon
**o<0>o** > - From what it sounds like you are doing, you are uploading a file through some form, then manipulating it's size. Is this correct? What happens when you stop manipulating it's size and try to view just the uploaded file? - -- Christopher Weldon, ZC

Re: [PHP] Using a variable to call another variable

2006-09-09 Thread Christopher Weldon
something like that. < :-) > > $easy_peasyier = array("foo1" => 1, "foo2" => 2, "foo3" => 3); > > echo($easy_peasyier['foo1']); > > tedd class myClass { private var $_001; private var $_002; pri

Re: [PHP] Newbie question about

2006-09-09 Thread Christopher Weldon
ionally, through some of my training courses, another reason behind it is that if you use PHP to generate any XML documents, XML uses syntax, and it's better to turn off the short tags in your PHP config so that PHP doesn't attempt to interpret those tags as PHP code. - -- Christopher Weld