[PHP] cURL and POST

2002-08-19 Thread Samantha Savvakis
HI, I'm using the cURL binary to perform a HTTP POST to a web page. I am sending XML data to this web page. The issue I've come up against if the size of the data that I'm trying to post and it looks like cURL is crapping out. This is the command line that I'm currently using: /usr/local/bin/c

[PHP] Re: fopen(http:...) problems

2002-08-19 Thread php
Why don't you try chmoding the file 777. Next use readfile: http://www.php.net/manual/en/function.readfile.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can i send post variable thur header?

2002-08-19 Thread Jome
> I want to redirect to another page and pass some post variables to that > page. > I know how to pass get variables ( just include at the end of url) > But i have no idea how to pass post variables, is it possible ? You cannot do a redirect but you can send POST variables to a page without a for

[PHP] Can i send post variable thur header?

2002-08-19 Thread NoWhErEMan
Hi all, I want to redirect to another page and pass some post variables to that page. I know how to pass get variables ( just include at the end of url) But i have no idea how to pass post variables, is it possible ? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Replicate string or something similar

2002-08-19 Thread Saci
Thank you That's it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php page runs from one computer but not another

2002-08-19 Thread Jaskirat Singh
Hi, "I can run the same page on the machine with the problem if I simply rename it." If you could tell what the name was when it didn't work and what when it worked. If by rename you mean change of extension like say from php3 to php then it indicates that apache config file (I am not sure f

[PHP] Re: tracking visitors till registration?

2002-08-19 Thread Manuel Lemos
On 08/19/2002 06:01 PM, Andy wrote: > Hi there, > > I am wondering if following scenario would be possible: > > - Create a unique referer id to make sure that the visitior has been refered > by a particular person. (e.g. server.com?ref=20) > - The visitor enters the site and browses around, but

Re[2]: [PHP] Replicate string or something similar

2002-08-19 Thread Tom Rogers
Hi, TR> $string = array(); TR> $string = array_pad($string,254,'A'); TR> -- TR> regards, TR> Tom Ignore this I was asleep :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] tracking visitors till registration?

2002-08-19 Thread Daren Cotter
php.ini config file --- Randy Johnson <[EMAIL PROTECTED]> wrote: > How do I surpress php warnings from being displayed > to the screen > > > Randy > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > _

Re: [PHP] Replicate string or something similar

2002-08-19 Thread Tom Rogers
Hi, Tuesday, August 20, 2002, 1:04:12 PM, you wrote: S> In ASP I use the expression myvar = string(254,"A") S> to have a var filled with 254 characters 'A' S> What is the similar one in PHP? Try this: $string = array(); $string = array_pad($string,254,'A'); -- regards, Tom -- PHP Gen

Re: [PHP] tracking visitors till registration?

2002-08-19 Thread Rasmus Lerdorf
See your php.ini file. Specifically the display_errors directive. See also log_errors and error_log. -Rasmus On Mon, 19 Aug 2002, Randy Johnson wrote: > How do I surpress php warnings from being displayed to the screen > > > Randy > > > > -- > PHP General Mailing List (http://www.php.net/) >

RE: [PHP] Replicate string or something similar

2002-08-19 Thread Martin Towell
str_repeat() -Original Message- From: Saci [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 1:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Replicate string or something similar In ASP I use the expression myvar = string(254,"A") to have a var filled with 254 characters 'A'

[PHP] Replicate string or something similar

2002-08-19 Thread Saci
In ASP I use the expression myvar = string(254,"A") to have a var filled with 254 characters 'A' What is the similar one in PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] tracking visitors till registration?

2002-08-19 Thread Randy Johnson
How do I surpress php warnings from being displayed to the screen Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] database value count retrieval

2002-08-19 Thread David Freeman
> >SELECT COUNT(x) FROM table; > > > >Make 'x' equal to any column name in the table and add WHERE to the > >clause as needed. > > err...all very well, but how do i retrieve the > value afterwards? > $sqlcom="select count(codigo) from comments where > codigo=$id";

Re: [PHP] tracking visitors till registration?

