RE: [PHP] include/require inside of function

2003-07-06 Thread Ow Mun Heng
Hmm.. Funny I was having this same problem yesterday and wanted to post. Here's My question, a variable is not actually global is not actually global until I make it global through "global $make_this_global" and then I can assess it using $GLOBAL[$make_this_global]. Anot

[PHP] Looking for a good coder

2003-07-06 Thread Darin
I am interested in getting bids via email for an expert system that I want to build. It involves three distinct modules with the following requirements… Technical Specifications: 1. Can be implemented as a web-based ASP model or turn-key box for loading on internal servers. 2. Program

[PHP] Passing multiple form values in if statement

2003-07-06 Thread Miranda, Joel Louie M
I have a form which passes information and generates a user submitted field. Its actually a business card template program, on this template program I have Some required fields and non required fields which I while use telephone extension And webaddress url options. Now my problem is if they don'

RE: [PHP] Optional form variables (IDEA?)

2003-07-06 Thread Miranda, Joel Louie M
> Yes. Try it first. Let us know if (and how) it doesn't work. Its working, just having a hard time w/ multiple values -- Thank you, Louie -Original Message- From: - Edwin - [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 4:44 PM To: Miranda, Joel Louie M Cc: [EMAIL PROTECTED]

[PHP] multiple sessions

2003-07-06 Thread David T-G
Hi, all -- I am trying to integrate phpbb into our web site and do so such that we set the login info before getting into the forum. We have a user 'x' who has a numeric user_id 'y' in the phpbb system that we'll need to set. We store that user_id in our system for other uses as well. Our cooki

[PHP] Re: PHP crashing with using Oracle

2003-07-06 Thread Lang Sharpe
I had to change ext/oci8/config.m4 Remove the line highlighted in red on this page. http://cvs.php.net/diff.php/php-src/ext/oci8/config.m4?login=2&r1=1.37.2.6&r2=1.37.2.7&ty=h The line is AC_DEFINE(HAVE_OCI8_SHARED_MODE,1,[ ]) Then do configure/make/make install again. That will get the oci8 su

Re: [PHP] print vs. heredoc

2003-07-06 Thread Greg Donald
> I'm looking for opinions as to which is better, print or heredoc. I prefer heredoc mostly because I do not enjoy editing html that is full of backslashes. I build up the html and only output anything at the end. This allows for custom compression, whitespace stripping, etc. > print makes t

[PHP] print vs. heredoc

2003-07-06 Thread Sparky Kopetzky
Hi, again!! I'm looking for opinions as to which is better, print or heredoc. print makes the code layout look nice and eazy to debug, where heredoc IS faster but makes the code look like a nightmare and I'm pretty picky about what looks good. Robin E. Kopetzky Black Mesa Computers/Internet Ser

Re: [PHP] Having problems with an IF statement, just doesn't make sense

2003-07-06 Thread Chris Hayes
At 19:18 7-7-2003, you wrote: I am using the following if statement ... if (isset($theme)) { print("Current theme is $theme"); require "content/header_$theme.php"; } else { print("$theme"); require "content/header.php"; } now one would think that if it didn't return true that the else stat

Re: [PHP] Warning: Invalid argument supplied for foreach()

2003-07-06 Thread Philip Olson
On Sun, 6 Jul 2003, arnaud gonzales wrote: > Hi all, > I am getting crazy, can't understand what i missed! > Does anybody know? > > $champs = array ("titre_art" => "h3" ,"nom" => "bleu", > "prenom" => "green", "resume" => "bold"); > > foreach($champs as $key => $value) { >

RE: [PHP] Warning: Invalid argument supplied for foreach()

2003-07-06 Thread Dave [Hawk-Systems]
>Hi all, >I am getting crazy, can't understand what i missed! >Does anybody know? > >$champs = array ("titre_art" => "h3" ,"nom" => "bleu", "prenom" => "green", >"resume" => "bold"); > >foreach($champs as $key => $value) { > > >echo "$row($key))"; > } never used foreach()... but I

RE: [PHP] Warning: Invalid argument supplied for foreach()

