[PHP] Re: Auto Form Fill on option select

2004-11-09 Thread dellylix
It's Sorted Now, It got Java'd. "Kevin Dell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all, I have a question that I can't get my head around and was hoping someone could answer for me. I have a form with a number of fields. Field one is a The option fields are built

[PHP] Do You Need addslashes() When Using Bind Variables

2004-11-09 Thread Francis Chang
Hi, I'm using the Oracle database though I think this question is generic to all databases. If you're using bind variables and preparing the SQL statements ahead of time, do you still need to call addslashes() before binding the strings to the bind variables? Thanks in advance. Francis --

RE: [PHP] basic script

2004-11-09 Thread Zareef Ahmed
Hi, Use print $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; Zareef Ahmed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 9:56 AM To: [EMAIL PROTECTED] Subject: [PHP] basic script I just want the URL that is on the navigator

[PHP] basic script

2004-11-09 Thread a.garcia
I just want the URL that is on the navigator bar be printed... this is my script but it just does not do it... why,.. please help, cheers First Variables Example -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] page redirect question

2004-11-09 Thread Zareef Ahmed
Hi, Alas there is no any other way to redirect the page without sending headers in PHP. You may use javascript for this purpose. Well it is matter of programming practice. We must do processing before presenting the content to users. It will be helpful in many situations. So instead of doin

Re: [PHP] help with fopen path

2004-11-09 Thread James McGlinn
Hi Giles, I'm developing a fusebox PHP app and have a class in a /classes directory that opens an xml file in a directory below the site root using this path: "../siteconfig.xml" All of the places I have used this class from so far have been in the site root. I am now starting some pages in a sub d

Re: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Ray
On Tuesday 09 November 2004 16:04, Brian A. Anderson wrote: > Uuuuh... Where do I set the default server extension type to .php > in the apache config? Right now the page will execute on my server, > but if there is an index.php the server won't automatically open > it, but instead browses the dire

Re: [PHP] MySQL

2004-11-09 Thread Klaus Reimer
Octavian Rasnita wrote: Please tell me how to send a null string to be inserted in a MySQL database. If I do something like: $string = null; mysql_query("insert ignore into table(field) values($string)"); This will result in the following SQL query: insert ignore into table(field) values() If you o

Re: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Brian A. Anderson
Coolbeans guys! :) Thanks, -Brian - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Brian A. Anderson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, November 09, 2004 4:07 PM Subject: Re: [PHP] silly question - setting .php as default extension (Apache)

RE: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Graham Cossey
> > Uuuuh... Where do I set the default server extension type to .php in the > apache config? Right now the page will execute on my server, but > if there is > an index.php the server won't automatically open it, but instead > browses the > directory. > > Thanks in advance, > > -Brian Look f

Re: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Marek Kilimajer
Brian A. Anderson wrote: Uuuuh... Where do I set the default server extension type to .php in the apache config? Right now the page will execute on my server, but if there is an index.php the server won't automatically open it, but instead browses the directory. DirectoryIndex index.html index.php

[PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Brian A. Anderson
Uuuuh... Where do I set the default server extension type to .php in the apache config? Right now the page will execute on my server, but if there is an index.php the server won't automatically open it, but instead browses the directory. Thanks in advance, -Brian -- PHP General Mailing List (ht

RE: [PHP] help with fopen path

2004-11-09 Thread Graham Cossey
> -Original Message- > From: Giles Roadnight [mailto:[EMAIL PROTECTED] > Sent: 09 November 2004 13:07 > To: [EMAIL PROTECTED] > Subject: [PHP] help with fopen path > > > Hi All > > I'm developing a fusebox PHP app and have a class in a /classes > directory that opens an xml file in a dire

Re: [PHP] POST losing SESSION vars?

2004-11-09 Thread bbonkosk
Pass your session along with your form action... i.e $s = SID; echo " - Original Message - From: Sam Smith <[EMAIL PROTECTED]> Date: Tuesday, November 9, 2004 1:12 pm Subject: [PHP] POST losing SESSION vars? > > I have a page that will be redirected to a login page if the > SESSI

[PHP] POST losing SESSION vars?

2004-11-09 Thread Sam Smith
I have a page that will be redirected to a login page if the SESSION var 'authenticatedUser' is not set. The page has a form in it. When the page is loaded http://thePage the authentication works fine. When the submit button is pressed it doesn't. With POST it acts as if the required session var

Re: [PHP] Directory Entries

2004-11-09 Thread Jason Wong
On Tuesday 09 November 2004 17:09, Dave Lampron wrote: > Hello I'm having problems with the following code: > > if (! ($dp = opendir($imagesdir))) die ("cannot open $imagesdir."); > while($file = readdir($dp)) > { > if ($file != '.' && $file != '..') > { > > ///Second test doesn't seem

[PHP] Directory Entries

2004-11-09 Thread Dave Lampron
Hello I'm having problems with the following code: if (! ($dp = opendir($imagesdir))) die ("cannot open $imagesdir."); while($file = readdir($dp)) { if ($file != '.' && $file != '..') { ///Second test doesn't seem to catch sub-directories under $imagesdir if(is_dir($file)) / Thi

Re: [PHP] Video Uploads

2004-11-09 Thread Jay Fitzgerald
The video is 1.5 meg and yes I can upload a PSD file that is 1.8.. Jay Minuk Choi wrote: How big are the video files(byte wise)? Have you tried uploading a non-video file of the same size? - Original Message - From: "Jay Fitzgerald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

Re: [PHP] PHP Accelerator

2004-11-09 Thread Adrian Madrid
I rewrote my framework to use some of the new OOP features in PHP5 and haven't had a single segfault yet. Again, my only segfaults came when using MMCache's session handler. Another caveat is that I compile my own PHP & MMCache everytime instead of using RPMs and stuff. Anyway, just my 2 cents.

Re: [PHP] help with fopen path

2004-11-09 Thread Marek Kilimajer
Giles Roadnight wrote: Hi All I'm developing a fusebox PHP app and have a class in a /classes directory that opens an xml file in a directory below the site root using this path: "../siteconfig.xml" All of the places I have used this class from so far have been in the site root. I am now starti

Re: [PHP] Why cookie is created?

2004-11-09 Thread Marek Kilimajer
Jerry Swanson wrote: Why when I specify session.cookie_lifetime = 1 // Cookies are not created. However, when I specify large lifetime, cookies are created. session.cookie_lifetime = 1500 Are your times and timezones set up right? Both client and server -- PHP General Mailing List (http://w

Re: [PHP] Video Uploads

2004-11-09 Thread Minuk Choi
How big are the video files(byte wise)? Have you tried uploading a non-video file of the same size? - Original Message - From: "Jay Fitzgerald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 09, 2004 12:10 PM Subject: [PHP] Video Uploads I can upload just about every

Re: [PHP] page redirect question

2004-11-09 Thread Minuk Choi
Victor, try this. at the TOP of your HTML, put then you can have all your regular HTML/PHP/JAVASCRIPT/ETC code, and somewhere(in the middle, in the end), you can call where $URL is a variable that contains a URL and it will work. ?> - Original Message - From: "Victor C." <[EMAIL PROTEC

[PHP] Video Uploads

2004-11-09 Thread Jay Fitzgerald
I can upload just about everything with this script; but I don't understand why it says that the videos i try to upload are zero length. -- THE FORM -- -- THE SCRIPT -- ini_set ('d

Re: [PHP] page redirect question

2004-11-09 Thread Klaus Reimer
Victor C. wrote: Is there anyway to redirect php page other than using HEADER("LOCATION:URL") ? Header can only be called if nothing is written to HTML... Is there anyway around it? You can use output buffering. Then it doesn't matter where you call header(). But if you do a redirect you should cl

RE: [PHP] MySQL

2004-11-09 Thread Murray @ PlanetThoughtful
> If I do something like: > > $string = null; > > mysql_query("insert ignore into table(field) values($string)"); > > It gives me an error. Pass a string value of 'NULL'. Ie INSERT INTO table (field) VALUES (NULL); Or, in your example: $string = 'NULL'; mysql_query("INSERT INTO table (field)

Re: [PHP] page redirect question

2004-11-09 Thread Richard Davey
Hello Victor, Tuesday, November 9, 2004, 4:07:12 PM, you wrote: VC> Is there anyway to redirect php page other than using VC> HEADER("LOCATION:URL") ? VC> Header can only be called if nothing is written to HTML... Is there anyway VC> around it? Not really, no. Maybe with a meta refresh tag or so

[PHP] MySQL

2004-11-09 Thread Octavian Rasnita
Hi all, Please tell me how to send a null string to be inserted in a MySQL database. If I do something like: $string = null; mysql_query("insert ignore into table(field) values($string)"); It gives me an error. In fact, I have multiple fields to insert, and the error just tell me that was an

Re: [PHP] Pb'lm of Regular Expression

2004-11-09 Thread Klaus Reimer
[EMAIL PROTECTED] wrote: thnx for your support every thing is working well but still one problem, that height and width are not coming so how i modify the first regular exp. so it shows both height and width. //s I'm not sure if I

[PHP] page redirect question

2004-11-09 Thread Victor C.
Hi, Is there anyway to redirect php page other than using HEADER("LOCATION:URL") ? Header can only be called if nothing is written to HTML... Is there anyway around it? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why cookie is created?

2004-11-09 Thread Jerry Swanson
Why when I specify session.cookie_lifetime = 1 // Cookies are not created. However, when I specify large lifetime, cookies are created. session.cookie_lifetime = 1500 On Tue, 9 Nov 2004 08:11:46 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I just want to give you a simple exam

Re: [PHP] Pb'lm of Regular Expression

2004-11-09 Thread ankur_os
thnx for your support every thing is working well but still one problem, that height and width are not coming so how i modify the first regular exp. so it shows both height and width. //s Thnx... Ankur Dave Quoting Klaus Re

Re: [PHP] apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9

2004-11-09 Thread Haseeb Iqbal
hi, i manged to install php but with mysqli support only, i want to configure it mysql and mysqli support. as it turned out the error occured when i tred to install both mysql and mysqli support, for the time i am living with mysqli support only untill i figure out what i wsa doing wrong. i have My

Re: [PHP] Why cookie is created?

2004-11-09 Thread ankur_os
I just want to give you a simple example that for diff. of session and cookie is that--- When in our gmail account we will see that one option is there to save the password for 2 weeks, so that eans when u check that bbox and submit then one cookie is created for that comp. with your details nand

[PHP] help with fopen path

2004-11-09 Thread Giles Roadnight
Hi All I'm developing a fusebox PHP app and have a class in a /classes directory that opens an xml file in a directory below the site root using this path: "../siteconfig.xml" All of the places I have used this class from so far have been in the site root. I am now starting some pages in a sub

Re: [PHP] Why cookie is created?

2004-11-09 Thread Ramil Sagum
On Tue, 9 Nov 2004 11:43:19 +, Jerry Swanson <[EMAIL PROTECTED]> wrote: > So As I understand. Session also store ID on the harddrive. I don't > see the big difference between session and cookies from "privacy" > point of view. > Instead of "Session also store ID on the harddrive" a more co

[PHP] Re: in_array not operating as 'expected'

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
Thanx both of you, I know the type-casting bit and have noticed the third parameter which 'fixes' the in_array issue. I just missed 'test' == 0 implied (int) 'test' == 0. Typecasting a string to integer indeed returned 0. Typecasting is of course not necessary within if statements, resulting in my

RE: [PHP] using mysql in php problem

2004-11-09 Thread Graham Cossey
> -Original Message- > From: Garth Hapgood - Strickland [mailto:[EMAIL PROTECTED] > Sent: 09 November 2004 11:27 > To: [EMAIL PROTECTED] > Subject: [PHP] using mysql in php problem > > > I have created a registration page > http://www26a.your-server.co.za/matchm/registration4.php > > On t

RE: [PHP] using mysql in php problem

2004-11-09 Thread Murray @ PlanetThoughtful
> I am not sure where exactly I am going so wrong, and it really is starting > to drive me crazy! > Regards > Garth Hi Garth, Looks like it's time to do some fairly standard debugging. Try putting error_reporting(E_ALL) at the top of the page in question. It may be that you're currently missin

Re: [PHP] Why cookie is created?

2004-11-09 Thread Jerry Swanson
So As I understand. Session also store ID on the harddrive. I don't see the big difference between session and cookies from "privacy" point of view. On Mon, 8 Nov 2004 17:55:03 -0500, Paul Reinheimer <[EMAIL PROTECTED]> wrote: > -- > I don't want to use cookies. > I want to use session. W

Re: [PHP] using mysql in php problem

2004-11-09 Thread raditha dissanayake
Garth Hapgood - Strickland wrote: I have created a registration page http://www26a.your-server.co.za/matchm/registration4.php On this page I have many fields, some of them pulling data out from my database. I have a javascript validation scipt thats checks on submission of the form to see if all re

Re: [PHP] upload via FTP

2004-11-09 Thread raditha dissanayake
Alessandro Rosa wrote: That's even more confusing. You run php scripts off a web server and not an FTP server. Ok ... the server I'm dealing with works for both services. But let me re-explain the question in new terms. I have a bunch of php scripts on a web server. I just wanted to know if it

Re: [PHP] Meta refresh best answer ??

2004-11-09 Thread Justin French
On 09/11/2004, at 2:33 PM, Michael Gale wrote: I am working on a site where people will be updating information in a database and should have up to date info. Now since HTTP is stateless the user will not know about any new information until they click on a link or hit a button on the page. My

Re: [PHP] upload via FTP

2004-11-09 Thread Jason Wong
On Tuesday 09 November 2004 11:10, Alessandro Rosa wrote: > > That's even more confusing. You run php scripts off a > > web server and not an FTP server. > > Ok ... the server I'm dealing with works for both services. > But let me re-explain the question in new terms. > > I have a bunch of php scri

[PHP] using mysql in php problem

2004-11-09 Thread Garth Hapgood - Strickland
I have created a registration page http://www26a.your-server.co.za/matchm/registration4.php On this page I have many fields, some of them pulling data out from my database. I have a javascript validation scipt thats checks on submission of the form to see if all required fields are filled in corre

RE: [PHP] images doesn't seem to cache

2004-11-09 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 06 November 2004 20:09, anders thoresson wrote: > > This code seems to work. Have I got it right? > > No. I have not. Sometimes the images are viewed from the > cache, just >

Re: [PHP] upload via FTP

2004-11-09 Thread Alessandro Rosa
> That's even more confusing. You run php scripts off a > web server and not an FTP server. Ok ... the server I'm dealing with works for both services. But let me re-explain the question in new terms. I have a bunch of php scripts on a web server. I just wanted to know if it is possible to deny a

[PHP] Re: in_array not operating as 'expected'

2004-11-09 Thread Bogdan Stancescu
Apart from Marek's reply, you should probably check the in_array() documentation (look at the third, optional parameter) and search for type casting on php.net. Cheers, Bogdan Ing. Ivo F.A.C. Fokkema wrote: Hi guys and gals, I'm not screaming "Bug! Bug!" but this _does_ look 'illogical' to me. I

Re: [PHP] in_array not operating as 'expected'

2004-11-09 Thread Marek Kilimajer
Ing. Ivo F.A.C. Fokkema wrote: Hi guys and gals, I'm not screaming "Bug! Bug!" but this _does_ look 'illogical' to me. I've searched the archives, but found no earlier conversation. Sorry if I missed it. Consider the following code: var_dump(in_array('test', array(0))); What does this return? I exp

Re: [PHP] Sub selects vs nested loop

2004-11-09 Thread electroteque
Hi guys and girls, while we are on this topic, has anyone got a good senario of a sub select query which can remove the nested loops ? I have been wanting to get rid of nested loops for a good while and now Mysql 4.1 is out I would like to start using it. So the usual scenario for nested loops

Re: [PHP] upload via FTP

2004-11-09 Thread raditha dissanayake
Alessandro Rosa wrote: Your question is not very clear. Do you mean to say you only want your FTP server to be accessible by your php scripts? If so the trick is to listen only on localhost and not on the public ip. No, only some of the scripts shall be accessible by other scripts in the FT

Re: [PHP] upload via FTP

2004-11-09 Thread Alessandro Rosa
> Your question is not very clear. Do you mean to say you only want your > FTP server to be accessible by your php scripts? If so the trick is to > listen only on localhost and not on the public ip. > No, only some of the scripts shall be accessible by other scripts in the FTP server. Alessand

Re: [PHP] Fping problem

2004-11-09 Thread Jason Wong
On Tuesday 09 November 2004 01:54, [EMAIL PROTECTED] wrote: > I have written a simple page that uses fping and was working perfectly just > shelling out to it using the backtick. > > The server it was on crapped out and I'm trying to get it going again on > our new server.I have installed fpin

[PHP] in_array not operating as 'expected'

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
Hi guys and gals, I'm not screaming "Bug! Bug!" but this _does_ look 'illogical' to me. I've searched the archives, but found no earlier conversation. Sorry if I missed it. Consider the following code: var_dump(in_array('test', array(0))); What does this return? I expect bool(false), but it retu

Re: [PHP] PHP Accelerator

2004-11-09 Thread Klaus Reimer
raditha dissanayake wrote: I am also running turck with php5 without too many problems and that's why i recommended it to the OP. However none of the scripts that run on it make use of any of the new features of php5. One example: I'm using osCommerce, which is not using any new PHP5-features (I

Re: [PHP] Meta refresh best answer ??

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
Hi Michael, I always use header('Refresh: 2; url=' . $_SERVER['PHP_SELF']); to reload the current page every 2 seconds. You may want to pass $_GET variables, depending on your needs. Also make sure you call this function _before_ any other output has gone to the browser. HTH, Ivo On Mon, 08

Re: [PHP] PHP Accelerator

2004-11-09 Thread raditha dissanayake
Klaus Reimer wrote: Adrian Madrid wrote: I've been running Turck for some time now on PHP5 and haven't had segfault problems yet. I must say I'm running the latest CVS and using file sessions (Turck's would give you segfaults). I also tried latest CVS and I don't use Turcks cache. Maybe Turck has

Re: [PHP] Arrays

2004-11-09 Thread Klaus Reimer
Zareef Ahmed wrote: But you need to do serialize and unserialize in case of array or object. Do :: $val_ar=array("one","two","three"); $_SESSION['val_ar_store']=serialize($val_ar); Serialization is done automatically. You don't need to do it yourself. You can even store simple value-objects in the

Re: [PHP] PHP Accelerator

2004-11-09 Thread Klaus Reimer
Adrian Madrid wrote: I've been running Turck for some time now on PHP5 and haven't had segfault problems yet. I must say I'm running the latest CVS and using file sessions (Turck's would give you segfaults). I also tried latest CVS and I don't use Turcks cache. Maybe Turck has problems with Objec