2002-08-19 Thread Daren Cotter
Justin is perfectly correct. Sessions are really the way to perform this task (sessions actually use cookies in most scenarios). However, if you need to track the user for longer than they will be at your site (i.e., they close the browser and come back a week later, like you said), it should be

[PHP] Php page runs from one computer but not another

2002-08-19 Thread Jonathan Black
Hello, php 4.2.1 Internet Explorer 6. After some server upgrades at my webhoster I can see the phpinfo page from a computer running windows 98, but not from another computer running windows 2000 server. Here I just see the php code in my browser. I can run the same page on the machine with the p

Re: [PHP] "disable html" ?

2002-08-19 Thread Justin French
php.net/striptags Justin French on 20/08/02 11:07 AM, Hawk ([EMAIL PROTECTED]) wrote: > is there some way to "disable html".. if someone posts a msg with > my entire layout messes up :) > I have no idea how to solve this, but it's messing with my brain, I tried > the htmlspecialchars, but th

[PHP] "disable html" ?

2002-08-19 Thread Hawk
is there some way to "disable html".. if someone posts a msg with my entire layout messes up :) I have no idea how to solve this, but it's messing with my brain, I tried the htmlspecialchars, but that didn't help :/ HÃ¥kan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] tracking visitors till registration?

2002-08-19 Thread Justin French
on 20/08/02 7:01 AM, Andy ([EMAIL PROTECTED]) wrote: > Hi there, > > I am wondering if following scenario would be possible: > > - Create a unique referer id to make sure that the visitior has been refered > by a particular person. (e.g. server.com?ref=20) yes > - The visitor enters the site

[PHP] How to upgrade? possible?(newbie)

2002-08-19 Thread Ryan A
Hi everyone, I have just downloaded the MySql,PHP,Apache triad but notice the version for php is 4.1.1 which is the old version right? How do I upgrade just the PHP in the whole setup to the latest stable version? Kindly reply or point me to where the answer is, I do not want to compile the pack

Re: [PHP] installing php with register globals off and on?

2002-08-19 Thread David Rice
Hi Rasmus: Now turning register_globals back on and exploring "E_ALL". Thanks :) David On Monday, August 19, 2002, at 07:36 PM, Rasmus Lerdorf wrote: > If you forget to initialize your internal script variables, then people > could potentially inject bogus values for these variables and chan

RE: [PHP] database value count retrieval

2002-08-19 Thread Martin Towell
try this: -> $sqlcom="select count(codigo) as cnt from comments where codigo=$id"; $resultadocom = mysql_db_query ("database",$sqlcom); $registocom = mysql_fetch_array($resultadocom); -> $contador = $registocom["cnt"]; print("comentarios= $contador"); the lines marked with -> are t

Re: [PHP] installing php with register globals off and on?

2002-08-19 Thread Rasmus Lerdorf
If you forget to initialize your internal script variables, then people could potentially inject bogus values for these variables and change how your script operates. eg. if($password=='david') $ok=1; if($ok) let_them_in(); In the above, assume $password is a user-supplied value and $ok

[PHP] database value count retrieval

2002-08-19 Thread Pag
>SELECT COUNT(x) FROM table; > >Make 'x' equal to any column name in the table and add WHERE to the >clause as needed. err...all very well, but how do i retrieve the value afterwards? Heres my code: $sqlcom="select count(codigo) from comments where codigo=$id"; $resu

Re: [PHP] installing php with register globals off and on?

