Re: [PHP] Re: Reusing MySQL Connections - Can it be done?

2004-04-06 Thread Red Wingate
[...] > > I tried this, but, same results. If I store the Resource ID from a > > mysql_pconnect() in $GLOBALS['_CONNECT_DB'] and then call... > > > > mysql_query($query, $GLOBALS['_CONNECT_DB']); [...] > > How are you setting the global? > [...] I guess he said he is using $GLOBALS['_CONNECT_

[PHP] Re: How to Request?

2004-04-06 Thread Pavel Jartsev
Labunski wrote: ... But for example I have a link "index.php?fd=car&c=green".. How to Request more then one variable if I want to get something like this: if(isset($_REQUEST['fd','c'])){ // incorrect form. How to write this correctly? $vehicle = ($_REQUEST['fd']); $color = ($_REQUEST['c']); } i

Re: [PHP] How to Request?

2004-04-06 Thread Chris Shiflett
--- Labunski <[EMAIL PROTECTED]> wrote: > But for example I have a link "index.php?fd=car&c=green".. > How to Request more then one variable if I want to get something like > this: > > if(isset($_REQUEST['fd','c'])){ // incorrect form. How to write this > correctly? > $vehicle = ($_REQUEST['fd']

[PHP] Executing PHP shell script in PHP

2004-04-06 Thread Brent Clark
Hi Does anyone know of how to execute a php shell script in a php file. Kind Regards Brent Clark

[PHP] register_globals

2004-04-06 Thread nullevent
Hello. In my php.ini file register_globals has value Off. I have script Script echo 1. But if i create .htaccess in this dir which contains string php_value register_globals 0, my script return 0. Why i cann't change register_globals value with ini_set()? bye, mailto:[E

Re: [PHP] register_globals

2004-04-06 Thread Richard Davey
Hello, Sunday, April 4, 2004, 1:17:53 AM, you wrote: n> Why i cann't change register_globals value with ini_set()? Because it's a system level configuration value - you cannot change it in your scripts. register_globals supports PHP_INI_PERDIR and PHP_INI_SYSTEM - meaning it can only be chang

[PHP] Re: Executing PHP shell script in PHP

2004-04-06 Thread pete M
Brent Clark wrote: Hi Does anyone know of how to execute a php shell script in a php file. Kind Regards Brent Clark assuming *nix php myscript.php or stick at the beginning of the file #!/bin/php and then run ./myscript.php hope it helps pete -- PHP General Mailing List (http://www.php.net

Re: [PHP] How to...

2004-04-06 Thread Burhan Khalid
Vicente Werner wrote: I've already a php function that outputs a file from a folder outside the www path to a page, but I can't find a way to do this and then close the window where it was outed. Any 1 can point me in the right direction? You cannot close the window from within PHP. You have to u

Re: [PHP] How to...

2004-04-06 Thread Vicente Werner
El Martes, 6 de Abril de 2004 10:13, Burhan Khalid escribió: > You cannot close the window from within PHP. You have to use client side > scripting (Javascript). I've already tried sending : window.close() Just after echoing the file, but with 0 success. -- PHP General Mailing List (http://www

Re: [PHP] How to...

2004-04-06 Thread Pavel Jartsev
Vicente Werner wrote: El Martes, 6 de Abril de 2004 10:13, Burhan Khalid escribió: You cannot close the window from within PHP. You have to use client side scripting (Javascript). I've already tried sending : window.close() Just after echoing the file, but with 0 success. Try "onLoad"-event o

Re: [PHP] PHP has a bug...?

2004-04-06 Thread John W. Holmes
From: "Stephen Craton" <[EMAIL PROTECTED]> > I was making a parabola grapher and I was testing out some values. Part of > the script is to take the variable b and multiply it was negative one, then > multiply by 2 times a. I entered a test value where a equals 1, b equals 0, > and c equals 0. The

[PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1 I need to get the output of the above command for a web site I'm working on. I've tried exec(), system() and neither seems to work. It's output should be something like this(it changes hour

Re: [PHP] assigning NULL to a variable

2004-04-06 Thread Marek Kilimajer
Andy B wrote: how would you assign NULL to a variable if its original value is ""? otherwise leave it with its value... if($var === '') $var = NULL; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Max Filesize for PHP copy

2004-04-06 Thread Ashley
I posted this in the Netware PHP newsgroup, but have not gotten a response. Hopefully I will get something here. I was using a script to copy a file from one location to another. It was working great (but was only testing with small files under 1MB) and then when I tried uploading a file that

[PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1 I need to get the output of the above command for a web site I'm working on. I've tried exec(), system() and neither seems to work. It's output should be something like this(it changes hour

[PHP] Re: php + lynx + grep

2004-04-06 Thread Brian L. Ollom
> lynx --source > http://weather.noaa.gov/weather/current/KTOL.html | grep -v > '41-35-19N' |grep TOL | head -n 1 > > I need to get the output of the above command for a web site > I'm working on. I've tried exec(), system() and neither seems > to work. > > It's output should be something like thi

[PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1 I need to get the output of the above command for a web site I'm working on. I've tried exec(), system() and neither seems to work. It's output should be something like this(it changes hour

Re: [PHP] php + lynx + grep

2004-04-06 Thread John Nichel
Brian L. Ollom wrote: lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1 I need to get the output of the above command for a web site I'm working on. I've tried exec(), system() and neither seems to work. It's output should be something like

Re: [PHP] php + lynx + grep

2004-04-06 Thread Burhan Khalid
Brian L. Ollom wrote: lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1 I need to get the output of the above command for a web site I'm working on. I've tried exec(), system() and neither seems to work. You know, it might be easier if you

[PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Andy B
i have the function i made: function CreateDate($day, $month, $year) { if(!empty($day) && !empty($month) && !empty($year)){ //convert $day, $month, and $year into a valid timestamp $time= strtotime($day, mktime(0,0,0,$month,1,$year)); $time=date("YmdHis", $time); return $time; } else { return false

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread John W. Holmes
From: "Andy B" <[EMAIL PROTECTED]> > i have the function i made: > function CreateDate($day, $month, $year) { > if(!empty($day) && !empty($month) && !empty($year)){ > //convert $day, $month, and $year into a valid timestamp > $time= strtotime($day, mktime(0,0,0,$month,1,$year)); > $time=date("Ymd

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Richard Davey
Hello Andy, Tuesday, April 6, 2004, 2:18:45 PM, you wrote: AB> i have the function i made: AB> function CreateDate($day, $month, $year) { AB> if(!empty($day) && !empty($month) && !empty($year)){ AB> //convert $day, $month, and $year into a valid timestamp AB> $time= strtotime($day, mktime(0,0,0,

[PHP] execute script via email?

2004-04-06 Thread BigMark
Is there a way for me to email this script so it executes the close of a round instead of doing it from the website administration . (it is a football tipping script) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Shimi
by the way change ur if alittle.. change the && to || "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From: "Andy B" <[EMAIL PROTECTED]> > > > i have the function i made: > > function CreateDate($day, $month, $year) { > > if(!empty($day) && !empty($month) && !empty($y

Re: [PHP] php + lynx + grep

2004-04-06 Thread Red Wingate
Functions like system, exec etc aren't supported by most ISP ( at least over here in germany ). But you might give file_get_contents(); file(); ... a look as they can read the output of HTTP request which might be easier: $var = file ( 'http://weather.noaa.gov/weather/current/KTOL.html' ); fore

[PHP] GD installation

2004-04-06 Thread Shimi
im having a problem installing the GD library OS - Windows XP Pro PHP - 4.3.5 i tried in the PHP.INI get the ";" of the line with the GD extension and im getting an error that the file not found "./php_gd2.dll" i tried to copy the file to main PHP folder and WINDOWS\SYSTEM32 nothing seems to be wor

[PHP] For your reference, how to validate dynamic form fields.

2004-04-06 Thread Hawkes, Richard
Just spent far too long trying to figure out how to do this, so I thought I'd pass it on to you great guys, in case you need it for the future. I used PHP to create multiple form rows, each one numbered: "); } ?> This creates a number of rows, each with a unique form value name. The problem

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Red Wingate
I've seen this type of creating a timestamp quite often now and was even so often shaking my head about it. Guess i've seen it somewhere in the PHP Documentation's user contributed notes on day. Just google for the term and you will find many hits like this: http://www.mail-archive.com/[EMAIL P

Re[2]: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Richard Davey
Hello Red, Tuesday, April 6, 2004, 3:40:07 PM, you wrote: RW> I've seen this type of creating a timestamp quite often now and was even so RW> often shaking my head about it. Guess i've seen it somewhere in the PHP RW> Documentation's user contributed notes on day. Just google for the term and RW>

Re: [PHP] Re: Reusing MySQL Connections - Can it be done?

2004-04-06 Thread William Lovaton
This is weird, it works for me, I use Oracle though. The real application uses ADODB but it should work with the PHP native resources. I do this: 1. Define a singleton function, for example: getDBConnection() function &getDBConnection() { $db =& GLOBALS['APP_DB_CONNECTION']; if

[PHP] Limiting an array to unique values

2004-04-06 Thread Alex Hogan
Hi All, I have an array that I am using as a parameter for a query in a where clause. The array has values that are like this. Item 1 Item 2 Item 3 Item 1 Item 3 Item 3 Item 1 What I need to have is unique values only. Item 1 Item 2 Item 3 How can I sort out the redundant values in that array

Re: [PHP] Limiting an array to unique values

2004-04-06 Thread joel boonstra
On Tue, Apr 06, 2004 at 09:27:31AM -0500, Alex Hogan wrote: > Hi All, > > I have an array that I am using as a parameter for a query in a where > clause. > > The array has values that are like this. > > Item 1 > Item 2 > Item 3 > Item 1 > Item 3 > Item 3 > Item 1 > > What I need to have is uniq

RE: [PHP] Limiting an array to unique values

2004-04-06 Thread Alex Hogan
Thanks... Exactly what I needed. alex hogan > -Original Message- > From: joel boonstra [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 06, 2004 9:30 AM > To: PHP General list > Subject: Re: [PHP] Limiting an array to unique values > > On Tue, Apr 06, 2004 at 09:27:31AM -0500, Alex H

Re: [PHP] Limiting an array to unique values

2004-04-06 Thread John W. Holmes
From: "Alex Hogan" <[EMAIL PROTECTED]> > I have an array that I am using as a parameter for a query in a where > clause. > > The array has values that are like this. > > Item 1 > Item 2 > Item 3 > Item 1 > Item 3 > Item 3 > Item 1 > > What I need to have is unique values only. > > Item 1 > Item

RE: [PHP] Limiting an array to unique values

2004-04-06 Thread Alex Hogan
I guess I deserved that one... alex hogan > -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 06, 2004 9:40 AM > To: Alex Hogan; PHP General list > Subject: Re: [PHP] Limiting an array to unique values > > From: "Alex Hogan" <[EMAIL PROTECTED]

RE: [PHP] execute script via email?

2004-04-06 Thread jon roig
Sure... You can write a small php script that uses PHP's imap or pop functions to monitor any email address. (Check out http://us3.php.net/manual/en/ref.imap.php for details.) Once that's written, just schedule it as a task using the windows scheduler or cron in unix/linux. -- jon ---

RE: [PHP] Executing PHP shell script in PHP

2004-04-06 Thread jon roig
The shell script is in PHP as well? Presumably, you could either access it as an include or execute it using exec. -- jon --- jon roig web developer email: [EMAIL PROTECTED] phone: 888.230.7557 -Original Message- From: Brent Clark [mailto:[EMAIL PROTECTED] Sent:

[PHP] Connecting to Databases

2004-04-06 Thread Robb Kerr
I know that this message is more related to MySQL than PHP but I don't know of a good MySQL board. This board is VERY active and useful. As most of us, I use a variety of programs to produce my HTML/PHP/MySQL. I have run into this problem several times on a variety of programs so thought I'd po

[PHP] Help importing a text file via phpmyadmin

2004-04-06 Thread Brian Dunning
Hi all - I'm trying to use phpmyadmin's "Insert data from a textfile into table" function. I've done this before many times, exactly the same way, and never had a problem. But today I'm getting: #1148 - The used command is not allowed with this MySQL version Is there a common cause for this

Re: [PHP] Connecting to Databases

2004-04-06 Thread John W. Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> > I have found that it is not uncommon when trying to connect to a database > on an Apache server to get a return similar to "Access denied for user: > [EMAIL PROTECTED]". I just ran into this problem because I wanted to use > SQLyog to manipulate a table that

Re: [PHP] Help importing a text file via phpmyadmin

2004-04-06 Thread John W. Holmes
From: "Brian Dunning" <[EMAIL PROTECTED]> > I'm trying to use phpmyadmin's "Insert data from a textfile into table" > function. I've done this before many times, exactly the same way, and > never had a problem. But today I'm getting: > >#1148 - The used command is not allowed with this MySQL v

Re: [PHP] Connecting to Databases

2004-04-06 Thread Robb Kerr
On Tue, 6 Apr 2004 11:18:11 -0400, John W. Holmes wrote: > From: "Robb Kerr" <[EMAIL PROTECTED]> > >> I have found that it is not uncommon when trying to connect to a database >> on an Apache server to get a return similar to "Access denied for user: >> [EMAIL PROTECTED]". I just ran into this pr

[PHP] smarty

2004-04-06 Thread Angelo Zanetti
hi all has anyone used smarty before? what do you think of it? I think it's pretty nice to seperate your script (code) from your design. i would like to hear your comments and if you have any alternatives let me know. Angelo Di

[PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Andy B
> > Replace the above two lines with > > $time = date('YmdHis', mktime(0,0,0,$month,$day,$year); > ok the function works now because when i echo the output of $_SESSION['add']['start_date'] it shows the right 14 digit timestamp for the date i wanted to create... now the problem is getting it to ec

Re: [PHP] Connecting to Databases

2004-04-06 Thread Robb Kerr
On Tue, 6 Apr 2004 10:24:29 -0500, Robb Kerr wrote: > On Tue, 6 Apr 2004 11:18:11 -0400, John W. Holmes wrote: > >> From: "Robb Kerr" <[EMAIL PROTECTED]> >> >>> I have found that it is not uncommon when trying to connect to a database >>> on an Apache server to get a return similar to "Access de

Re: [PHP] Regular Expressions

2004-04-06 Thread Curt Zirzow
* Thus wrote Matt Palermo ([EMAIL PROTECTED]): > What exactly does this do: > Your original expression: /< (?!p|br) [^>]* >/x Find '<' not followed by 'p|br' until the first '>' we find. - matches < > - matches Its a bit confusing as why the matches, perhaps the docu

Re: [PHP] smarty

2004-04-06 Thread Kelly Hallman
Apr 6 at 5:33pm, Angelo Zanetti wrote: > hi all has anyone used smarty before? what do you think of it? I think > it's pretty nice to seperate your script (code) from your design. > i would like to hear your comments and if you have any alternatives There are a lot of templating systems for PHP, b

[PHP] Keyword Search

2004-04-06 Thread Robb Kerr
I've inherited a database so must live with a less than elegant structure. The table contains one "keyword" field into which the author has entered things like... Record 1 = Apples Record 2 = Apples, Bananas Record 3 = Apples, Figs Record 4 = Bananas, Figs, Dates I need to do a search on this fie

RE: [PHP] Keyword Search

2004-04-06 Thread Jay Blanchard
[snip] I've inherited a database so must live with a less than elegant structure. The table contains one "keyword" field into which the author has entered things like... Record 1 = Apples Record 2 = Apples, Bananas Record 3 = Apples, Figs Record 4 = Bananas, Figs, Dates I need to do a search on t

Re: [PHP] Keyword Search

2004-04-06 Thread Richard Davey
Hello Robb, Tuesday, April 6, 2004, 5:24:55 PM, you wrote: RK> I need to do a search on this field to return all of the records containing RK> "Figs". What's the search syntax? RK> I've tried... RK> SELECT * from dbname.tablename MATCH (dbname.fieldname) AGAINST 'Figs' RK> It doesnt' work. Does

RE: [PHP] Array_keys problem

2004-04-06 Thread Ford, Mike [LSS]
On 04 April 2004 01:13, Robin 'Sparky' Kopetzky wrote: > function key_exists($ps_key) > { > if ( in_array($ps_key, > array_keys($this->ma_arguments)) ) { > return true; > } else { > return false; > } > } Ummm -- functio

Re: [PHP] Keyword Search

2004-04-06 Thread Robb Kerr
On Tue, 6 Apr 2004 11:25:09 -0500, Jay Blanchard wrote: > [snip] > I've inherited a database so must live with a less than elegant > structure. > The table contains one "keyword" field into which the author has entered > things like... > > Record 1 = Apples > Record 2 = Apples, Bananas > Record 3

RE: [PHP] Keyword Search

2004-04-06 Thread Jay Blanchard
[snip] Thanx for the advice. I'll give it a try. BTW, I know that some of my questions belong on a SQL list. Can you recommend any? I haven't found any as active or helpful as this PHP one. [/snip] Some of them depend on the database in question. For MySql [EMAIL PROTECTED] is a good one. Many not

Re: [PHP] Re: Reusing MySQL Connections - Can it be done?

2004-04-06 Thread Justin Patrin
Red Wingate wrote: [...] I tried this, but, same results. If I store the Resource ID from a mysql_pconnect() in $GLOBALS['_CONNECT_DB'] and then call... mysql_query($query, $GLOBALS['_CONNECT_DB']); [...] How are you setting the global? [...] I guess he said he is using $GLOBALS['_CONNECT_D

Re: [PHP] smarty

2004-04-06 Thread Richard Harb
Tuesday, April 6, 2004, 5:33:03 PM, you wrote: > hi all has anyone used smarty before? what do you think of it? I think it's > pretty nice to seperate your script (code) from your design. > i would like to hear your comments and if you have any alternatives let me > know. Hi, I've used it on a

Re: [PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
> Try > > $output = `lynx --source > http://weather.noaa.gov/weather/current/KTOL.html |grep -v > '41-35-19N' |grep TOL | head -n 1` > > Those are backticks, not single quotes surrounding the > command. Backticks didn't work either. I got it to work by using a cron to > the info into a tex

Re: [PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
> Functions like system, exec etc aren't supported by most ISP > ( at least over here in germany ). But you might give > > file_get_contents(); > file(); > ... > > a look as they can read the output of HTTP request which might > be easier: > > $var = file > ( 'http://weather.noaa.gov/weather/cu

[PHP] combining variables...

2004-04-06 Thread Tristan . Pretty
Simply put, can I connect 2 variables, to make one... I want to output: $view_request_$i making for example a string: view_all_2 But I'm getting errors..? Parse error: parse error in /home/risk/public_html/download/results3.php on line 675 is there a simple explination...? **

Re: [PHP] php + lynx + grep

2004-04-06 Thread John Nichel
Brian L. Ollom wrote: Try $output = `lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1` Those are backticks, not single quotes surrounding the command. Backticks didn't work either. I got it to work by using a cron to > the info int

Re: [PHP] combining variables...

2004-04-06 Thread Richard Davey
Hello Tristan, Tuesday, April 6, 2004, 6:14:19 PM, you wrote: TPrsc> Simply put, can I connect 2 variables, to make one... TPrsc> I want to output: TPrsc> $view_request_$i TPrsc> making for example a string: TPrsc> view_all_2 I believe it's $view_request_$$i -- Best regards, Richard Davey

[PHP] xml_set_default_handler under php5

2004-04-06 Thread Hundiak, Arthur
I can't seem to get xml_set_default_handler to work under php5RC1. I made a very simple test case but the handler just does not seemed to be getting called. It works under 4.3.4. I gather the xml_ routines now use libxml2 instead of expat. I have libxml2 2.6.5 which is pretty recent. Anyone el

Re: [PHP] combining variables...

2004-04-06 Thread Tristan . Pretty
Sadly, it didnb't work... here's my code... I wanna repeat and output final variables 6 times... == for ($i = 1; $i <= 6; $i++) { if ($view_request_bu_$i != '') { $view_request_$i = strtolower($view_request_bu_$i); } else if ($

[PHP] Re: combining variables...

2004-04-06 Thread K.Bogac Bokeer
$i = 2; $var = "view_request_$i"; $value = $$var; Tristan Pretty wrote: Simply put, can I connect 2 variables, to make one... I want to output: $view_request_$i making for example a string: view_all_2 But I'm getting errors..? Parse error: parse error in /home/risk/public_html/download/results3.

Re: [PHP] Re: combining variables...

2004-04-06 Thread Richard Davey
Hello K.Bogac, Tuesday, April 6, 2004, 6:34:50 PM, you wrote: KBB> $i = 2; KBB> $var = "view_request_$i"; KBB> $value = $$var; That's it, I knew there was a variable variable ($$) in there somewhere :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP Genera

Re: [PHP] php + lynx + grep

2004-04-06 Thread John Nichel
Brian L. Ollom wrote: What's the output you're looking for. When I run that line of code, and echo out $output, I get... KTOL 061552Z 22013KT 10SM CLR 11/M03 A3001 RMK AO2 SLP164 T0033 On a website or command line? Command line is the easy part, but I'm having problems getting that to work

Re: [PHP] Connecting to Databases

2004-04-06 Thread gohaku
On Apr 6, 2004, at 10:57 AM, Robb Kerr wrote: I know that this message is more related to MySQL than PHP but I don't know of a good MySQL board. This board is VERY active and useful. Have you checked out MySQL General Discussion over at: http://lists.mysql.com/ ? -- PHP General Mailing List (http

Re: [PHP] php + lynx + grep

2004-04-06 Thread gohaku
On Apr 6, 2004, at 12:53 PM, Brian L. Ollom wrote: Try $output = `lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1` Those are backticks, not single quotes surrounding the command. I use following to retrieve output with Lynx: $out =

[PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread Merritt, Dave
All, I have a form on which the user is supposed to select a variable type (boolean, integer, real, date/time, text) from a select box and enter the default value for this selected variable type in a text box. I'm trying to validate that the default value entered matches the variable type selecte

Re: [PHP] combining variables...

2004-04-06 Thread Christian Jerono
Guess it will work this way (think it's the right syntax :-)) for ($i = 1; $i <= 6; $i++) { if (${'view_request_bu_'.$i} != '') { ... } } etc pp. Am Dienstag, 6. April 2004 19:24 schrieb [EMAIL PROTECTED]: > Sadly, it didnb't work... > > here's my code... I wanna repeat and outpu

[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Ben Ramsey
I've asked about PHP Access Violation errors before (this very same error, as a matter of fact), and every time I ask, I get no response. It's been 24 hours, and no one on php-general, pear-general, or #php and #pear in Freenode IRC has responded to this particular post. Do I smell bad? Please

Re: [PHP] Connecting to Databases

2004-04-06 Thread John W. Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> > Unfortunately, SQLyog and Dreamweaver reside on the same machine. Should I > create a new user for the database which is "[EMAIL PROTECTED]"? Why would > SQLyog require this while Dreamweaver does not? And, why doesn't identical > connection information work

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread John W. Holmes
From: "Andy B" <[EMAIL PROTECTED]> > > Replace the above two lines with > > > > $time = date('YmdHis', mktime(0,0,0,$month,$day,$year); > > > > ok the function works now because when i echo the output of > $_SESSION['add']['start_date'] it shows the right 14 digit timestamp for the > date i wanted

Re: [PHP] Connecting to Databases

2004-04-06 Thread John W. Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> > I solved the problem by adding my IP address to the Access Hosts list for > the database. Fortunately I use a cable modem with a static IP address, but > if I were using a dialup with a dynamic IP, would I have to add that IP as > an Access Host every time I

Re: [PHP] smarty

2004-04-06 Thread Chris de Vidal
Kelly Hallman said: > Apr 6 at 5:33pm, Angelo Zanetti wrote: >> hi all has anyone used smarty before? what do you think of it? I think >> it's pretty nice to seperate your script (code) from your design. >> i would like to hear your comments and if you have any alternatives > > There are a lot of t

Re: [PHP] combining variables...

2004-04-06 Thread John W. Holmes
From: <[EMAIL PROTECTED]> > I want to output: > $view_request_$i echo ${'view_request_'.$i}; echo ${"view_request_$i"}; Read the manual section on Variable Variables, please. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] [php 5] static class variable question

2004-04-06 Thread Bill Zeller
[PHP5 RC1, Windows XP Pro] Hi, I have a few classes called Audio, System, etc. In order to not pollute the namespace (if someone else has a System class, for example), I'd like to separate my classes. One way of doing this would be to preprend each class with some text, to make my classes somethin

[PHP] Using Amazon Web Services - Publisher Results

2004-04-06 Thread Nicole
I read these 2 articles to get me started with using Amazon Web Services: http://www.devshed.com/c/a/PHP/Usin...-SOAP-part-1/ && http://www.devshed.com/c/a/PHP/Usin...-SOAP-part-2/ I have a page with a Table of Contents linking to specific Browse Nodes that would be of interest to our viewers. I

RE: [PHP] smarty

2004-04-06 Thread Chris W. Parker
Chris de Vidal on Tuesday, April 06, 2004 11:43 AM said: > I could have put a tag in the template like {bio} but that'd mean > maintaining HTML in the PHP code which I wanted to avoid (left the > "prettyness" to the Front Page developer). Instead, I put something >

[PHP] Re: [php 5] static class variable question

2004-04-06 Thread Bill Zeller
A note: > by creating a class called myProject and having Audio and System be static > variables, referring to the classes Audio and System. The Audio and System This should be constant, not static. Sorry. -bill "Bill Zeller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [PHP5 RC

[PHP] Re: GD installation

2004-04-06 Thread Shimi
Please im desperet for help! "Shimi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > im having a problem installing the GD library > OS - Windows XP Pro > PHP - 4.3.5 > i tried in the PHP.INI get the ";" of the line with the GD extension > and im getting an error that the file not fou

Re: [PHP] smarty

2004-04-06 Thread John W. Holmes
From: "Chris de Vidal" <[EMAIL PROTECTED]> > I could have put a tag in the template like {bio} but that'd mean > maintaining HTML in the PHP code which I wanted to avoid (left the > "prettyness" to the Front Page developer). Instead, I put something like > this in the template: > {if $level > 2}

Re: [PHP] combining variables...

2004-04-06 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > Sadly, it didnb't work... > > here's my code... I wanna repeat and output final variables 6 times... > > == > > for ($i = 1; $i <= 6; $i++) { > > if ($view_request_bu_$i != '') { >

Re: [PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread John W. Holmes
From: "Merritt, Dave" <[EMAIL PROTECTED]> > I have a form on which the user is supposed to select a variable type > (boolean, integer, real, date/time, text) from a select box and enter the > default value for this selected variable type in a text box. I'm trying to > validate that the default va

Re: [PHP] Keyword Search

2004-04-06 Thread John W. Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> > I've inherited a database so must live with a less than elegant structure. > The table contains one "keyword" field into which the author has entered > things like... > > Record 1 = Apples > Record 2 = Apples, Bananas > Record 3 = Apples, Figs > Record 4 = B

[PHP] Not exactly PHP....

2004-04-06 Thread Shimi
can anyone email me explaining me how to crate my own news group? for free... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] smarty

2004-04-06 Thread Kelly Hallman
Apr 6 at 2:43pm, Chris de Vidal wrote: > Given that scripts are compiled the first time they're ran, you'll > never* notice the bloat and never lack performance; it's the same as > real PHP code and can be optimized with a caching engine like Zend. Certainly. However, the Smarty compiler is about

RE: [PHP] Not exactly PHP....

2004-04-06 Thread Jay Blanchard
[snip] can anyone email me explaining me how to crate my own news group? for free... [/snip] First, you get a box (sometimes known as a crate) Brought to you by the This Message Didn't Cost You a Dime & May Have Brought A Smile To Another's Face Committee, R. Feynman, Treasurer -- PHP Genera

[PHP] Pulling Certain Data

2004-04-06 Thread Jason T. Davidson
Community- I am a first time databaser and am having trouble pulling information from a database to display on a site. Not every entry is supposed to show up on the web page, but does so. I have tried IF statements without any help. Here is what I have so far:

RE: [PHP] Not exactly PHP....

2004-04-06 Thread Chris W. Parker
Jay Blanchard on Tuesday, April 06, 2004 12:37 PM said: > [snip] > can anyone email me explaining me how to crate my own news group? for > free... > [/snip] > > First, you get a box (sometimes known as a crate) > > Brought to you by the This Message Didn't Cost

RE: [PHP] Pulling Certain Data

2004-04-06 Thread Jay Blanchard
[snip] I am a first time databaser and am having trouble pulling information from a database to display on a site. Not every entry is supposed to show up on the web page, but does so. I have tried IF statements without any help. Here is what I have so far: $r1="SELECT * FROM $main_tbl"; [/snip]

Re: [PHP] Pulling Certain Data

2004-04-06 Thread John W. Holmes
From: "Jason T. Davidson" <[EMAIL PROTECTED]> > I am a first time databaser and am having trouble pulling information from a > database to display on a site. Not every entry is supposed to show up on > the web page, but does so. I have tried IF statements without any help. > Here is what I have

Re: [PHP] Pulling Certain Data

2004-04-06 Thread hitek
Sounds like you need a where clause in your sql query: $r1="SELECT * FROM $main_tbl where status='A'"; replace 'status' with whatever you called the status field in your table. Keith At 12:40 PM 4/6/2004, Jason T. Davidson wrote: Community- I am a first time databaser and am having trouble pul

Re: [PHP] Not exactly PHP....

2004-04-06 Thread Christian Jerono
[...] > > [snip] > > can anyone email me explaining me how to crate my own news group? for > > free... > > [/snip] > > > > First, you get a box (sometimes known as a crate) > > > > Brought to you by the This Message Didn't Cost You a Dime & May Have > > Brought A Smile To Another's Face Committ

Re: [PHP] Not exactly PHP....

2004-04-06 Thread Red Wingate
[...] > > [snip] > > can anyone email me explaining me how to crate my own news group? for > > free... > > [/snip] > > > > First, you get a box (sometimes known as a crate) > > > > Brought to you by the This Message Didn't Cost You a Dime & May Have > > Brought A Smile To Another's Face Committ

[PHP] Thanks for all the helped!

2004-04-06 Thread Jason T. Davidson
Looks like I went to the right place as I got many responses and what gave me three days of headaches only took 5 mintues. Thanks Again! -Jason T. Davidson

RE: [PHP] combining variables...

2004-04-06 Thread Vishal Patel
You could dynamically generate variable names using: ${view_request_}.$i} = $value; This will generate: $view_request_1 $view_request_2 ... Vishal. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:14 PM To: [EMAIL PROTECTED] Subject: [

Re: [PHP] Pulling Certain Data

2004-04-06 Thread Daniel Clark
Try something like this. (assuming "POSITION" is your peoples status within the organization $r1="SELECT * FROM $main_tbl WHERE position IN ('A', 'I', 'L') ORDER BY position"; > I would like to only show people who are active within our roster and > within > the database I have identified those

[PHP] [fixed][PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Andy B
"date() expects a UNIX timestamp. MMDDHHMMSS is NOT a UNIX timestamp. So, instead of converting the UNIX timestamp to MMDDHHMMSS in your function, why not leave it a UNIX timestamp? Then you can send it through date() whenever you want it formatted. " yea...it works now...hmmm... dont know

Re: [PHP] smarty

2004-04-06 Thread Chris de Vidal
Kelly Hallman said: > Apr 6 at 2:43pm, Chris de Vidal wrote: >> Given that scripts are compiled the first time they're ran, you'll >> never* notice the bloat and never lack performance; it's the same as >> real PHP code and can be optimized with a caching engine like Zend. > > Certainly. However, t

[PHP] notice:use of undefined constant: add-assumed 'add' in..........

2004-04-06 Thread Andy B
i have something like this: if(!empty($_SESSION['add']['start_date']) && !empty($_SESSION['add']['end_date'])..)){ and i get the unexpected error: notice:use of undefined constant: add-assumed 'add' in (filename). dont quite understand why that is since i used other code that i have

  1   2   >