RE: [PHP] How do I make an 'email this page' feature?

2004-09-30 Thread PHP Tech
Hi, Do you mean that I would have a different ID no. for different pages and pass that variable to the 'email this page' page which will then send the url according to the ID number? If that's what you mean it sounds like a good idea, but unfortunately as this site has lots of dynamic URLs this w

[PHP] Two people working on the same app / script?

2004-09-30 Thread Dave Carrera
Hi List, Is there a simple solution for two or more people to work on the same php app /script without it turning into a mess of many tar / zip files with contributed additions. I want to keep it all in house, I have my own publicly available web server if that helps, so none of the online dev op

Re: [PHP] Two people working on the same app / script?

2004-09-30 Thread Gareth Williams
There's a simple one abbreviation answer CVS. It's probably the widest used version control system in the world, and is integrated into XCode (if you are a Mac PHP developer). On 30 Sep 2004, at 10:24, Dave Carrera wrote: Hi List, Is there a simple solution for two or more people to work on the s

[PHP] Replace or regex?

2004-09-30 Thread mario
Hi all I have a string: ##CODE## and I want to replace that with CODE can u help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replace or regex?

2004-09-30 Thread Gareth Williams
Well, if you can do it without a regex, then it's always best, because the regex engine slows things down. On 30 Sep 2004, at 10:39, mario wrote: Hi all I have a string: ##CODE## and I want to replace that with CODE can u help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] Two people working on the same app / script?

2004-09-30 Thread Chris Shiflett
--- Dave Carrera <[EMAIL PROTECTED]> wrote: > Is there a simple solution for two or more people to work on the > same php app /script without it turning into a mess of many tar / > zip files with contributed additions. Any version control system that supports concurrent development will work for t

[PHP] World time convertor

2004-09-30 Thread Phpu
Howdy Is there a time convertor written in php? I mean to convert a specific hour/date in all world countries.

RE: [PHP] Replace or regex?

2004-09-30 Thread Graham Cossey
If you can change the ##text## to say /#text#/ it would be easier as you could then do something like: $id = substr($orig_text,strpos($orig_text, '/#')+2,strpos($orig_text, '#/')-1); $new_text = str_replace( '/#', 'href="somewhere.php?id='.$id.'">', $orig_text); $new_text = str_replace( '#/', '',

[PHP] include_path and safe_mode in virtualhost

2004-09-30 Thread Christian Ista
Hello, I have a didecated server (linux redhat + apache 1.31.x and PHP 4.3.x). I'd like for a specific virualhost, set the include_path and safe_mode To do that, I did : . php_admin_value safe_mode on php_admin_value include_path ".:/design:/home:/manager:/login:/style" Then I make 2 tes

[PHP] Re: World time convertor

2004-09-30 Thread M. Sokolewicz
Phpu wrote: Howdy Is there a time convertor written in php? I mean to convert a specific hour/date in all world countries. convert... in what way?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: include_path and safe_mode in virtualhost

2004-09-30 Thread M. Sokolewicz
Christian Ista wrote: Hello, I have a didecated server (linux redhat + apache 1.31.x and PHP 4.3.x). I'd like for a specific virualhost, set the include_path and safe_mode To do that, I did : . php_admin_value safe_mode on php_admin_value include_path ".:/design:/home:/manager:/login:/style"

Re: [PHP] World time convertor

2004-09-30 Thread Daniel Spain
I'm assuimg you mean you have a time in GMT such as 1:00am and want to convert it to GMT+10 where it would be 11AM? On Thu, 30 Sep 2004 12:19:43 +0300, Phpu <[EMAIL PROTECTED]> wrote: > Howdy > > Is there a time convertor written in php? > I mean to convert a specific hour/date in all world count

Re: [PHP] World time convertor

2004-09-30 Thread Daniel Spain
Well, I believe you can take a timestamp and use the date() function to display it in a different timezone. I dont know the specifics as it's been a while since I last did it. On Thu, 30 Sep 2004 14:36:21 +0300, Phpu <[EMAIL PROTECTED]> wrote: > Yes, in this way i want to convert but i have some