2002-08-19 Thread David Rice
Hi: I have a test site where I am trying out a few things in PHP. I started off with register_globals on. Then I read in the docs that it is best to turn turn register_globals off. I did so and now I am having a marvelous time recoding some session stuff :( I could not find much info on why "

[PHP] mssql_query

2002-08-19 Thread Jordan Lee
I'm running PHP 4.1.1 on Win2K server with SQL 2K and my connect and select db statements are fine, but when I use the mssql_query() statement, PHP just hangs. I have no idea on whats going on and I've checked the forums, php's site, and I do have the MSSQL connectivity installed on the server.

Re: [PHP] Undefined index error

2002-08-19 Thread Michael Sweeney
If you try to access a form variable that hasn't been set, you get an undefined index. Try checking with something like if(isset($_POST['SortBy'])) { // do something with 'SortBy' } In any case, you'll get the undefined index warning anytime you try to read an array index that hasn't been set

Re: [PHP] fopen(http:...) problems

2002-08-19 Thread Kevin Stone
There is no such thing as ISP cache, only your browser's cache, but I think I understand what's happening now. When you put in the request to open the page (ie "yourscript.php"), instead of executing the script, you're seeing the associated data from your browsers cache. The request is never sen

Re: [PHP] fopen(http:...) problems

2002-08-19 Thread Syl
> Is there a cacheing mechanism involving PHP scripts? I don't see how it's > possible to fopen() data from the browser's cache. If you are not getting > the latest version of the web page then perhaps the server you are trying to > scrape is cloaking your spider. Just a thought. I suspect it

[PHP] Undefined index error

2002-08-19 Thread Shu Chow
I'm using the superglobal $_POST array to access URL parameters passed to my page. I was getting undefined constant errors in my error_log file, and found that I needed to quote the variables in the array. $_POST['SortBy'] etc. Now, it appears that I've just traded the undefined constant er

Re: [PHP] fopen(http:...) problems

2002-08-19 Thread Kevin Stone
Is there a cacheing mechanism involving PHP scripts? I don't see how it's possible to fopen() data from the browser's cache. If you are not getting the latest version of the web page then perhaps the server you are trying to scrape is cloaking your spider. Just a thought. -Kevin - Original

[PHP] configure fails with expat

2002-08-19 Thread Geoff
when running ./configure it fails on this: configure: error: not found. Please reinstall the expat distribution I am configuring as follows: ./configure --with-sybase=/usr/local/freetds/ --with-apache=../apache_1.3.26 --with-mysql --with-expat-dir=/usr/lib also if I specify the path of mysql as

[PHP] fopen(http:...) problems

2002-08-19 Thread Syl
When I use fopen(http:...) I do not get the latest version of the web page want to extract some content from. This page is updated at the source once an hour. How can I issue the equivalent of a Ctrl-F5 to refresh the cache? Syl -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] installing php with register globals off and on?

2002-08-19 Thread Rasmus Lerdorf
Sure, turn register_globals on only for the oasis directory. In your httpd.conf add: php_value register_globals on -Rasmus On Mon, 19 Aug 2002, Andy wrote: > Hi there, > > I am running php 4.2.2 with register globals set to off. Now I am planing to > install oasis (a add tracking sw). T

RE: [PHP] include() from another sub-domain

2002-08-19 Thread Brad Dameron
What I would do is change the include filename to something like functions.inc like I do. This way the server won't try and run it for you. --- Brad Dameron Network Account Executive TSCNet Inc.

[PHP] installing php with register globals off and on?

2002-08-19 Thread Andy
Hi there, I am running php 4.2.2 with register globals set to off. Now I am planing to install oasis (a add tracking sw). Their current version requires a php build with register globals set to on!? Is there a way out of this dilema running only one server? Thanx for any advice, Andy --

[PHP] tracking visitors till registration?

2002-08-19 Thread Andy
Hi there, I am wondering if following scenario would be possible: - Create a unique referer id to make sure that the visitior has been refered by a particular person. (e.g. server.com?ref=20) - The visitor enters the site and browses around, but the ref=20 should not be stored inside the url, bu

RE: [PHP] php/shell/permissions problems....

2002-08-19 Thread David Freeman
> I've got a php form, that gathers certain information, and > then passes that info on to a couple of shell scripts to > move files around, create links, import data into some mysql > databases via sql files, etc. > > The two shell scripts work fine when I'm logged in as root > via t

[PHP] php/shell/permissions problems....

2002-08-19 Thread Kelly Meeks
Hopefully I can explain this properly I've got a php form, that gathers certain information, and then passes that info on to a couple of shell scripts to move files around, create links, import data into some mysql databases via sql files, etc. The two shell scripts work fine when I'm logg

