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

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

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

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

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

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

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

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

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

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

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

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

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

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

<    1   2