Re: [PHP] Two people working on the same app / script?

2004-09-30 Thread Jordi Canals
I use Subversion for that ... similar to CVS, but with new and interesting features and really easy to setup in any platform. But you can use any System to control versions and provide access to it to all developers. You can get Subversion at http://subversion.tigris.org/ Regards, Jordi. On Thu,

[PHP] refresh page automaticly on PHP

2004-09-30 Thread welly limston
how to make my page refresh automaticly? Can i use PHP function? what is it? - Do you Yahoo!? vote.yahoo.com - Register online to vote today!

RE: [PHP] refresh page automaticly on PHP

2004-09-30 Thread Jay Blanchard
[snip] how to make my page refresh automaticly? Can i use PHP function? what is it? [/snip] You cannot do it with PHP, you use a meta refresh tag (http://www.w3.org) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] refresh page automaticly on PHP

2004-09-30 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] how to make my page refresh automaticly? Can i use PHP function? what is it? [/snip] You cannot do it with PHP, you use a meta refresh tag (http://www.w3.org) Or header refresh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] refresh page automaticly on PHP

2004-09-30 Thread Gareth Williams
Try header(); On 30 Sep 2004, at 14:09, welly limston wrote: how to make my page refresh automaticly? Can i use PHP function? what is it? - Do you Yahoo!? vote.yahoo.com - Register online to vote today! -- PHP General Mailing List (http://www.php.net

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Alawi Albaity
one of the Israel company say thanks . the another from an arabs country (UAE) make fun of my write . what an unbelievable thing . On Thu, 30 Sep 2004 09:34:11 +0400, M Saleh EG <[EMAIL PROTECTED]> wrote: > God help arabs if they release books that easily ! n specialy from a > person who failed

[PHP] Session Variable Security

2004-09-30 Thread Aaron Todd
Can anyone tell me how secure a session variable is. I realize that if someone wanted to take the time to break into my site they will eventually succeed, but I dont want to make it too easy. I have a database that stores a username and an encrypted password which both are verifyed when the us

Re: [PHP] Session Variable Security

2004-09-30 Thread j kensler
The first thing to do is to set your scripts to not allow session handling to be carried out through the URL if a person's browser won't accept cookies. It would be way too easy to change the ID. And also if the id numbers are sequential, you might also want to have a second, random identifier that

Re: [PHP] Session Variable Security

2004-09-30 Thread Matt M.
> Can anyone tell me how secure a session variable is. I realize that if > someone wanted to take the time to break into my site they will eventually > succeed, but I dont want to make it too easy. I have a database that stores > a username and an encrypted password which both are verifyed when t

Re: [PHP] World time convertor

2004-09-30 Thread Matthew Fonda
Howdy, Check out the Date PEAR package, http://pear.php.net/package/Date -- Regards, Matthew Fonda On Thu, 2004-09-30 at 02:19, Phpu wrote: > Howdy > > Is there a time convertor written in php? > I mean to convert a specific hour/date in all world countries. -- PHP General Mailing List (http

[PHP] Attaching 2 files in Mail

2004-09-30 Thread PHP Junkie
Ave, I'm facing a little problem. I have this code which enables me to attach a file and send the file as an attachment with the Mail. What I need to do is slightly different. Firstly, I want to send 2 files as attachment, and not one. Secondly, I don't want the user to select & attach the file,

RE: [PHP] Two people working on the same app / script?

2004-09-30 Thread Gryffyn, Trevor
CVS is definitely something to check into. In addition to the Mac product mentioned before, Zend Studio and many other IDEs and editors have CVS compatibility built into them. CVS is similar to (but of course has differences to) Microsoft's Source Safe, if you're familiar with that product. (yeah

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Rory Browne
I haven't done the exam, yet, but based on some of the practice questions, I'm getting worried. I'm finding sample questions whose answers are not covered in the book. One such question was a list(, $var) = whatever, and nowhere in the book could I find an explanation for same. I've also used coun

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> I'm glad to hear that, cause some of them did seem a bit difficult. I > understood perfectly after seeing the correct answer and the > explanation, but they were a little tricky. I would be interested in feedback on the exam. I am looking into taking the test, just hoping Zend runs the $100 d

[PHP] cURL and Proxy Servers

2004-09-30 Thread Nick Wilson
Hello everyone, I'm using cURL and have a question about this line (part of a function) curl_setopt($ch, CURLOPT_PROXY, $proxy2use); I know that *after* I curl_exec() i can find out if the proxy resolved or not with curl_errno() (it would return 5) but it seems that if it does fail to resolve,

[PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Denise_Holland
Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED]

[PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Denise_Holland
Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED] __ Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED]

[PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Denise_Holland
Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED] __ Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED]

[PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Denise_Holland
Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED] __ Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED]

[PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Denise_Holland
Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED] __ Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED]

[PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Denise_Holland
Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED] __ Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED]

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Jay Blanchard
[snip] Subject: [PHP] UNSUBSCRIBE Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED] [/snip] Oh goody! Hey Denise! Do you see that link at the bottom of the page that looks like this? -- PHP General Mailing List (ht

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread jazzsnob
hey genius: To unsubscribe, visit: http://www.php.net/unsub.php - Original Message - From: [EMAIL PROTECTED] Date: Thursday, September 30, 2004 10:19 am Subject: [PHP] UNSUBSCRIBE > Thank you, > > Denise Holland > ITM - Network Suppo

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Ron Guerin
If you were smart enough to get yourself on the list, you should be smart enough to get yourself off without inflicting yourself on the rest of us. You work in "network support", ever hear about e-mail headers? (clue for you) On Thu, 2004-09-30 at 10:19, [EMAIL PROTECTED] wrote: > Thank you, >

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Jay Blanchard
[snip] Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED] [/snip] What we appear to have here is a rocket scientist. Are you going to keep sending this until you learn how to click the link? To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing L

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Jonathan Wilkes
stop sending this spam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 30 September 2004 15:20 To: [EMAIL PROTECTED] Subject: [PHP] UNSUBSCRIBE Thank you, Denise Holland ITM - Network Support 703-358-1823 [E

[PHP] Test - Is the list working?

2004-09-30 Thread Jay Blanchard
Odd stuff this morning. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Steve Murphy
Can we start mass flaming this guy? Ok one nice one... http://www.php.net/mailing-lists.php goto the bottom of the page and unsubscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:20 AM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Replace or regex?

2004-09-30 Thread Brian
$var="##testcode##this is a ##code1## test of the ##code2## code replacement system ##code3##"; $varParsed=strParse($var); echo "$var"; echo $varParsed; function strParse($origString) { while ( $offsetFALSE) { $tmpString=substr($origString, $lastEnd, $foundBeg-$lastEnd); $tm

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread James E Hicks III
On Thursday 30 September 2004 10:18 am, [EMAIL PROTECTED] wrote: > Thank you, > You can't expect that people in government know how to read! Much less think! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] refresh page automaticly on PHP

2004-09-30 Thread Brian
As the others said, this isn't a function of php, php is a server-side script and a refresh is on the client side. A meta-refresh tag is fine depending on how reliable you want your refresh to be as it'll stop working after a day or so. If you need it to refresh forever you'll need to use javascr

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread John Nichel
[EMAIL PROTECTED] wrote: Thank you, Denise Holland ITM - Network Support 703-358-1823 [EMAIL PROTECTED] No Denise, thank you. Thank you for not following clear instructions. Thank you for spamming this list, because you fail to read. Thank you for restoring my faith in the intelligence of our g

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Pankaj Kafley
What an ass ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Variable Security

2004-09-30 Thread Brian
Along with the other tips people gave, make sure that if you have register globals turned on, do not ever reference a session variable that way, always use $_SESSION On Thu, 30 Sep 2004 08:39:42 -0400, Aaron Todd <[EMAIL PROTECTED]> wrote: > Can anyone tell me how secure a session variable is. I

Re: [PHP] Test - Is the list working?

2004-09-30 Thread Marek Kilimajer
Jay Blanchard wrote: Odd stuff this morning. I think it's overloaded with unsubscribe requests. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cURL and Proxy Servers

2004-09-30 Thread Brian
If you already resolve the proxy before the exec, just don't run the exec if it doesn't resolve, and set the proxy to the ip it resolved to so curl won't try to resolve it again. On Thu, 30 Sep 2004 16:27:52 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I'm using cURL and h

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Jay Blanchard
[snip] Can we start mass flaming this guy? Ok one nice one... Denise Holland ITM - Network Support 703-358-1823 [/snip] I vote we all call her -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread GH
Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would like to h

RE: [PHP] Replace or regex?

2004-09-30 Thread Dan Joseph
Hi, > > I have a string: ##CODE## and I want to replace that with > href="somewhere.php?id=CODE">CODE I handle %code% tags in some templates I use... here's the code I have.. function show ($template, $tag) { $file = fopen ($template, "r") or die($error_

Re: [PHP] Test - Is the list working?

2004-09-30 Thread Jason Davidson
sheesh.. ok, who is going to sign that denise character back up to the list :P Jason Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > Jay Blanchard wrote: > > Odd stuff this morning. > > > > I think it's overloaded with unsubscribe requests. > > -- > PHP General Mailing List (http://www.php.ne

[PHP] alphabetic comparison

2004-09-30 Thread Diana Castillo
Is there any way you can use the numerical comparisons < or > to see if one word comes first alphabetically to another ? what can I use to see if "oranges" comes after or before "apples" alphabetically for instance. -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Sp

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread GH
did anyone call? On Thu, 30 Sep 2004 10:26:08 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > Can we start mass flaming this guy? Ok one nice one... > > Denise Holland > ITM - Network Support > 703-358-1823 > [/snip] > > I vote we all call her > > > > -- > PHP General Mailing

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Graham Cossey
Great, I needed some humour today, thanks all :) Graham -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 30 September 2004 16:26 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] UNSUBSCRIBE!

[PHP] Children: how do you make your parents __sleep() ?

2004-09-30 Thread Rob Long
Hey I'm building a webapp with tons of objects all over the place, a lot of which are quite complex, meaning they could have many subclasses and many nested object members. I'm implementing a memory caching mechanism to store these objects between requests and share them between different user ses

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would li

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread GH
On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > GH wrote: > > Thank you all for the information... however at a second look I > > realized that I failed to better describe my needs... > > > > My current plan is to have a series of articles and information stored > >

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Greg Donald
On Wed, 29 Sep 2004 15:55:29 -0700 (PDT), Chris Shiflett <[EMAIL PROTECTED]> wrote: > I'd be interested in hearing your honest feedback after you take it, > whether privately or on this list. Hopefully ZCE becomes a respected > acronym, unlike MCSE. :-) I passed. I thought the test was very chall

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
GH wrote: On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my datab

Re: [PHP] Session Variable Security

2004-09-30 Thread GH
Brian: What way should you not reference session variables? I seem to have missed that part of the discussion... Sorry. Gary On Thu, 30 Sep 2004 10:17:51 -0500, Brian <[EMAIL PROTECTED]> wrote: > Along with the other tips people gave, make sure that if you have > register globals turned on, do

Re: [PHP] refresh page automaticly on PHP

2004-09-30 Thread Chris Shiflett
--- welly limston <[EMAIL PROTECTED]> wrote: > how to make my page refresh automaticly? You can use a Refresh header: Refresh: 3; url=http://example.org/ > Can i use PHP function? http://www.php.net/header Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'R

RE: [PHP] alphabetic comparison

2004-09-30 Thread Jesse Castro
[snip] Is there any way you can use the numerical comparisons < or > to see if one word comes first alphabetically to another ? what can I use to see if "oranges" comes after or before "apples" alphabetically for instance. [/snip] **mumble grumble** You should just try dinky questions like this o

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
GH wrote: Are there anyother methods besides BBCode/phpBB that one can use? Especially if I do not have pear available on my host? I'm sure there are. For example you can convert the string using htmlspecialchars, and then convert only allowed tags back: $text = htmlspecialchars($_POST['text']);

Re: [PHP] alphabetic comparison

2004-09-30 Thread Brian
if ( "apples" < "oranges" ) {echo "apples comes before oranges";} On Thu, 30 Sep 2004 17:59:39 +0200, Diana Castillo <[EMAIL PROTECTED]> wrote: > Is there any way you can use the numerical comparisons < or > to see if one > word comes first alphabetically to another ? > what can I use to see if

Re: [PHP] Images in PHP and MySQL

2004-09-30 Thread Jasper Howard
If you're uploading a file then you can make a script that reads the temp file into the database (otherwise you need to muck around with image functions and I'm not the one to ask about that), something like: $image = mysql_escape_string(fread(fopen($_FILES['file']['tmp_name'], "r"), filesize($_FI

Re: [PHP] Session Variable Security

2004-09-30 Thread Chris Shiflett
--- Aaron Todd <[EMAIL PROTECTED]> wrote: > Can anyone tell me how secure a session variable is. It's 93% secure. :-) Seriously, session data is generally more secure than other data that you're likely to use. If you try to consider your data as being either local or foreign, I think you'll start

[PHP] Security Question (from Chris's OSCON 2004 talk)

2004-09-30 Thread Pablo Gosse
Hi folks. Thanks to all for the replies to my question about security on shared hosting the other day. I've contacted my hosting provider and they will be fixing the issues I've pointed out to them. I've got a question about a section of Chris's article on PHP security from his OSCON 2004 talk.

Re: [PHP] Session Variable Security

2004-09-30 Thread Chris Shiflett
--- j kensler <[EMAIL PROTECTED]> wrote: > The first thing to do is to set your scripts to not allow session > handling to be carried out through the URL if a person's browser > won't accept cookies. It would be way too easy to change the ID. While true, it is only barely more convenient to change

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Chris Shiflett
--- Rory Browne <[EMAIL PROTECTED]> wrote: > I haven't done the exam, yet, but based on some of the practice > questions, I'm getting worried. I'm finding sample questions whose > answers are not covered in the book. If you're talking about the questions in the back of the Zend Certification Guide

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Chris Shiflett
--- "Matt M." <[EMAIL PROTECTED]> wrote: > I am looking into taking the test, just hoping Zend runs the $100 > deal again. You can win a free pass to take the exam by being the first to solve this puzzle: http://shiflett.org/archive/55 Enjoy. :-) Chris = Chris Shiflett - http://shiflett.or

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Graham Cossey
> > > I passed. > > > > Greg Donald > Zend Certified Engineer > http://gdconsultants.com/ > http://destiney.com/ Congratulations Greg. Like the new sig ! ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] alphabetic comparison

2004-09-30 Thread Jasper Howard
put all the values you want sorted into an array, $array = array("orange","apple"); and use sort($array);, it should list the values alphabetically. On Thu, 30 Sep 2004 17:59:39 +0200, Diana Castillo <[EMAIL PROTECTED]> wrote: > Is there any way you can use the numerical comparisons < or > to see

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Jeff McKeon
Just prove's the saying "Make something idiot proof and someone will invent a better idiot" Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:20 AM To: [EMAIL PROTECTED] Subject: [PHP] UNSUBSCRIBE!

Re: [PHP] Session Variable Security

2004-09-30 Thread Chris Shiflett
--- GH <[EMAIL PROTECTED]> wrote: > Brian: > > What way should you not reference session variables? I seem to have > missed that part of the discussion... Sorry. I think he meant to be wary of register_globals and thinking you're referencing a session variable when you use $foo rather than $_SES

RE: [PHP] Two people working on the same app / script?

2004-09-30 Thread Graham Cossey
Please correct me if I'm wrong, but I didn't think SourceSafe allowed for versioning/branching, simply 'locking' a file until it was checked in, but I haven't used it for a while. This is actually the basic functionality I'm looking for, and possibly what the OP requires too, I don't (currently) n

[PHP] Security Question (from Chris's OSCON 2004 talk)

2004-09-30 Thread Pablo Gosse
Hi folks. Sorry if this gets posted twice, but I sent it originally almost an hour ago and it hasn't shown up on the list yet. Thanks to all for the replies to my question about security on shared hosting the other day. I've contacted my hosting provider and they will be fixing the issues I've p

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Dan Joseph
Hi, > > I'd be interested in hearing your honest feedback after you take it, > > whether privately or on this list. Hopefully ZCE becomes a respected > > acronym, unlike MCSE. :-) > > I passed. > > I thought the test was very challenging. The areas I found most Congrats! -Dan Joseph -- PHP

Re: [PHP] Security Question (from Chris's OSCON 2004 talk)

2004-09-30 Thread Chris Shiflett
--- Pablo Gosse <[EMAIL PROTECTED]> wrote: > I've got a question about a section of Chris's article on PHP > security from his OSCON 2004 talk. > > When talking about protecting database credentials, Chris > mentions creating a file (readable only by root) with the > following: > > SetEnv DB_USER

Re: [PHP] How do I make an 'email this page' feature?

2004-09-30 Thread Andrew Kreps
On Thu, 30 Sep 2004 08:33:45 +0100, PHP Tech <[EMAIL PROTECTED]> wrote: > Do you mean that I would have a different ID no. for different pages and > pass that variable to the 'email this page' page which will then send the > url according to the ID number? If that's what you mean it sounds like a

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Greg Donald
On Thu, 30 Sep 2004 10:17:53 -0700 (PDT), Chris Shiflett <[EMAIL PROTECTED]> wrote: > I think a very experienced developer can pass the exam without using the > guide with little trouble, but I don't think an inexperienced developer > can read the guide and hope to pass. You need more than that. I

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Graham Cossey
This is very interesting reading. I've been using PHP (almost) daily for the past 7 months so Chris' comments do encourage me to consider the possibility of going for the certification in time. I do think I would need the study guide though as there are many topics being discussed on this list tha

[PHP] register globals changed to off, script breaks

2004-09-30 Thread Kevin Coyner
I had a couple pages that had used a few 'a href' links to create a URL like this: http://mydomain.com/profile.php?cid=6 When you clicked the link, it went to the profile.php page, which had the following code snippet: foreach($_GET as $varname => $value) $formVars[$varname] = trim($value)

[PHP] Re: cURL and Proxy Servers

2004-09-30 Thread Manuel Lemos
Hello, On 09/30/2004 11:27 AM, Nick Wilson wrote: I'm using cURL and have a question about this line (part of a function) curl_setopt($ch, CURLOPT_PROXY, $proxy2use); I know that *after* I curl_exec() i can find out if the proxy resolved or not with curl_errno() (it would return 5) but it seems tha

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Dan Joseph
Hi, > You can win a free pass to take the exam by being the first to solve this > puzzle: > > http://shiflett.org/archive/55 Which part on this page is the puzzle? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what syntax error are they talking about?

2004-09-30 Thread Amy Rogers
I need help understand the error following message I got. The related script is below. I also have a separate question about dots that appear in the script. I am using Julie Meloni's PHP Essentials 2nd Edition to learn the language, and this is taken from page 119. (I was trying to create a ne

Re: [PHP] Security Question (from Chris's OSCON 2004 talk)

2004-09-30 Thread Jason Wong
On Friday 01 October 2004 00:59, Pablo Gosse wrote: > When talking about protecting database credentials, Chris mentions > creating a file (readable only by root) with the following: > > SetEnv DB_USER "myuser" > SetEnv DB_PASS "mypass" > > and then using this: > > Include "/path/to/secret-stuff"

[PHP] Suggestion for "IN()"

2004-09-30 Thread Daevid Vincent
I'm sure I'll be flamed for this, but it seems to me that there should be a shortcut way to write: If ($a == 1 || $a == 4 || $a == 20 || ...) {} To something more like what SQL has... If ( $a IN(1,4,20,...) ) {} And same with the very helpful SQL BETWEEN 'function'. Instead of If ($a > 1 &&

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Jay Blanchard
[snip] > You can win a free pass to take the exam by being the first to solve this > puzzle: > > http://shiflett.org/archive/55 Which part on this page is the puzzle? [/snip] The clock. BEWARE - real time eater-upper! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

RE: [PHP] what syntax error are they talking about?

2004-09-30 Thread Jay Blanchard
[snip] Error message: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(20),username text (10),password varchar (10))' at line 1" [/snip] We'd have to see the whole query. Can you echo $sql and give us the wh

RE: [PHP] Suggestion for "IN()"

2004-09-30 Thread Jay Blanchard
[snip] I'm sure I'll be flamed for this, but it seems to me that there should be a shortcut way to write: If ($a == 1 || $a == 4 || $a == 20 || ...) {} To something more like what SQL has... If ( $a IN(1,4,20,...) ) {} And same with the very helpful SQL BETWEEN 'function'. Instead of If ($a

Re: [PHP] Suggestion for "IN()"

2004-09-30 Thread Cosmin
you could try in_array() if (in_array(1,2,3,4,5), 6) On Thu, 2004-09-30 at 22:10, Daevid Vincent wrote: > I'm sure I'll be flamed for this, but it seems to me that there should be a > shortcut way to write: > > If ($a == 1 || $a == 4 || $a == 20 || ...) {} > > To something more like what SQL h

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Mark
--- Dan Joseph <[EMAIL PROTECTED]> wrote: > Hi, > > > You can win a free pass to take the exam by being the first to > solve this > > puzzle: > > > > http://shiflett.org/archive/55 > > Which part on this page is the puzzle? Maybe that's the puzzle... :^) > > -Dan Joseph > > -- > PHP

Re: [PHP] Suggestion for "IN()"

2004-09-30 Thread Jason Wong
On Friday 01 October 2004 03:10, Daevid Vincent wrote: > I'm sure I'll be flamed for this, but it seems to me that there should be a > shortcut way to write: > > If ($a == 1 || $a == 4 || $a == 20 || ...) {} > > To something more like what SQL has... > > If ( $a IN(1,4,20,...) ) {} in_array() or m

Re: [PHP] refresh page automaticly on PHP

2004-09-30 Thread M Saleh EG
or u can use this method from JS You could refresh the page in various ways 1- make a rerequest to the server to give u the same page again: using the PHP Header function. 2-using the html Header refresh tag 3-Java Script to reload the document Since the 1st and 2nd methods are discussed in the

Re: [PHP] Suggestion for "IN()"

2004-09-30 Thread Cosmin
...sorry, that should have been if (in_array(array(1,2,3,4), 6)) On Thu, 2004-09-30 at 22:10, Daevid Vincent wrote: > I'm sure I'll be flamed for this, but it seems to me that there should be a > shortcut way to write: > > If ($a == 1 || $a == 4 || $a == 20 || ...) {} > > To something more li

[PHP] Stored procedures in Mysql

2004-09-30 Thread Sagar C Nannapaneni
Hi folks, I wonder whether Mysql supports procedures and triggers :? /sagar

Re: [PHP] Images in PHP and MySQL

2004-09-30 Thread GH
HEre is a question that I have been wondering about: - Does the image file use more space in the db or as a file itself (Do Not count the extra data that one would store in the db along with the image... ie. ID number) Thanks On Thu, 30 Sep 2004 09:55:30 -0700, Jasper Howard <[EMAIL PROTECTE

[PHP] Re: cURL and Proxy Servers

2004-09-30 Thread Nick Wilson
* and then Manuel Lemos declared > You may want to try this HTTP client class instead. It supports requests > via proxies and does not use Curl. > > http://www.phpclasses.org/httpclient Hmmm.. good point Manuel, i have seen the class, in fact it was the original way i /was/ going to build t

  1   2   >