Re: [PHP] User data validation

2002-08-19 Thread Rasmus Lerdorf
You do not need to revalidate. The data is not coming from the user. On Mon, 19 Aug 2002, Randy Johnson wrote: > I have a proccess where a user submits the data, data is run through checks, > validation etc , then stored in a session. then the user goes to > confirmation page where they hit s

Re: [PHP] include() from another sub-domain

2002-08-19 Thread Rasmus Lerdorf
Apache On 19 Aug 2002, Greg Macek wrote: > Well, that would make sense. Now is this something I need to configure > in the Apache or the PHP config file? > > On Mon, 2002-08-19 at 14:27, Rasmus Lerdorf wrote: > > If these domains are on the same physical server, include them directly > > via the

Re: [PHP] User data validation

2002-08-19 Thread Randy Johnson
I have a proccess where a user submits the data, data is run through checks, validation etc , then stored in a session. then the user goes to confirmation page where they hit submit to verify the details are correct. when they hit submit they go to another script that pulls the session variables

Re: [PHP] include() from another sub-domain

2002-08-19 Thread Greg Macek
Well, that would make sense. Now is this something I need to configure in the Apache or the PHP config file? On Mon, 2002-08-19 at 14:27, Rasmus Lerdorf wrote: > If these domains are on the same physical server, include them directly > via the full filesystem path. If they are actually on diffe

Re: [PHP] include() from another sub-domain

2002-08-19 Thread Rasmus Lerdorf
If these domains are on the same physical server, include them directly via the full filesystem path. If they are actually on different physical machines, you will need to configure those other machines to let you get the non-parsed PHP code through them. Your problam right now is that the site2

[PHP] include() from another sub-domain

2002-08-19 Thread Greg Macek
Hello, I've searched the list and the manual and am still a bit confused. Here's what I'd like to do. We have a bunch of internal sites that all use the same username/password. One is already setup with a function to authenticate this to a database. However, each login page is coming from a diffe

Re: [PHP] +=

2002-08-19 Thread Adam Williams
$string .= "world."; Adam On Mon, 19 Aug 2002, Alexander Ross wrote: > Is there a += equivilant for strings?? > > $string = "Hello"; > $string += "world."; > > I know that > $string = $string." world."; > would work, but I keep having to do it. Is there a shortcut? >

RE: [PHP] +=

2002-08-19 Thread Daniel Kushner
$string = 'Hello'; $string .= ' World'; Regards, Daniel Kushner _ Need hosting? http://www.thehostingcompany.us > -Original Message- > From: Alexander Ross [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 19, 2002 3:22 PM > To: [EMAIL PROTE

RE: [PHP] +=

