[PHP] PHP License Agreement

2002-08-19 Thread daniel cozzolino
Hello all, I have an issue with an application I have developed that has Macromedia Director interfacing with MySql via PHP. I am told by our legal representation that under the PHP license agreement, the PHP html source code must be available. It was my understanding that only the compiler

[PHP] Re: ICQ interface?

2002-08-19 Thread lallous
I feel like the request being sent is erroneous. it was: fputs($fp,GET/scripts/online.dll?icq=$uinimg=5HTTP/1.0\n\n); It should be: fputs($fp,GET /scripts/online.dll?icq=$uinimg=5 HTTP/1.0\n\n); And beside that it seems it is an outdated URL Elias Justin French [EMAIL

Re: [PHP] sorting multiple-dimensional arrays

2002-08-19 Thread Vehbi Sinan Tunalioglu
Have you ever heard data structures and algorithms? :o) I recommend you to learn how people sort things in arrays. If you learn to sort things in a single dimensional array you will be able to learn how to sort the multi-dimensional array. People who have developed PHP do nothing more than

Re: [PHP] PHP License Agreement

2002-08-19 Thread Rasmus Lerdorf
Did your legal department read the PHP license at all? There is nothing in the PHP license that states this. The clauses of the PHP license are, with my embedded comments in []'s: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the

[PHP] mail and attachments

2002-08-19 Thread Pafo
i got a script that the user signs up on and send a profile to the owners email address but i want to implement a file upland and that the uploaded file should be submitted with the mail.. is this possible in php? i know its possible in cg.. regards patrick -- PHP General Mailing List

Re: [PHP] mail and attachments

2002-08-19 Thread Vehbi Sinan Tunalioglu
If you mean that you want to add attachments to emails it is possible of course... Try Phpmailer... I recommend you to print out a copy of this script and its helper class SMTP so that you can read it and modify (it is not required, guys have done everything well enough) and reuse it. You can

Re: [PHP] mail and attachments

2002-08-19 Thread @ Edwin
Also, somebody has already posted (2 weeks ago?) a similar or related question. I think, the answers given also apply to this question as well. - E If you mean that you want to add attachments to emails it is possible of course... Try Phpmailer... I recommend you to print out a copy of this

[PHP] Apache 2.0.40 and php as module

2002-08-19 Thread George E. Papadakis
Hi , I am trying to install Apache 2.0.40 with the latest php build as a module (windows xp) yet it just wont work. Though I tried all the tricks and possible scenarios no luck. Does anyone have anyidea why I am getthing this frustrating Cannot load D:/Apache/php/sapi/php4apache2.dll into

[PHP] Apache 2.0 and PHP

2002-08-19 Thread John Wards
Guys and Girls got a question for you. Is Apache 2.0 any good and is there any advantages to installing it? Does it work fine enough with PHP and MySQL? Would I be able to install it along side 1.3 and run it on a separate port? Cheers John Wards SportNetwork.net -- PHP General

[PHP] Inquiry on sql query class.

2002-08-19 Thread Henrik Johansson
Hi. I am constructing a somewhat generic class to contain all queries needed to make a self sustaining base to conform for a larger purpose. Basically I am quite new to the concept of writing classes, which doesn´t have much to do with this inquiry though. One of the issues I ran into was how

[PHP] Re: mail and attachments

2002-08-19 Thread Manuel Lemos
Hello, On 08/19/2002 04:52 AM, Pafo wrote: i got a script that the user signs up on and send a profile to the owners email address but i want to implement a file upland and that the uploaded file should be submitted with the mail.. is this possible in php? i know its possible in cg..

[PHP] upload video

2002-08-19 Thread Jamie Ingram
Any one come across this one: I am trying to write the php code to upload a video file. The code works fine for images, text etc, but video comes out twice the size and unreadable. Any ideas? --

Re: [PHP] Apache 2.0 and PHP

2002-08-19 Thread Aaron Gould
Wait until PHP 4.3.0 before considering Apache 2.0. Rasmus has indicated they *may* play better together at that point. Currently, PHP 4.2.x with Apache 2 is experimental and should not be used in a production environment. We use it on our development server without trouble, but that server is

[PHP] Passing a PHP variable to javascript

2002-08-19 Thread Michael
Hello everyone, This may seem a newbie question... I have a PHP variable containing the text of the alert I want to display ($text) and I want to have it displayed in a javascript alert box (something like alert($text) ). I couldn't find out how to sort this out... Regards, Michael

Re: [PHP] Passing a PHP variable to javascript

2002-08-19 Thread John Wards
alert(?echo $text?) - Original Message - From: Michael [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 19, 2002 1:54 PM Subject: [PHP] Passing a PHP variable to javascript Hello everyone, This may seem a newbie question... I have a PHP variable containing the text of

Re: [PHP] Passing a PHP variable to javascript

2002-08-19 Thread Scott Houseman
Hi Michael. Use: ?php $text = 'Hello, world!'; ? SCRIPT LANGUAGE=JavaScript alert( '?= $text?' ); /SCRIPT If this page is parsed by php i.e. its a .php file rather than .html or .js file, then the variable will be output as a string constant in the javascript code. Cheers! Scott -

Re: [PHP] Passing a PHP variable to javascript

2002-08-19 Thread Justin French
The trick is that javascript has to be triggered somehow -- an onLoad, onClick, onChange, onMouseOver, etc etc. When/how do you want to trigger this? Justin French on 19/08/02 10:54 PM, Michael ([EMAIL PROTECTED]) wrote: Hello everyone, This may seem a newbie question... I have a

Re: [PHP] Problem about rpm package of php

2002-08-19 Thread Adam Williams
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 paramaters it passes to configure

[PHP] Re: Passing a PHP variable to javascript

2002-08-19 Thread Chris Schoeman
This is one way to do it ?php echo SCRIPT LANGUAGE=\JavaScript\\n; echo !--\n; echo alert(\$text\)\n; echo //--\n; echo /SCRIPT\n; ? Chris On Mon, 19 Aug 2002 12:54:57 GMT, [EMAIL PROTECTED] (Michael) wrote: Hello

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

[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

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

[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 ?php echo SCRIPT LANGUAGE=\JavaScript\\n; echo !--\n; echo alert(\$text\)\n; echo //--\n;

[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 textarea. How do I make it so this doesn't

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 textarea. How do I make it so this

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

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 but

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

[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

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

[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

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... ?php include (header.php); include (config.php); if ($search) { // process form if ($sort == ){ $sort = lname; } do { if ($fname == '' $lname == '' $dept_pulldown == '') { echo H2centerYou must

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

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

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

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

[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 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 haven't

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] 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); for

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

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

[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

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, -ba

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] 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 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); OR

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

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

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

[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

[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

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

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

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,

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

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

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 = $postBr; $$key =

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

[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 regarding this.

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

[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

[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

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 I

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

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? -- PHP

[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

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

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

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

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 full

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

[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

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

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

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

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.

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: Directory /some/path/oasis php_value register_globals on /Directory -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

[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

[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

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 -

[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

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 is

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 sent

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

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

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

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 the lines I

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 change

[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

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 and

[PHP] disable html ?

2002-08-19 Thread Hawk
is there some way to disable html.. if someone posts a msg with /table 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,

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 /table 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

  1   2   >