2003-07-06 Thread Sævar Öfjörð
Don't you think it should be like this? foreach($champs as $key=>$value) { echo"$key"; //--^ } -Original Message- From: arnaud gonzales [mailto:[EMAIL PROTECTED] Sent: 6. júlí 2003 20:51 To: Php-General Subject: [PHP] Warning: Invalid argument supplied

php-general Digest 6 Jul 2003 20:50:39 -0000 Issue 2160

2003-07-06 Thread php-general-digest-help
php-general Digest 6 Jul 2003 20:50:39 - Issue 2160 Topics (messages 154115 through 154145): Question 154115 by: The.Rock 154118 by: Tom Rogers Re: does anyone know how to tell if a PHP scrip is being executed from the command line not a server HTTP request?? 154116

[PHP] Warning: Invalid argument supplied for foreach()

2003-07-06 Thread arnaud gonzales
Hi all, I am getting crazy, can't understand what i missed! Does anybody know? $champs = array ("titre_art" => "h3" ,"nom" => "bleu", "prenom" => "green", "resume" => "bold"); foreach($champs as $key => $value) { echo "$row($key))"; } TIA. zeg

[PHP] fsockopen/curl failure, ipv6 warning??

2003-07-06 Thread alex
Hello. I'll try wording my question more succinctly in the hopes of getting a response from some kind soul. I'm trying to do a SSL post to a particular secure server, but all methods are failing to connect. curl gives an error 6 = "Couldn't resolve host", and fsockopen (using the OpenSSL-depen

Re: [PHP] how to modify in the db

2003-07-06 Thread Miles Thompson
Start with a good tutorial on PHP and MySQL - there are scads of them around, and Julie Meloni has some excellent examples at www.thickbook.com. At 04:41 PM 7/6/2003 -0300, Kevin Fradkin wrote: hi... i have this secuence to insert data to my db mysql_query ("INSERT INTO my_table( number,name,sur

Re: [PHP] how to modify in the db

2003-07-06 Thread Philip Olson
use UPDATE Also, be sure to learn basic SQL before use: http://www.w3schools.com/sql/ http://www.sqlcourse.com/ http://www.onlamp.com/pub/ct/19 Regards, Philip On Sun, 6 Jul 2003, Kevin Fradkin wrote: > hi... > i have this secuence to insert data to my db > > mysql_query > ("INSERT INTO my

[PHP] how to modify in the db

2003-07-06 Thread Kevin Fradkin
hi... i have this secuence to insert data to my db mysql_query ("INSERT INTO my_table( number,name,surname ) values ('$number','$name','$surname' )"); i want to ask what do i have to do if i want to modify instead of insert when this data already exists... for example.. i have in my_table numb

[PHP] PHP 4.3.1, ini_set, ini_get, memory_limit, and max_input_time

2003-07-06 Thread Raymond C . Rodgers
While documenting I just wrote for a client, I noted that there were several server variables (in the form of php.ini configuration settings) that might come into play that were generally the responsibility of the web master of the server, and thus beyond my control. These were memory_limit, ma

Re: [PHP] Incrementing counter from an HTML page.

2003-07-06 Thread Mike Migurski
>The problem I am facing is that my Index page can be an HTML page only.. >not PHP. I cant use framesets, redirects etcetera. I want to build my >own Counter using PHP & mySQL Database.. with the "Users Online" and >"Total Hits" feature. How can I increment the counter or affect a PHP >code using

Re: [PHP] mysql_query

2003-07-06 Thread Chris Knipe
> one last question for the day... > if in one cell i have two names. ex 'mary eleanor' > and i want to search by typing 'ele' with name LIKE '$name%' will not give > me mary eleanor as a result... > any ideas? *sighs* LIKE '%$name%' As I said... Read the MySQL Manual. -- PHP General M

Re: [PHP] Having problems with an IF statement, just doesn't make sense

2003-07-06 Thread David Otton
On Mon, 7 Jul 2003 10:18:04 -0700, you wrote: >if (isset($theme)) { > print("Current theme is $theme"); > require "content/header_$theme.php"; >} else { > print("$theme"); > require "content/header.php"; >} > >now one would think that if it didn't return true that the else >statement wouldn't

Re: [PHP] mysql_query

2003-07-06 Thread Kevin Fradkin
Thnx! :) one last question for the day... if in one cell i have two names. ex 'mary eleanor' and i want to search by typing 'ele' with name LIKE '$name%' will not give me mary eleanor as a result... any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Can I use PHP to draw a chart?

2003-07-06 Thread Greg Donald
> It's the first time I use PHP as my project server-side language, > and I wanna know if PHP can be used to draw a chart or any other > suggestions. Thx Yeah, PHP will do that. I use JPGraph myself: http://www.aditus.nu/jpgraph/ -- Greg Donald http://destiney.com/ -- PHP General Mailing

[PHP] Having problems with an IF statement, just doesn't make sense

2003-07-06 Thread BoBB
I am using the following if statement ... if (isset($theme)) { print("Current theme is $theme"); require "content/header_$theme.php"; } else { print("$theme"); require "content/header.php"; } now one would think that if it didn't return true that the else statement wouldn't print anything

[PHP] Can I use PHP to draw a chart?

2003-07-06 Thread Sheawh
It's the first time I use PHP as my project server-side language, and I wanna know if PHP can be used to draw a chart or any other suggestions. Thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_query

2003-07-06 Thread Chris Knipe
- Original Message - From: "Kevin Fradkin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 06, 2003 6:40 PM Subject: Re: [PHP] mysql_query > the problem is if i put 821000 i will have as result all number > 821000 > including 83 > > and i only need numbers begining wi

[PHP] fsockopen -> returning results from port 80, 8080 and 443 requests

2003-07-06 Thread Dave [Hawk-Systems]
Creating a quick script where we can poll the services on a particular server to verify if they are running or not. this will be included in a larger scope application once the details are worked out. Am having a problem getting results from queries to web server ports though. Port 80(std), 8080(

Re: [PHP] mysql_query

2003-07-06 Thread Kevin Fradkin
the problem is if i put 821000 i will have as result all number > 821000 including 83 and i only need numbers begining with the numbers i entered.. i will try now the other thing!.. thnx! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] newbie query

2003-07-06 Thread rob
on 7/7/03 2:31 AM, Burhan Khalid at [EMAIL PROTECTED] wrote: dear list My server runs requires that if I want to write to file that I place my php script in the cgi-bin and it treats it as a cgi script. I am new to this and cannot get it to work. Would anyone know of a tutorial I could use to get t

Re: [PHP] mysql_query

2003-07-06 Thread Burhan Khalid
On Sunday, July 6, 2003, 7:26:06 PM, Kevin wrote: KF> and now.. if in one cell i have for example... "John Matheus" KF> when i do the query i have to put exactly john matheus to find it... KF> is there any way to just write jo and search in every cell that contains KF> those words? try this SELE

[PHP] mysql_query

2003-07-06 Thread Kevin Fradkin
and now.. if in one cell i have for example... "John Matheus" when i do the query i have to put exactly john matheus to find it... is there any way to just write jo and search in every cell that contains those words? example... i have 1 column with 5 rows each 6 numbers inside : 821554 821674 81

Re: [PHP] echo not working!!!

2003-07-06 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sun, 6 Jul 2003 at 16:57, lines prefixed by '>' were originally written by you. > PHP is running."); ?> > it displays the string AND the closing double quote, paren, semicolon, > question mark, and > on a new line. What the hell is going on h

Re: [PHP] echo not working!!!

2003-07-06 Thread Tom Rogers
Hi, Sunday, July 6, 2003, 3:55:39 PM, you wrote: a> I'm setting up php on the apache server for the first time here running a> Slackware linux, and I cannot get the echo command to display properly. a> My source file is phptest.php and it looks like this: a> a> a> PHP Test a> a> a> a> a> P

[PHP] echo not working!!!

2003-07-06 Thread aravandor
I'm setting up php on the apache server for the first time here running Slackware linux, and I cannot get the echo command to display properly. My source file is phptest.php and it looks like this: PHP Test PHP is running."; ?> When the page is displayed on my server, it doesn't show th

Re: [PHP] Reading from remote file

2003-07-06 Thread Philip Olson
This is already fixed in CVS. The entire example is bogus, it should not be using filesize($filename) either. Here's what's in CVS (the manual will be rebuilt sometime in the next week): http://www.example.com/";, "rb"); $contents = ""; do { $data = fread($handle, 8192); if (strlen($da

RE: [PHP] mysql_query

2003-07-06 Thread Sævar Öfjörð
Hmm. Should have been like this.. -Original Message- From: Sævar Öfjörð [mailto:[EMAIL PROTECTED] Sent: 6. júlí 2003 14:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] mysql_query SELECT * FROM my_table WHERE var1='$var1' AND var2='$var2' --^ you u

Re: [PHP] mysql_query

2003-07-06 Thread Sævar Öfjörð
SELECT * FROM my_table WHERE var1='$var1' AND var2='$var2' --^ you use AND -Original Message- From: Kevin Fradkin [mailto:[EMAIL PROTECTED] Sent: 6. júlí 2003 13:43 To: [EMAIL PROTECTED] Subject: [PHP] mysql_query hi... 1 question... how can i

[PHP] mysql_query

2003-07-06 Thread Kevin Fradkin
hi... 1 question... how can i show in a table the query i'm trying to make this is what i want : select * from my_table where var1='$val1' /* here comes the trouble cause i want to use 2 instead of only one... */ var2='$val2' how you have to use it for more than one? where var1='$val1' ??? var2

Re: [PHP] Reading from remote file

2003-07-06 Thread Dan Anderson
Since you're using a break to determine when to leave why not... > $handle = fopen ("http://www.php.net/";, "rb"); > $contents = ""; while (!(feof($handle))) > { > $data = fread ($handle, filesize ($filename)); > if (strlen($data) == 0) { > break; > } > $contents .= $dat

Re: [PHP] Question

2003-07-06 Thread Tom Rogers
Hi, Sunday, July 6, 2003, 3:15:56 AM, you wrote: TR> When is the relase date for php 5? at this point I think the only digits filled in are 200x-xx-xx -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reading from remote file

2003-07-06 Thread Daniele Baroncelli
Hi guys, I am trying to read from a remote file, by using an example reported at the manual page for the fread function: http://www.php.net/";, "rb"); $contents = ""; do { $data = fread ($handle, filesize ($filename)); if (strlen($data) == 0) { break; } $contents .= $data;

Re: [PHP] does anyone know how to tell if a PHP scrip is beingexecuted from the command line not a server HTTP request??

2003-07-06 Thread Robert Cummings
I don't know if it is a great way, but it has worked for me for a long time now. I make the following test: isset( $HTTP_SERVER_VARS['SERVER_PORT'] Cheers, Rob. On Sun, 2003-07-06 at 04:48, Jeffrey D. Means wrote: > I am trying to write a script but for security I need to verify that it is >

[PHP] Question

2003-07-06 Thread The.Rock
When is the relase date for php 5? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 6 Jul 2003 08:48:44 -0000 Issue 2159

2003-07-06 Thread php-general-digest-help
php-general Digest 6 Jul 2003 08:48:44 - Issue 2159 Topics (messages 154073 through 154114): Re: Failed to Receive in E:\...\mailscript.php on line 25 154073 by: Håkon Strandenes 154109 by: Jason Wong 154110 by: Håkon Strandenes 154111 by: Håkon Strandenes

[PHP] does anyone know how to tell if a PHP scrip is being executed from the command line not a server HTTP request??

2003-07-06 Thread Jeffrey D. Means
I am trying to write a script but for security I need to verify that it is not executed by a web server. At this point I have just placed it outside the htdocs tree but would like to build into the script a test to die if it is being executed by a web server. Thanks Jeff Means CIO for MeansPC [E

Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25

2003-07-06 Thread Jason Wong
On Sunday 06 July 2003 14:59, Håkon Strandenes wrote: > This is not my server, so I cannot change the settings in php.ini. This > is my ISP's server, and I think they run SMPT om the same server. And > yes, this is a Windows 2000 server. A quick and easy way to check whether mail() would work is t

Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25

2003-07-06 Thread Jason Wong
On Sunday 06 July 2003 14:55, Håkon Strandenes wrote: Please trim your posts! > How do I specify witch SMTP server I shall use? If you're using mail() then in php.ini. > I cannot set this in the > PHP.ini file, Why not? If it's on some hosting service then obviously the hosting service have