Re: [PHP] Creating multidimensional array dynamically

2001-12-06 Thread Mike Eheler
Oops.. my bad $quarterbacks[$data['NAME']][$key] = $value; Mike Mike Eheler wrote: > $result = mysql_query("select NAME,ATTEMPTS,COMPLETIONS,YARDS,TD,INT > from players where pos = 'QB'"); > // or whatever it takes to get just qb's > while ($data = mysql_fetch_array($result)) { >foreach ($

Re: [PHP] Function Alias: mysql()

2001-12-06 Thread Dennis Moore
I think it is aliased to mysql_db_query(). However the documentation states that this function is deprecated in PHP4.0.6. "Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use mysql_select_db() and mysql_query() instead. " (www.php.net documentation) My questi

[PHP] Strange problem with some includes...

2001-12-06 Thread Deron
I have this page: http://www.metalages.com/2002/reviews/rev-evergrey-insearchoftruth.php If you look on the bottom, it says: Warning: Failed opening 'http://www.metalages.com/includes/relatedinfo/inc-evergrey.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/metalages/2002/rev

[PHP] move_uploaded_file on NT Server

2001-12-06 Thread jimtronic
Hi, I've been having a problem moving uploaded files recently. I have a script in directory /foo/bar and it has no trouble moving a file into /foo/rex but it can't move a file into /foo/zip This is strange because I created all the folders and the scripts, so presumably they would hav

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread jimtronic
It looks like you put a full URL into your include ... which would be incorrect. The syntax is ... include("path/relative/to/your/script"); jim -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.n

RE: [PHP] Strange problem with some includes...