2002-08-19 Thread Jay Blanchard
.= -Original Message- From: Alexander Ross [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: [PHP] += Is there a += equivilant for strings?? $string = "Hello"; $string += "world."; I know that $string = $string." world."; would work, but

[PHP] +=

2002-08-19 Thread Alexander Ross
Is there a += equivilant for strings?? $string = "Hello"; $string += "world."; I know that $string = $string." world."; would work, but I keep having to do it. Is there a shortcut? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for Calender System

2002-08-19 Thread ST
I am looking to implement a calender for a multi-user system. I came across one called webcalendar on sourceforge http://webcalendar.sourceforge.net/ Can anyone recommend any others? It has to be multiuser and hopefully it can fit into the rest of my existing system -- PHP General Mailing List

Re: [PHP] A Doubt!

2002-08-19 Thread Andrew Brampton
In the php.ini file there is somewhere to set the smtp server to use if you don't have sendmail... Look for that and that might help Andrew - Original Message - From: "Thiruvelraj Pokkishamani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 19, 2002 5:55 PM Subject: [PHP

[PHP] Re: A Doubt!

2002-08-19 Thread Kondwani Spike Mkandawire
"Thiruvelraj Pokkishamani" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Sir, > I am using Windows 2000 server, and i use IIS 4.0 as the > server and i have done many php scriptings and everything works > fine and i done have any problem regard

[PHP] array_unique & multi-dimensional arrays

2002-08-19 Thread sasha
I am trying to clean up some junky code in a journal/news type script and redoing the archive navigation. I am pulling all of the dates of the entries and pushing it into a multi- dimensional array like so: array_push($archive_nav, array(month => $month, year => $year, longmonth => $longmonth

Re: [PHP] variables not behaving as expected

2002-08-19 Thread Joseph W. Goff
You don't actually have a variable named $do at this point. You can either have php set this variable automatically by turning on register globals in the php.ini file or you can extract the variable or do something like this: foreach ($_POST as $key => $post) { echo "$key = $post"; $$key =

RE: [PHP] variables not behaving as expected

2002-08-19 Thread MET
Read this. http://www.php.net/release_4_2_0.php ~ Matthew -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] variables not behaving as expected We've recently upgraded to PHP version 4.2

[PHP] variables not behaving as expected

2002-08-19 Thread ROBERT MCPEAK
We've recently upgraded to PHP version 4.2.2 running on SuSE 7.2 with the 2.4.4 kernel and I'm seeing variables behave in a way I didn't expect. With the prior configuration http post variables were freely available on the receiving page, but now, for some reason, they aren't. This code: forea

RE: [PHP] A Doubt!

2002-08-19 Thread Brian V Bonini
So formal ;-) How about posting your sendmail.php file and also have a look at http://www.php.net/manual/en/ref.mail.php for more information about using the mail function with windows. > -Original Message- > From: Thiruvelraj Pokkishamani [mailto:[EMAIL PROTECTED]] > Sent: Monday, A

Re: [PHP] ************ SSL Support *****************

2002-08-19 Thread Rasmus Lerdorf
php.net/curl On Mon, 19 Aug 2002, Ron Stagg wrote: > >From within a PHP script, I need to initiate a secure HTTPS form POST > from my Apache server to a separate third party server. I have yet to > figure out how to accomplish this. Can PHP even handle something like > this? > > I welcome any

[PHP] ************ SSL Support *****************

2002-08-19 Thread Ron Stagg
>From within a PHP script, I need to initiate a secure HTTPS form POST from my Apache server to a separate third party server. I have yet to figure out how to accomplish this. Can PHP even handle something like this? I welcome any advice. Thanks, Ron

Re: [PHP] User data validation

2002-08-19 Thread Rasmus Lerdorf
No checks are needed. PHP automatically escapes single quotes for MySQL queries assuming you have magic_quotes_gpc on, which means that if you want to send the same thing by email using PHP's mail() function you just have to call stripslashes() on the data. There are no magical characters that w

[PHP] User data validation

2002-08-19 Thread Steven
After searching Google, reading the PHP manual, PHP mailing list archives, looking for clues on SANS and Security Focus, I have yet to find an answer to my question. I have a section in a form for a user to enter comments and or questions. What should I be checking for, from a security standpoint

[PHP] A Doubt!

2002-08-19 Thread Thiruvelraj Pokkishamani
Sir, I am using Windows 2000 server, and i use IIS 4.0 as the server and i have done many php scriptings and everything works fine and i done have any problem regarding this. And i want to send mail to the visitors of this site . for that purpose i use mail() and if i clic

Re: [PHP] Re: Passing a PHP variable to javascript

2002-08-19 Thread Adam Williams
Look up on www.mysql.com documentation, you can do a count within a select statement SELECT whatever COUNT(whatever) AS COUNT FROM table GROUP BY 'something' HAVING something = 'something' -- | whatever | count | -- | stuff selected |50 |

Re: [PHP] FUNCTIONS

2002-08-19 Thread Jason Wong
On Monday 19 August 2002 22:51, Georgie Casey wrote: > its supposed to write a MIDI file from some music notes, the start of the > MIDI file is grand but the end has some of the MIDI from the next database > record! Instead of keeping us guessing and indulging in idle speculation as to what your

Re: [PHP] Re: Passing a PHP variable to javascript

2002-08-19 Thread Pag
Hi, i am coding a news manager backend for a client and i ran into a little problem. I have two tables, one with the news and one with the comments on each news. How can i count how many comments there are for each news entry? Simply put, is there some sort of Mysql co

Re: [PHP] FUNCTIONS

2002-08-19 Thread Georgie Casey
its supposed to write a MIDI file from some music notes, the start of the MIDI file is grand but the end has some of the MIDI from the next database record! "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 002e01c2479f$1dbf6590$8102a8c0@000347D72515">news:002e01c2479f$1dbf6590$8102a8c0@0003

Re: [PHP] FUNCTIONS

2002-08-19 Thread Georgie Casey
yea, but what about varibales in the actual function?? "Met" <[EMAIL PROTECTED]> wrote in message 003c01c2479f$ee948c40$6901a8c0@SURVIVAL">news:003c01c2479f$ee948c40$6901a8c0@SURVIVAL... > In the top of the loop, before you set the variables from the database > do this. > > unset($variable); > > O

RE: [PHP] FUNCTIONS

2002-08-19 Thread MET
In the top of the loop, before you set the variables from the database do this. unset($variable); OR $variable = ""; Either will do. ~ Matthew -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 10:30 AM To: [EMAIL

RE: [PHP] FUNCTIONS

2002-08-19 Thread Jay Blanchard
[snip] i wrote a function do write a file for me on info taken from a db, and wrote a script with a for loop going through every row in the db, and calling the function. so the function is called about 200 times. but i'm getting weird results, the files are corrupted. its grand when i just go one

Re: [PHP] Problem about rpm package of php

2002-08-19 Thread Adam Williams
I'd run -bb but the -ba will work just fine, you'll just delete the src.rpm it builds because you won't need it. Adam On Tue, 20 Aug 2002 [EMAIL PROTECTED] wrote: > So, which command that you recommend to run ? > > Adam Williams wrote: > > > If memory serves me right, -b

[PHP] FUNCTIONS

2002-08-19 Thread Georgie Casey
i wrote a function do write a file for me on info taken from a db, and wrote a script with a for loop going through every row in the db, and calling the function. so the function is called about 200 times. but i'm getting weird results, the files are corrupted. its grand when i just go one at a ti

RE: [PHP] Old PHP files not working

2002-08-19 Thread @ Edwin
It seems like if you "turn on" register_globals in php.ini, everything might just work... but, it's strange because you said that if you type everything exactly as they were in the new server everything works! Strange... Anyway, why not try it this way. Don't turn register_globals on (you shou

RE: [PHP] A quick question - Help Please !

2002-08-19 Thread Dan McCullough
I have to send a form with a whole bunch of hidden fields and form fields to the remote server. I have tried sending via CURL, until I remembered that they still have to input the cc information, so that was out, and then I tried doing PHP_SELF and then if the $submit then send email and do a

[PHP] Clear Cache or Ctrl-F5 equivalent

2002-08-19 Thread Syl
How do I refresh the cache -- i.e. send the equivalent of a Cntrl-F5 for MS IE -- when I use fopen(http ) so that I can get the latest update of the page I wish to open? Syl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multidimensional arrays

2002-08-19 Thread Rasmus Lerdorf
foreach($array as $i=>$values) { echo $values['id'],$values['name'] } On Mon, 19 Aug 2002, Richard Fox wrote: > Hi, > > Given the array $array initialized by: > > $query = "SELECT id,name FROM MYTABLE"; > $result = mysql_query($query); > $nrows = mysql_num_rows($result); >

RE: [PHP] Multidimensional arrays

2002-08-19 Thread Jay Blanchard
[snip] $query = "SELECT id,name FROM MYTABLE"; $result = mysql_query($query); $nrows = mysql_num_rows($result); for ($i=0; $i<$nrows; $i++) { $arr = mysql_fetch_array($result); $array[$i]['id'] = $arr['id']; $array[$i]['name'] = $arr['name'];

Re: [PHP] Problem about rpm package of php

2002-08-19 Thread EdwardSPL
So, which command that you recommend to run ? Adam Williams wrote: > If memory serves me right, -ba builds the binary and source rpms, and -bb > only builds the binary rpm. > > Adam > > On Mon, 19 Aug 2002 [EMAIL PROTECTED] wrote: > > > Adam Williams wrote: > > > > > If I

[PHP] Multidimensional arrays

2002-08-19 Thread Richard Fox
Hi, Given the array $array initialized by: $query = "SELECT id,name FROM MYTABLE"; $result = mysql_query($query); $nrows = mysql_num_rows($result); for ($i=0; $i<$nrows; $i++) { $arr = mysql_fetch_array($result); $array[$i]['id'] = $arr['id'];

Re: [PHP] Problem about rpm package of php

2002-08-19 Thread Adam Williams
If memory serves me right, -ba builds the binary and source rpms, and -bb only builds the binary rpm. Adam On Mon, 19 Aug 2002 [EMAIL PROTECTED] wrote: > Adam Williams wrote: > > > If I haven't responded too late, Install the SRPM package with rpm -ivh > > file.srpm or f

RE: [PHP] A quick question - Help Please !

2002-08-19 Thread Trout, Travis
When you submit, does the form call a php self function or are you calling a file on the remote server? If you are doing either, why not just call another php file on you local server to where you can FIRST send your email and THEN send your info to the remote server? What options do you have for

RE: [PHP] Old PHP files not working

2002-08-19 Thread Jay Blanchard
[snip] Some of you may be saying that if I can re-type it and it works fine for such a small site then just re-type it and let it go. The problem is this site is small, but there are several others and one being 400+ php files with over 1,000 lines of code and many of the files. [/snip] Check the

Re: [PHP] Problem about rpm package of php

2002-08-19 Thread EdwardSPL
Adam Williams wrote: > If I haven't responded too late, Install the SRPM package with rpm -ivh > file.srpm or file.src.rpm and then do to the SPECS directory. In RedHat's > case it is /usr/src/redhat/SPECS and look for something like mod_php.spec > or php.spec and edit it. That file has a param

Re: [PHP] A quick question - Help Please !

2002-08-19 Thread Adrian Murphy
to do it with javascript u could post the form to another local page with a form with hidden fields - send the mail and use onload="" to post the second form. would be a messy way to do it but would work. adrian murphy - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Da

Re: [PHP] compile error

2002-08-19 Thread Rasmus Lerdorf
You need current PHP CVS to work with Apache 2.0.40. See snaps.php.net On Mon, 19 Aug 2002, Adam Williams wrote: > I'm trying to compile PHP 4.2.2. I am running Apache 2.0.40 (yes I know > support is experimental). I am compiling on Redhat 7.3 Linux 2.4.18. I > did my PHP configure line: > >

RE: [PHP] Old PHP files not working

2002-08-19 Thread Trout, Travis
Here is the code since it doesn't look like attachments work here... You must enter a last name, first name or select a department Home"; include ("footer.php"); exit; } //end if if ($fname != '' && $lname == '' && $dept_pulldown != '' && $dept_pulldown != 'all') { // Firs

[PHP] Old PHP files not working

2002-08-19 Thread Trout, Travis
Title: Old PHP files not working I am having a very weird problem and am not sure if it is the files or the php parser it self. I currently have a server running Apache 1.3.23, MySQL 3.23.47, and PHP 4.1.1 on Red Hat 7.2. I have another test server that I have just set up with the latest of th

[PHP] compile error

2002-08-19 Thread Adam Williams
I'm trying to compile PHP 4.2.2. I am running Apache 2.0.40 (yes I know support is experimental). I am compiling on Redhat 7.3 Linux 2.4.18. I did my PHP configure line: ./configure --enable-track-vars --with-mysql --with-mail --with-apxs2=/usr/local/apache2/bin/apxs and then I do a make, an

[PHP] Re: Apache 2.0.40 and php as module

2002-08-19 Thread Seairth Jacobs
I have had the same problem under Win2K. My understanding is that PHP does not yet work well (at all, in this case) with Apache2. Instead, install Apache 1.3. The console window is a bit annoying (would have liked to run it as a service), but it does work. :) --- Seairth Jacobs [EMAIL PROTECT

Re: [PHP] HTML - iframe

2002-08-19 Thread Adam Williams
Have you tried putting the IFRAME in a table and setting the background color of that table to the background of the rest of the page? Adam On Mon, 19 Aug 2002, David Buerer wrote: > Yes I know it's a PHP list, but I thought someone might have an idea on how > to fixt th

Re: [PHP] HTML - iframe

2002-08-19 Thread Milan Reznicek
You may try, to make the IFRAME invisible. I think it is done with this: document.all.name.visibility = "hidden"; And when the page is loaded then change it to document.all.name.visibility = "visible"; Not sure if it will be working bu

Re: [PHP] Apache 2.0 and PHP

2002-08-19 Thread @ Edwin
> >Would I be able to install it along side 1.3 and run it on a separate port? I know some who installed two 1.3s in two different folders, run two different daemons, in two different ports. I think it should work with 1.3 and 2.0 as well... - E > >Cheers >John Wards >SportNetwork.net > > >-

RE: [PHP] HTML - iframe

2002-08-19 Thread Jay Blanchard
[snip] Yes I know it's a PHP list, but I thought someone might have an idea on how to fixt this problem anyway. I have a page with (2) iframes. While the source file for the iframes is being loaded, the iframe shows up as a big white area, similar to a . How do I make it so this doesn't happen?

[PHP] HTML - iframe

2002-08-19 Thread David Buerer
Yes I know it's a PHP list, but I thought someone might have an idea on how to fixt this problem anyway. I have a page with (2) iframes. While the source file for the iframes is being loaded, the iframe shows up as a big white area, similar to a . How do I make it so this doesn't happen?

[PHP] Rep:[PHP] Re: Passing a PHP variable to javascript

2002-08-19 Thread regardepas Sanete
Nice, Thank you -Message d'origine- De: Chris Schoeman <[EMAIL PROTECTED]> A: [EMAIL PROTECTED] Date: 19/08/02 Objet: [PHP] Re: Passing a PHP variable to javascript This is one way to do it \n"; echo "\n"; echo "\n"; ?> Chris On Mon, 19 Aug 2002 12:54:57 GMT, [EMAIL PROTECTED] (

Re: [PHP] A quick question - Help Please !

2002-08-19 Thread Justin French
That's REALLY strange that the payment site doesn't return anything... So the user just hits a dead-end or what? Can we see a test site? And the fact that it all needs to be secure makes it a little more challenging. Essentially, what you need is for one form to POST to two separate scripts...

Re: [PHP] Apache 2.0 and PHP

2002-08-19 Thread Rasmus Lerdorf
If you run Apache2 in prefork mode, it should mostly work with PHP. Don't try to use one of the threaded mpms yet. The Apache 2 prefork mpm makes it operate exactly like Apache 1.3 in the way it pre-forks processes and handles one request per process. -Rasmus On Mon, 19 Aug 2002, John Wards wr

[PHP] A quick question - Help Please !

2002-08-19 Thread Dan McCullough
Hello everyone, I have a quick question. I am trying to do two seperate things on one submission, it would be easy if I was submitting to my own page, but I am submitting to a payment processor company, and so several things will occur off-site, and there is nothing that comes back from the pa

php-general Digest 19 Aug 2002 13:41:26 -0000 Issue 1534

2002-08-19 Thread php-general-digest-help
php-general Digest 19 Aug 2002 13:41:26 - Issue 1534 Topics (messages 113169 through 113199): Resetting the timeout 113169 by: Mike Mannakee 113170 by: Jason Wong 113171 by: Martin Towell Re: mail/variable help needed.. 113172 by: Jason Wong Re: How Can I G

[PHP] Re: Passing a PHP variable to javascript

2002-08-19 Thread Chris Schoeman
This is one way to do it \n"; echo "\n"; echo "\n"; ?> Chris On Mon, 19 Aug 2002 12:54:57 GMT, [EMAIL PROTECTED] (Michael) wrote: >Hello everyone, > >This may seem a newbie question... > >I have a PHP variable containing the text of the alert I w

  1   2   >