Re: [PHP] Zend PHP Certification test

2004-09-30 Thread j kensler
The code is: j896c5kk.fi7/ d89635bb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread j kensler
I have the first part figured out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie: compiled with --with-dbx but dbx_connect is undefined

2004-09-30 Thread Scott Chapman
I'm new to PHP and installed as follows (not for production use with Apache 2): PHP 5.0.2 and Apache 2.0.50 on Suse 9.1. When I try to use dbx_connect(), I get this: Fatal error: Call to undefined function dbx_connect() in /www2/htdocs/test1.php on line 9 phpinfo() shows that it was configured -

Re: [PHP] list of Months

2004-09-30 Thread Tom Rogers
Hi, Friday, October 1, 2004, 6:16:46 AM, you wrote: aan> Hi, aan> to create a list of all months in drop-down menu I use this code: aan> $month_names = array(1=>'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', aan> 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ?>> aan> aan> aan> for($i=1; $i<=12; $i++

[PHP] Re: mail() and Verizon

2004-09-30 Thread Manuel Lemos
Hello, On 10/01/2004 12:47 AM, Sam Smith wrote: Can anyone tell why the mail (see below) is not being relayed to [EMAIL PROTECTED]: #Note: There were 2 "To:" addresses. Below is the header from the successful mail to the second address. Each address will receive different message copies. -- Regards

Re: [PHP] list of Months

2004-09-30 Thread Paul Bissex
On Thu, 30 Sep 2004 22:16:46 +0200 (CEST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > to create a list of all months in drop-down menu I use this code: > > $month_names = array(1=>'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', > 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); > ?> > > > > for

[PHP] mail() and Verizon

2004-09-30 Thread Sam Smith
Can anyone tell why the mail (see below) is not being relayed to [EMAIL PROTECTED]: #Note: There were 2 "To:" addresses. Below is the header from the successful mail to the second address. Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 70862 invoked by uid 399

Re: [PHP] Get part of URL address

2004-09-30 Thread raditha dissanayake
php mysql wrote: How to get information from URL. I need to get information after / http://www.domain.com/thisIneedtoget. I want to get information after / '"thisIneedtoget" a bit suprised that someone whose name is 'php mysql' needs to ask such questions. -- Raditha Dissanayake.

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread j kensler
1:11 1:15 1:19 1:26 1:27 1:28 1:30 1:34 1:42 1:46 1:47 1:48 1:52 2:10 2:12 2:14 2:16 2:18 2:20 2:26 2:30 2:34 2:41 2:48 3:08 3:10 3:12 3:14 3:16 3:18 3:26 3:27 3:30 3:34 3:41 3:44 4:11 4:15 4:16 4:18 4:19 4:23 4:24 4:28 4:30 4:32 4:34 4:36 4:40 4:41 4:42 4:47 4:51 5:08 5:10 5:12 5:16 5:18 5:20 5:2

Re: [PHP] Get part of URL address

2004-09-30 Thread Greg Donald
On Thu, 30 Sep 2004 20:48:52 -0400, php mysql <[EMAIL PROTECTED]> wrote: > How to get information from URL. I need to get information after / > http://www.domain.com/thisIneedtoget. > > I want to get information after / '"thisIneedtoget" parse_url() -- Greg Donald Zend Certified Engineer http:

[PHP] Get part of URL address

2004-09-30 Thread php mysql
How to get information from URL. I need to get information after / http://www.domain.com/thisIneedtoget. I want to get information after / '"thisIneedtoget" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Greg Donald
On Thu, 30 Sep 2004 19:24:42 -0500, j kensler <[EMAIL PROTECTED]> wrote: > Time since last post to this list I ran strings on it thinking maybe there was some hidden text, turned up nothing. But if you disassemble the gif into individual frames, there are some interesting patterns in the graphica

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread j kensler
Time since last post to this list On Thu, 30 Sep 2004 18:56:56 -0500, Matt M. <[EMAIL PROTECTED]> wrote: > > This is just too easy: > > > > The shown times are posting-times for one day on this list, for posts > > regarding mysql. > > ah ha. > > could also be unsubscribe emails > > > > -- >

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> This is just too easy: > > The shown times are posting-times for one day on this list, for posts > regarding mysql. ah ha. could also be unsubscribe emails -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Peter Brodersen
On Thu, 30 Sep 2004 10:20:19 -0700 (PDT), in php.general [EMAIL PROTECTED] (Chris Shiflett) wrote: >You can win a free pass to take the exam by being the first to solve this >puzzle: > >http://shiflett.org/archive/55 This is just too easy: The shown times are posting-times for one day on this li

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Alex Hogan
[snip] "^Q4_[0-9]$" & Yes, your understanding of "^Q4_.[0-9]$" is wrong. [/snip] Thanks guys.., I did take the '.' out of the expression, but I also had to change the way I was using it. I replaced; if($key == ereg( "^Q4_.[0-9]$", $key)){ with if(ereg( "^Q4_.[0-9]$", $key)){ alex hogan -- PHP

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Ryan Dingman
On Sep 30, 2004, at 2:22 PM, Alex Hogan wrote: Is my ereg() wrong? My understanding is ereg("^Q4_.[0-9]$", $key) should look for a $key starting with 'Q4_' followed by a single number and place those values into an array named $Q4scores. Yes, your understanding of "^Q4_.[0-9]$" is wrong. This says

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Jason Wong
On Friday 01 October 2004 05:22, Alex Hogan wrote: > if($key == ereg("^Q4_.[0-9]$", $key)){ "^Q4_[0-9]$" -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

[PHP] Re: Need help with a regular expression

2004-09-30 Thread Alex Hogan
Please ignor... I got it... alex On Thu, 30 Sep 2004 16:22:02 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > I have a series of questions that are multiple choice. Some of the > questions have multiple answers to them. > > Those questions have answers that are indicated by a checkbox that is

Re: [PHP] Images in PHP and MySQL

2004-09-30 Thread Jason Wong
On Friday 01 October 2004 05:52, Ed Lazor wrote: > Images take up more space when stored in the db, because you're storing raw > binary data. Gif and jpeg are compression methods that convert binary data > into something smaller that can be stored in a file. ?? If you store a jpeg file into a da

Re: [PHP] Stored procedures in Mysql

2004-09-30 Thread Gareth Williams
Well, if you are running you own server at home, or have a dedicated server, you can install your own MySQL server, and use version 5, which has all this, but if you have a shared space, then you are probably running version 4.whatever, and don't have them. That's why I said not really, instead

Re: [PHP] Stored procedures in Mysql

2004-09-30 Thread Marek Kilimajer
Ed Lazor wrote: -Original Message- Not Really. Are you sure? http://dev.mysql.com/doc/mysql/en/Stored_Procedures.html Stored procedures and functions are a new feature in MySQL version 5.0. That means you can only experiment with them, not realy use them in your projects. -- PHP Genera

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Alawi Albaity
do not make the story too complicated , its too simple . On Thu, 30 Sep 2004 23:59:25 +0400, M Saleh EG <[EMAIL PROTECTED]> wrote: > Mr. Alawi > > I'm not making fun of you! yeah yeah tell me about it thats right and clear ! > I'm saying wat's right! How can you right a book about a programmin

RE: [PHP] Stored procedures in Mysql

2004-09-30 Thread Ed Lazor
> -Original Message- > Not Really. Are you sure? http://dev.mysql.com/doc/mysql/en/Stored_Procedures.html > > On 30 Sep 2004, at 21:50, Sagar C Nannapaneni wrote: > > > Hi folks, > > > > I wonder whether Mysql supports procedures and triggers > > > > :? > > > > /sagar -- PH

RE: [PHP] Images in PHP and MySQL

2004-09-30 Thread Ed Lazor
Images take up more space when stored in the db, because you're storing raw binary data. Gif and jpeg are compression methods that convert binary data into something smaller that can be stored in a file. The recent tests I did took 270megs of images and stored them into 180megs of jpg files. -Ed

RE: [PHP] list of Months

2004-09-30 Thread Graham Cossey
What you have is basically what I do, but the current month check could be tidied up and display the month name seeing as you have the array: $selected_QuoteMonth = (date('m')==$i)?'SELECTED':''; echo " $month_names[$i] "; ** CODE IS UNTESTED ** I'm sure if there is a better way then someone h

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 > > Enjoy. :-) I think I have it, why dont you email me the answer and I will double check that against what I got. [/snip] Hey Matt, want me to check your work? -- P

Re: [PHP] list of Months

2004-09-30 Thread Pahlevanzadeh Mohsen
You can do it: " for ($i=1;$i<13;$i++) { echo "$month[$i]"; } echo --- [EMAIL PROTECTED] wrote: > Hi, > to create a list of all months in drop-down menu I > use this code: > > $month_names = array(1=>'Jan', 'Feb', 'Mar', 'Apr', > 'May', 'Jun', 'Jul', > 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> You can win a free pass to take the exam by being the first to solve this > puzzle: > > http://shiflett.org/archive/55 > > Enjoy. :-) I think I have it, why dont you email me the answer and I will double check that against what I got. -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Need help with a regular expression

2004-09-30 Thread Alex Hogan
I have a series of questions that are multiple choice. Some of the questions have multiple answers to them. Those questions have answers that are indicated by a checkbox that is named something like; Q4_1 Q4_2 etc... Of those, each one of the checkboxes that indicate a correct answer is given a

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Chris Shiflett
--- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [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! Yeah, it's j

Re: [PHP] Images in PHP and MySQL

2004-09-30 Thread Jasper Howard
I'm not any kind of expert on this, but you just read the file byte for byte, dont you? So it should be the same amount of data. On Thu, 30 Sep 2004 15:51:28 -0400, GH <[EMAIL PROTECTED]> wrote: > HEre is a question that I have been wondering about: > > - Does the image file use more space in

[PHP] Re: what syntax error are they talking about? - FOLLOWUP

2004-09-30 Thread Amy Rogers
Thanks to Jay B, the puzzle is no more. Turns out assigning a field length to the text field type caused the problem. I left out the field length for this data type and the script now works. He also offered a helpful explanation about this data type: http://dev.mysql.com/doc/mysql/en/BLOB.html

Re: [PHP] Stored procedures in Mysql

2004-09-30 Thread Gareth Williams
Not Really. On 30 Sep 2004, at 21:50, Sagar C Nannapaneni wrote: Hi folks, I wonder whether Mysql supports procedures and triggers :? /sagar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Images in PHP and MySQL

2004-09-30 Thread Jay Blanchard
[snip] 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) [/snip] While better asked on a SQL list, I'll give you an answer fr

[PHP] RE: **[SPAM]** [PHP] Stored procedures in Mysql

2004-09-30 Thread Jay Blanchard
[snip] I wonder whether Mysql supports procedures and triggers [/snip] I wonder if people RTFM or STFW any more? http://dev.mysql.com/doc/mysql/en/ANSI_diff_Triggers.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stored procedures in Mysql

2004-09-30 Thread Jason Davidson
I suppose if you are thinking that mysql and zend may have collaborated to make stored procedures available in veriosn 5, then i suppose this is on topic.. otherwise, check the mysql list. Jason "Sagar C Nannapaneni" <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I wonder whether Mysql supports p

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

2004-09-30 Thread Robert Cummings
On Thu, 2004-09-30 at 15:50, Cosmin wrote: > you could try in_array() > > if (in_array(1,2,3,4,5), 6) Just for farts and giggles... possibly better speed with such a basic datatype: if( strpos( ' 1 2 3 4 5 6 7 ', " $a " ) !== false ) Cheers, Rob. -- .---

[PHP] list of Months

2004-09-30 Thread afan
Hi, to create a list of all months in drop-down menu I use this code: 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ?> $i "; } ?> Is there any better way? Thanks for any help. Afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] register globals changed to off, script breaks

2004-09-30 Thread Greg Donald
On Thu, 30 Sep 2004 14:33:30 -0400, Kevin Coyner <[EMAIL PROTECTED]> wrote: > What does work is: > > $cid = $_GET($varname); > > But that is only for when a single variable is passed, not when a bunch > of them get passed and need to be put into an array. $_GET is already an array, why reassign

[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

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] Stored procedures in Mysql

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

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

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 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] 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 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] 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] 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] 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

[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] 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] 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] 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] 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

[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)

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

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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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 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] 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

[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
--- 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

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] 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] 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 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] 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] 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] 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] 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 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] 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

[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] 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!

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

[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] 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

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_

[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] 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

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] 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] 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] 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] 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] 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 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] 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 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]

  1   2   >