2001-12-06 Thread Martin Towell
look at read permissions, does the web server have permissions to read those files? -Original Message- From: Deron [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 9:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Strange problem with some includes... I have this page: http://www.m

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Ken
OK, this time the \n worked. The only thing I changed was using / delimiters instead of | delimiters in the search string. No idea if/why that would affect anything in the replacement string. Anyway, I finally came up with exactly what I wanted: preg_replace(array("/\s*\n+\s*/", "/[ ]+/"), ar

[PHP] Forms and Results with PHP

2001-12-06 Thread Ben Clumeck
I have a form that a user can put his contact info. This form posts to a file called results.php. The results.php file has a mail() command and the echo (i.e. ) to show the user confirmation of what he has submitted. However, if someone goes directly to results.php it will show Name: blank and

RE: [PHP] Forms and Results with PHP

2001-12-06 Thread Martin Towell
what about checking for some mandatory field and if it doesn't exist, display an error message. something like: -Original Message- From: Ben Clumeck [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 9:14 AM To: [EMAIL PROTECTED] Subject: [PHP] Forms and Results with PHP I hav

Re: [PHP] Forms and Results with PHP

2001-12-06 Thread jimtronic
It's good practice to check that needed variables were passed at the top of the page. if($name) { normal display exit } else { error display exit } To take this further, you should verify that not only was the required data sent, but that it was in the corre

[PHP] Re: Forms and Results with PHP

2001-12-06 Thread Chris Noble
Have it check to see if the submit button has been clicked. such as the name attribute you use on it. like if(!isset($HTTP_POST_VARS[submit])) { header("Location: formpage.php"); } Chris N. "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I ha

RE: [PHP] Forms and Results with PHP

2001-12-06 Thread Gareth Hastings
I do forms like this The if line just checks to see if any data has been passed if it has it prints what you send else if shows the form -Original Message- From: Ben Clumeck [mailto:[EMAIL PROTECTED]] Sent: 06 December 2001 17:14 To: [EMAIL PROTECTED] Subject: [PHP] Forms and

[PHP] HTTP Environment Varialbles

2001-12-06 Thread Alex Shi
Hi, I have a question about how we can read environment variables. In perl we can do this as following: $caller = $ENV{'HTTP_REFERER'}; $doc_name = $ENV{'DOCUMENT_NAME'}; $visitor_ip = $ENV{'REMOTE_ADDR'}; $visitor_host = $ENV{'REMOTE_HOST'}; Actually in Perl, either SSI or CGI, we can get all

Re: [PHP] HTTP Environment Varialbles

2001-12-06 Thread Andrey Hristov
var_dump($HTTP_SERVER_VARS); var_dump($HTTP_POST_VARS); var_dump($HTTP_GET_VARS); var_dump($HTTP_COOKIE_VARS); var_dump($HTTP_ENV_VARS); since 4.1.0 these are deprecated. Use $_SERVER, $_POST, $_GET, $_COOKIE, $_ENV Regards, Andrey Hristov - Original Message - From: "Alex Shi" <[EMAIL P

Re: [PHP] HTTP Environment Varialbles

2001-12-06 Thread Rasmus Lerdorf
> var_dump($HTTP_SERVER_VARS); > var_dump($HTTP_POST_VARS); > var_dump($HTTP_GET_VARS); > var_dump($HTTP_COOKIE_VARS); > var_dump($HTTP_ENV_VARS); > > since 4.1.0 these are deprecated. Use > $_SERVER, $_POST, $_GET, $_COOKIE, $_ENV They are not deprecated. They will still work. $_* are slightl

[PHP] Announcement: Smarty template engine 1.5.0 available

2001-12-06 Thread Monte Ohrt
Several feature enhancements were made to this version, most notably the {foreach ...} command which is an alternative to {section ...} with an easier syntax for looping through a single array of values. Several functions were enhanced so that the output can be automatically assigned to a template

[PHP] Sending PHP script output to stderr?

2001-12-06 Thread Ken
Is there a way to get a PHP script to return text that would be directed to stderr instead of to stdout? This is for a PHP script that I'm running via cron, and I don't need its output (which at the least includes the annoying "Content-type: text/html" at the top), but I would like to know abo

RE: [PHP] Sending PHP script output to stderr?

2001-12-06 Thread Martin Towell
$fp = fopen("php://stderr", "w"); fputs($fp, "error message"); fclose($fp); never tried it, but that's what it says in the manual (look at fopen()) -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 10:01 AM To: PHP list Subject: [PHP] Sending PHP scr

Re: [PHP] Again (still?) problems with php and ldaps

2001-12-06 Thread Stig Venaas
On Thu, Dec 06, 2001 at 12:08:12PM +0100, Susanne Benkert wrote: > After recompiling my Php with the newest LDAP-Libraries and Openssl > "ldap_connect("ldap://hostname";)" works. But I still have problems with > "ldap_connect("ldaps://hostname")": Could you check whether ldapsearch -H "ldaps://h

Re: [PHP] HTTP Environment Varialbles

2001-12-06 Thread Andrey Hristov
Searching Google : http://php.weblogs.com/discuss/msgReader$934 List: php-dev Subject: [PHP-DEV] PHP 4.0.7 From: Zeev Suraski <[EMAIL PROTECTED]> Date: 2001-08-08 18:48:19 As those of you who are subscribed to php-cvs may have noticed, Andi and I implemented today the functionality I

[PHP] Help displaying an image stored in a database...

2001-12-06 Thread Christofe DuBois
I would like to store an image in a database and then allow users to select the image for display... I can upload the file, and write it to the database. I base64_encode ' d it and dropped it in a longblob field. I then query the database, pull the encoded image out... now what... I have trie

RE: [PHP] Help displaying an image stored in a database...

2001-12-06 Thread Martin Towell
in the html page have: ... ... in myimage.php have: -Original Message- From: Christofe DuBois [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 10:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Help displaying an image stored in a database... I would like to store an image in

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread Deron
Hi Jim! Ok couple of questions then... .. yesterday these includes WERE working. For some reason I went to the site today and they weren't. VERY weird! Since these includes are showing up on multiple pages in different directories, I currently have them being called like this: Code in pag

[PHP] defeating squid

2001-12-06 Thread Mark
Hi, does anybody know of a way to 'encourage' squid to not cache files using headers or meta tags? thanks, - Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-

Re: [PHP] defeating squid

2001-12-06 Thread Rasmus Lerdorf
A standard cache-control header should do the trick: Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); -Rasmus On Thu, 6 Dec 2001, Mark wrote: > Hi, > does anybody know of a way to 'encourage' squid to not cache files > using headers or meta tags? > > t

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
cool, glad you got it working...if you think there's a bug with using / and | you might want to see if you can replicate the problem, and if its really a bug, submit it...my guess is that it was just a typo or something jack -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: T

[PHP] Apache restart env - i issues as concerns PHP

2001-12-06 Thread Gerard Onorato
I have a question about PHP under apache. I was playing with some PHP4.0.6 apps running under apache 1.3.20 on a vanilla RedHat 7.1 box. I was logged in as 'xyz' on the box via SSH. I 'su'd to root to restart apache (/etc/init.d/httpd restart) a few times during testing. In one of my tests I expl

Re: [PHP] Apache restart env - i issues as concerns PHP

2001-12-06 Thread Rasmus Lerdorf
Hrm.. You seem to have worked out your issue yourself. Yes, Apache by default inherits the environment it is started from. Sometimes this is quite useful as some things need to be configured via environment variables. ie. Oracle. If you don't want any of your environment exposed, it is ea

[PHP] "trigger" words

2001-12-06 Thread Deron
Is there an easy way with PHP, or something else, to have a document on the web where a certain word is mentioned within the page somewhere...in my case a band name and it could automatically take that name/word and create it as a link that's stored in either a flatfile or a database of some s

[PHP] Trying to pass a variable through a form...

2001-12-06 Thread Anthony Ritter
I'm trying to pass a variable from a form text box into a php file (Tony1.php). Then, I'd like to click on a link in the Tony1.php page and get the Tony2.php page to load with the original variable -$lname - printed on the next page (Tony2.php). The Tony2.php loads when I click the link but the

Re: [PHP] Trying to pass a variable through a form...

2001-12-06 Thread Alex Shi
Can you paste Tnoy2.php script? Please make sure in Tony2.php $name is printed but not $lname. Alex - Original Message - From: "Anthony Ritter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 07, 2001 12:01 AM Subject: [PHP] Trying to pass a variable through a form...

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread Deron
Yes sir: -rw-rw-r-- Directory : drwxrwsr-x Deron www.metalages.com "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > look at read permissions, does the web server have permissions to read those > files? > > -Original Message- > From: Der

Re: [PHP] Trying to pass a variable through a form...

2001-12-06 Thread Anthony Ritter
Thanks Alex. I typed in: $name within the script for Tony2.php and it was fine. *However*, I thought I could have the value from that variable entered into the Tony2.php page by using the AHREF tag... This is what I'm reading: "Let's say you wanted to construct your site so that it showed th

[PHP] USERNAME

2001-12-06 Thread Chamarty Prasanna Kumar
Hi All, Want to know the usage of hw_getusername(int connection); function specifically, what connection refers to !! Thanks in advance, Kumar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

[PHP] Redirect Function?!!

2001-12-06 Thread Cam
Anyone know of a way to redirect to another page with PHP? I'm aware of the META tag redirection via the HTTP header, but I really need a more elegant solution that redirects immediately without relying on any HTML tags. Appreciate the help, -C -- PHP General Mailing List (http://www.php.net

RE: [PHP] Redirect Function?!!

2001-12-06 Thread Martin Towell
how about include'ing the target page then exit'ing straight after? include "$page"; exit; -Original Message- From: Cam [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 4:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Redirect Function?!! Anyone know of a way to redirect

Re: [PHP] Redirect Function?!!

2001-12-06 Thread Jason Brooke
http://your.domain/path/to/file.html";); ?> - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Cam'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, December 07, 2001 3:23 PM Subject: RE: [PHP] Redirect Function?!! > how about include'ing the target page then e

Re: [PHP] Redirect Function?!!

2001-12-06 Thread Alex Shi
You can use, header ("Location: http://www.php.net";); and you can pass variable, header ("Location: http://www.php.net?name1=$value&$name2=$value2";); Hope this can helps. Alex Shi - Original Message - From: "Cam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 0

Re: [PHP] Redirect Function?!!

2001-12-06 Thread Brian Clark
* Cam <[EMAIL PROTECTED]> [Dec 07. 2001 00:23]: > Anyone know of a way to redirect to another page with PHP? I'm aware of the > META tag redirection via the HTTP header, but I really need a more elegant > solution that redirects immediately without relying on any HTML tags. > Appreciate the help

Re: [PHP] USERNAME

2001-12-06 Thread Rasmus Lerdorf
Not that I have ever used HyperWave, but a 3 second glimpse at the manual would seem to indicate that you get a HyperWave connect by calling hw_connect(). -Rasmus On 7 Dec 2001, Chamarty Prasanna Kumar wrote: > > > Hi All, > >Want to know the usage of > > hw_getusername(int connection

[PHP] Is there a GUI for MySQL?

2001-12-06 Thread Hai Nguyen
Hi, I am a newbie at this. I was just wondering if there is a Graphical User Interface for MySQL? Cheers, Hai Nguyen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrat

Re: [PHP] Is there a GUI for MySQL?

2001-12-06 Thread chip
On Thursday 06 December 2001 09:31 pm, Hai Nguyen wrote: > Hi, > > I am a newbie at this. I was just wondering if there is a Graphical > User Interface for MySQL? > > Cheers, > > Hai Nguyen Did you check the mysql.com web site? They list a few, and do a search on google, you'll find lots more.

Re: [PHP] Is there a GUI for MySQL?

2001-12-06 Thread Alex Shi
http://phpwizard.net/projects/phpMyAdmin/ -- this is a great admin tool through web http://www.mysql.com/downloads/gui-mysqlgui.html -- you can find screenshot there, looks ugly - Original Message - From: "Hai Nguyen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 07

Re: [PHP] Problems producing an image

2001-12-06 Thread Harshdeep S Jawanda
> Try taking the header line out; that way if there is an error message > you should be able to see it in 'View Source'. Finally managed to solve the problem - there was an empty line before the start tag ("http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Re:[PHP] USERNAME

2001-12-06 Thread Chamarty Prasanna Kumar
Hi Rasmas and All, Thanks very much for the reply, Rasmas. To use Hyperwave functions does I need to download software and install it or it will work with php intallation. Or is there any way to find the login "username" from the web page using php and that login authentic

[PHP] Re:[PHP] USERNAME

2001-12-06 Thread Rasmus Lerdorf
To use the HyperWave functions you need to download and install HyperWave, whatever it is. And your second question has nothing to do with HyperWave. Simply check $REMOTE_USER. phpinfo() would have shown you this. -Rasmus On 7 Dec 2001, Chamarty Prasanna Kumar wrote: > > > Hi Rasmas and

[PHP] Re: Re:[PHP] USERNAME

2001-12-06 Thread Fred
If you simply want to find out the username of someone who has logged in using apache htaccess authentication, that information is contained in the global variable $PHP_AUTH_USER Fred Chamarty Prasanna Kumar <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi R

[PHP] Re:USERNAME

2001-12-06 Thread Chamarty Prasanna Kumar
Hi Rasmas and All, Thanks very much for the prompt reply. phpinfo() shows only REMOTE_ADDR REMOTE_HOST REMOTE_PORT but not $REMOTE_USER. Even I tried using $REMOTE_USER alone, but no response. Please suggest a way. Kumar. On Fri, 07 Dec 2001 Rasmus Lerdo

[PHP] Re: Re:USERNAME

2001-12-06 Thread Fred
You would normally access this via: $HTTP_REMOTE_USER or $PHP_AUTH_USER but these variables are only available (and thus only show up in phpinfo) if you have actually logged in via apache htaccess authentication. Fred Chamarty Prasanna Kumar <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]

[PHP] Bug #14360: Script ends on >

2001-12-06 Thread Thomas.Seuring
Dear friends, I've opened a Bug I think I've found on PHP, but there I was recommended to ask you. Below you'll find the Mail I wrote and I hope, that you can help me. [2001-12-06 06:30:32] [EMAIL PROTECTED] I'm using a generated Script of the PHAKT-Software on a Windows 2000 and Apache Serv

RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van
hmm it still doesn't work. Maybe its because if have an if statement in the include which is closed in bottom.php? Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4

[PHP] Re: Help required MySql + PHP

2001-12-06 Thread Kundan Kumar
Hi Karthik, Most probably the PHP module that you are using with Apache is not compiled with Mysql support. Can you post the information about php installation that you have? Put this in a file called say "phpinfo.php": --

[PHP] Access denied for user

2001-12-06 Thread josep
I get the following message when trying to view a php page Warning: Access denied for user: 'jupshoes@localhost' (Using password: YES) in /home/jupshoes/public_html/guest/index.php on line 27 Unable to connect to SQL server What is going wrong Josep -- PHP General Mailing List (http://www.ph

Re: [PHP] Access denied for user

2001-12-06 Thread Jon Farmer
> I get the following message when trying to view a php page > > Warning: Access denied for user: 'jupshoes@localhost' (Using password: YES) > in /home/jupshoes/public_html/guest/index.php on line 27 > Unable to connect to SQL server The username or password is incorrect. Or the username does not

RE: [PHP] Access denied for user

2001-12-06 Thread Richard Black
I would hazard a guess that you have supplied a username/password/host combination that isn't valid. Check in the mysql.user table, and check that there is an entry there for the user and host. Thepassword should be encrypted so you won't know if its what you're typing, but you should be able

[PHP] UPDATE Query works in odbc/Mysql, but fails in odbc/MS Access

2001-12-06 Thread mweb
Hello, I have one MS Access DB on the server, and an exact (theoretically) copy of it in MySQL on my machine, so I can test PHP pages on Linux and install them on an NT server (using odbc of course). I can insert and select just fine, thankl to all your help. The problem is that this UPDATE que

[PHP] Answer to: UPDATE Query works in odbc/Mysql, but fails in odbc/MS Access

2001-12-06 Thread mweb
Hello everybody This time I can answer to myself. I made it work changing the SQL statement from: UPDATE rec SET Aut = 1 WHERE Un = 2927230327; (works in MySQL) to UPDATE rec SET Aut = 1 WHERE Un in ('2927230327'); (works in Access) Now I'd like to know if the difference is due to the

RE: [PHP] UPDATE Query works in odbc/Mysql, but fails in odbc/MS Access

2001-12-06 Thread Andrew Hill
mweb, MS points to a datetime issue: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q246570 As far as a reference - I'm guessing somewhere on MS's site? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data

[PHP] Re: Help required MySql + PHP

2001-12-06 Thread CK Raju
On Thursday 06 December 2001 01:08, Karthikeyan wrote: > Dear Members, > I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor > system. > Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect Is phpinfo() working ? Test on mysql support. Check on the fil

[PHP] 5928 Would you like to lose weight while you sleep? 537417

2001-12-06 Thread 753741ultimate
As seen on NBC, CBS, CNN, and even Oprah! The health discovery that actually reverses aging while burning fat, without dieting or exercise! This proven discovery has even been reported on by the New England Journal of Medicine. Forget aging and dieting forever! And it's Guaranteed! Click

[PHP] RE: [PHP-DB] 5928 Would you like to lose weight while you sleep? 537417

2001-12-06 Thread Disser, Arno
any chance to bounce this guy from the list? Arno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Q regarding recursive function

2001-12-06 Thread Bart Verbeek
Hello, I'm using the following function: >>BEGIN CODE<< $q_cat ="SELECT cat_id, cat_naam, cat_parent_id FROM cat"; $r_cat = mysql_query($q_cat) or die ("Invalid Query fout Q=cat"); if ($r_cat) $n=0; if (mysql_num_rows($r_cat) > 0) while ($row_cat = mysql_fetch_array($r_cat))

<    1   2