Re: [PHP] HTTP_REFERER work without a problem....

2003-01-16 Thread Jason Wong
On Thursday 16 January 2003 05:38, Scott Fletcher wrote: Or worse, not substituting the characters in the Session ID. Just use the same Session ID. What if there is leftover session file in the /tmp directory of the Unix machine and we're dealing with hundred of users each day. Some of

Re: [PHP] I wanta the PHP doc notes.

2003-01-16 Thread Jason Wong
On Wednesday 15 January 2003 21:16, Avenger wrote: Hey,I wanta used the PHP doc user notes. Where can i get it. http://weblabor.hu/php-doc-chm -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Session wierdness...

2003-01-16 Thread Jason Wong
On Thursday 16 January 2003 04:17, Timothy Hitchens \(HiTCHO\) wrote: Now what is the output if you do this outside of the function after registering a session var?? Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Duncan

[PHP] Why oh Why????

2003-01-16 Thread WMB
As a beginner I have been trying and trying, but to no suc6. Hope there's someone here able to help me out: Am trying to get rid of spaces and change all into uppercase in an entered form variable, which I am able to do when trying things out but when running the full php statement it refuses to

[PHP] Re: Php's future with Asp .NET?

2003-01-16 Thread Brian McGarvie
The 'problem' with ASP is that it really requires a Windows platform... and while Unix is still primarily the OS of choice for web-servers then ASP PHP will 'co-exist' there will always be a PHP and ASP camp... naturally any broad-minded developer will keep up with both technologies as this will

[PHP] Random Row...

2003-01-16 Thread Brian McGarvie
$sql = select count(*) as theCount from myTable ; ... $row_id = rand(1, $myrow[theCount]); ... $sql_randow_row select * from myTable where id = $row_id ; I assume I'm right with the method above to select a random row? or any other way? --- Outgoing mail is certified

[PHP] GD version 1.6.2 and resizing images...

2003-01-16 Thread Marco Alting
My provider has GD version 1.6.2 running, and I'm trying to dynamically resize uploaded JPEG images. But ofcourse that doesn't work with that version. Does anyone have another solution to automatically resize JPEG images upon upload? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Random Row...

2003-01-16 Thread Danny Shepherd
Don't make life difficult for yourself :) SELECT * FROM myTable ORDER BY RAND() LIMIT 0,1 HTH Danny. - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 9:37 AM Subject: [PHP] Random Row... $sql = select count(*)

RE: [PHP] Re: Php's future with Asp .NET?

2003-01-16 Thread Sean Malloy
I think that the developers of PHP know exactly where they want PHP to sit in the big bad world of .NET/J2EE. The whole reason the dotnet and java extensions have been written for PHP, is to allow PHP to talk to java/net objects, but more importantly, have PHP act as the front end, and .NET/J2EE

RE: [PHP] Problems with require() and variables

2003-01-16 Thread Ford, Mike [LSS]
-Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 04:33 I have view.php, a script that will include display.php and have to manipulate the variables within display.php for itself. So in view.php I have: require('/.../.../display.php');

Re: [PHP] Getting a dynamic IP address

2003-01-16 Thread Marek Kilimajer
it is stored in $_SERVER[SERVER_ADDR] Kyle Lampkin wrote: Hello all, Newbie here I need to know if there is a way I can get my dynamic IP address for use in a php script? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD version 1.6.2 and resizing images...

2003-01-16 Thread Jason Wong
On Thursday 16 January 2003 17:43, Marco Alting wrote: My provider has GD version 1.6.2 running, and I'm trying to dynamically resize uploaded JPEG images. But ofcourse that doesn't work with that version. Does anyone have another solution to automatically resize JPEG images upon upload? If

Re: [PHP] [phplib template] file does not exist

2003-01-16 Thread Marek Kilimajer
First go to the file that generates the error and find out how it knows the template file does not exists roel wrote: Hi, i'm having a problem. I just installed a webserver with mysql and php. I copied my files that i had stored on another webserver to my new. I didn't change anything to these

Re: [PHP] Images : Store in dB or disk?

2003-01-16 Thread Marek Kilimajer
Bobby Patel wrote: Hello, I have the Images table setup with columns (width, height, size, type, etc...) the question is should I have the image data stored in this table or disk? I know, alot of people have said it is faster in disk, which is 1 page I/O. But I need these images for

Re: [PHP] temporary DNS lookup in php?

2003-01-16 Thread Marek Kilimajer
I'm not sure if I understand you, but you can simply specify IP address and correct Host header Patrick Hsieh wrote: Hello list, I am trying to open a remote webpage in my php program with curl library. The webpage will redirect me to another webpage(Say,

Re: [PHP] Free web-hosting

2003-01-16 Thread David T-G
Gladky -- ...and then Gladky Anton said... % % Hello everybody! Hi! % Can anybody advice me the best free web-hosting with PHP? No, there's still no new advice (I can understand posting a second time because of a lack of response the first time -- and so I'll stop a third post right now).

Re: [PHP] execute shell commands

2003-01-16 Thread Marek Kilimajer
Use sudo (man sudo) Mantas Kriauciunas wrote: Hey! What I want to do is, There is user that logs into the channel. And I need to make script to change his password. How do I execute shell command: passwd ? or what should I do to change that password? Thanks! mNTKz -- PHP General Mailing

Re: [PHP] Php's future with Asp .NET?

2003-01-16 Thread Sancar Saran
On Thursday 16 January 2003 09:07, Dhaval Desai wrote: Hello ppl, I was just wondering what is php's future with something like Asp .Net coming up...I have read many articles by Php guys who think Asp.Net is the future. If that's the true case...is it really worth sticking to Php at all?

[PHP] Speed concerns with OOP and PHP4

2003-01-16 Thread John Wells
I'm working on a large VB/Sql Server to Php/Postgresql conversion (approx. 60k lines of code). I'd like to design this thing as OO as possible, because I think ultimately it leads to better, more extendable and readable software. However, since php does the whole copy thing with objects, I'm a

Re: [PHP] Getting a dynamic IP address

2003-01-16 Thread Chris Hayes
At 00:41 16-1-2003, you wrote: Hello all, Newbie here I need to know if there is a way I can get my dynamic IP address for use in a php script? -- There are loads of variables in the arrays $_SERVER and $_ENV, dump these arrays and see if there is something in it that you can use. Maybe

Re: [PHP] Php's future with Asp .NET?

2003-01-16 Thread 1LT John W. Holmes
On Thursday 16 January 2003 09:07, Dhaval Desai wrote: Hello ppl, I was just wondering what is php's future with something like Asp .Net coming up...I have read many articles by Php guys who think Asp.Net is the future. If that's the true case...is it really worth sticking to Php at

Re: [PHP] document contained no data

2003-01-16 Thread Marek Kilimajer
If the server crashes, it is definetly NOT fault of your scripts, the server/php should return errors when there is something wrong, not crash. Remember that on multithreaded server you are taking other requests down too. The server, php, some extenssion might have been miscompiled, wrong

Re: [PHP] Speed concerns with OOP and PHP4

2003-01-16 Thread Maxim Maletsky
John Wells [EMAIL PROTECTED] wrote... : I'm working on a large VB/Sql Server to Php/Postgresql conversion (approx. 60k lines of code). First of all, VB is precompiled and PHP is not. This will already be slower. So, you gonna need to create a logic that loads only the necessary classes for

[PHP] MIME email...

2003-01-16 Thread Brian McGarvie
All, I have a problem sending Multipart - MIME (plaintext + html) email $bodyPlaintext = (PLAINTEXT); $bodyHTML = (HTML CODE); $headers = ; $headers .= From: [EMAIL PROTECTED]\r\n; $headers .= Reply-To: [EMAIL PROTECTED]\r\n; $headers .= X-Mailer: PHP . phpversion(); $subject =

[PHP] Problem with a for loop...

2003-01-16 Thread Davíð Örn Jóhannsson
I have al for loop that looks something like this: $checkCurrName = SELECT imgName FROM $db_img ORDER BY imgName DESC; $resultCurrName = mysql_query($checkCurrName, $db); for ($i = 0; $i $n; $i++){ list($currName) = mysql_fetch_row($resultCurrName); $newName =

RE: [PHP] File() function and require()

2003-01-16 Thread Mike Tharp
OK, I have a file called page.php that has the following code in it (example but same layout and concept). ?PHP require(membercheck.php); ? html head titlePage Title/title /head body This is the text in the body of the page. /body /html The membercheck.php file contains

Re: [PHP] Problem with a for loop...

2003-01-16 Thread 1LT John W. Holmes
Are you sure $n is being set somewhere? Why not do it like this: while($row = mysql_fetch_row($resultCurrName)) { print $row[0]+1; //do rest of whatever... } ---John Holmes... - Original Message - From: Davíð Örn Jóhannsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

Re: [PHP] Php's future with Asp .NET?

2003-01-16 Thread Maxim Maletsky
Dhaval Desai [EMAIL PROTECTED] wrote... : Hello ppl, I have read many articles by Php guys who think Asp.Net is the future. What PHP guys? If that's the true case...is it really worth sticking to Php at all? Definitely yes, unless you love paying the licenses for every single form you

FW: [PHP] Problem with a for loop...

2003-01-16 Thread Davíð Örn Jóhannsson
-Original Message- From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]] Sent: 16. janúar 2003 13:59 To: '1LT John W. Holmes' Subject: RE: [PHP] Problem with a for loop... I only want the last inserted row in the mysql database, and each time the script goes trough the loop it adds a

php-general Digest 16 Jan 2003 14:08:49 -0000 Issue 1826

2003-01-16 Thread php-general-digest-help
php-general Digest 16 Jan 2003 14:08:49 - Issue 1826 Topics (messages 131798 through 131857): Re: Session Problem 131798 by: Matt Get the date of the last sunday 131799 by: Renaldo De Silva 131800 by: Daniel Kushner 131804 by: Gladky Anton MySQL Query - Not

RE: [PHP] Problem with a for loop...

2003-01-16 Thread Matt Schroebel
-Original Message- From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]] Sent: 16. janúar 2003 13:59 Subject: RE: [PHP] Problem with a for loop... I only want the last inserted row in the mysql database, and each time the script goes trough the loop it adds a new row into the

[PHP] Re: MIME email...

2003-01-16 Thread Manuel Lemos
Hello, On 01/16/2003 11:37 AM, Brian McGarvie wrote: Now... the problem I have is some people are reporting they get the Multi-part stuff as the body... for others it'll work as wanted... i.e. display Plaintext or render the HTML as wanted. Anyone had this problem? It looks like one of those

Re: [PHP] intermittent session loss

2003-01-16 Thread 1LT John W. Holmes
Is there any kind of load balancing on your server? If you watch the session files in /tmp, are they getting erased? ---John Holmes... - Original Message - From: Justin French [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 2:55 AM Subject: [PHP] intermittent

Re: [PHP] File() function and require()

2003-01-16 Thread 1LT John W. Holmes
OK, I have a file called page.php that has the following code in it (example but same layout and concept). ?PHP require(membercheck.php); ? html head titlePage Title/title /head body This is the text in the body of the page. /body /html The membercheck.php

[PHP] system(): access denied

2003-01-16 Thread lastnumberone
Hello All, I have a script which uploads a mysqldump file into the server and use system(mysql -uroot -p the_dump_file.sql) to restore the database. While, it does not go through and the apache error_log shows: Enter password: Enter password: ERROR 1045: Access denied for user: 'root@localhost'

Re: [PHP] [phplib template] file does not exist

2003-01-16 Thread roel
Thank you, this helped me to find the problem. It seemed that i had to set the $root variable in the templated class, although i never had to do this on the other server, but it works now. Thanks!! Marek Kilimajer [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Warning: OCIFetchInto: ORA-01002: ????

2003-01-16 Thread ys_zhu
hello all: XP+IIS5.1+PHP4.3+ORACLE9.2(client) ERROR REPORT as follow: Warning: OCIFetchInto: ORA-01002: in C:\MyPHP\test.php on line 18 Error - no rows returned! test.php: ?php if (empty($offset) || $offset 0) $offset=0; } $limit = 3; $conn = OCILogon(userid, userpasswd, SID); if

Re: [PHP] system(): access denied

2003-01-16 Thread Marek Kilimajer
There is nothing wrong with it, with the -p switch, you specify you want to supply a password, but you don't give any, hence access denied [EMAIL PROTECTED] wrote: Hello All, I have a script which uploads a mysqldump file into the server and use system(mysql -uroot -p the_dump_file.sql) to

Re: [PHP] system(): access denied

2003-01-16 Thread lastnumberone
But why it is ok when i use system(mysqldump -uroot -p my_dump_file.sql)? thanks Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... There is nothing wrong with it, with the -p switch, you specify you want to supply a password, but you don't give any,

Re: [PHP] Php's future with Asp .NET?

2003-01-16 Thread Khalid El-Kary
leave PHP, work with ASP .NET and let Microsoft gain more domination and say bye bye for your freedom, then let develpment go and work as a machine that does like Microsoft wants oh, i forgot, remember to submit ASP .NET bug reports to their site, to get a reply after 5 months :) Open-Source

Re: [PHP] Re: Php's future with Asp .NET?

2003-01-16 Thread Maxim Maletsky
Brian McGarvie [EMAIL PROTECTED] wrote... : The 'problem' with ASP is that it really requires a Windows platform... Depends where. C# has a Linux platform called `mono'. It is not as good as MS' native enviroment, but can work. and while Unix is still primarily the OS of choice for

RE: RE: [PHP] Problems with require() and variables

2003-01-16 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 14:35 To: [EMAIL PROTECTED] Copying this back to the list, in case anyone else can contribute (although I think the attachments will be stripped -- can you make them available on a URL?).

Re: [PHP] system(): access denied

2003-01-16 Thread Marek Kilimajer
I suppose because if you use mysqldump -uroot -p my_dump_file.sql the password is read from my_dump_file.sql [EMAIL PROTECTED] wrote: But why it is ok when i use system(mysqldump -uroot -p my_dump_file.sql)? thanks Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] system(): access denied

2003-01-16 Thread lastnumberone
no, i use mysqldump -uroot -p my_dump_file.sql it is not '' but '' Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I suppose because if you use mysqldump -uroot -p my_dump_file.sql the password is read from my_dump_file.sql [EMAIL

[PHP] No constants being set. HUH?

2003-01-16 Thread Mako Shark
I just JUST installed PHP onto a new server (my first--kinda scary, new foray) and my pre-defined constants (HTTP_SERVER, SCRIPT_NAME, etc.) aren't being set. Any ideas? What switch do I have to flick? __ Do you Yahoo!? Yahoo! Mail Plus - Powerful.

Re: [PHP] intermittent session loss

2003-01-16 Thread Chris Shiflett
--- Justin French [EMAIL PROTECTED] wrote: I did notice that once I login (it says you are logged in as justin across the top of the screen), if I refresh the same page a few times, it will MOSTLY say you are logged in as... but OCCASIONALLY it says click here to login... What's likely to

Re: [PHP] system(): access denied

2003-01-16 Thread Chris Boget
But why it is ok when i use system(mysqldump -uroot -p my_dump_file.sql)? As alluded to by the last user (who got the command wrong), when you do: system(mysql -uroot -p the_dump_file.sql) it doesn't know where the command ends and the input begins. So what's going on is that the command

Re: [PHP] system(): access denied

2003-01-16 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: no, i use mysqldump -uroot -p my_dump_file.sql it is not '' but '' That syntax is fine, and it should prompt you for a password. My suggestion is to give the root account a password and don't worry about all of this. I think I read that it is currently empty,

RE: [PHP] No constants being set. HUH?

2003-01-16 Thread Ford, Mike [LSS]
-Original Message- From: Mako Shark [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 15:26 To: [EMAIL PROTECTED] Subject: [PHP] No constants being set. HUH? I just JUST installed PHP onto a new server (my first--kinda scary, new foray) and my pre-defined constants (HTTP_SERVER,

Re: SPAM: Re: [PHP] intermittent session loss

2003-01-16 Thread Justin French
on 17/01/03 1:24 AM, 1LT John W. Holmes ([EMAIL PROTECTED]) wrote: Is there any kind of load balancing on your server? It's a single server, so to the best of my knowledge, no. If you watch the session files in /tmp, are they getting erased? No, because they reappear and page or two later.

Re: [PHP] document contained no data

2003-01-16 Thread Justin French
on 16/01/03 11:59 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: If the server crashes, it is definetly NOT fault of your scripts, the server/php should return errors when there is something wrong, not crash. Remember that on multithreaded server you are taking other requests down too. The

Re: [PHP] system(): access denied

2003-01-16 Thread Adam Voigt
This is infact not the case, using the operator does not make the mysqldump program read that file and interpret the data in the file as the password, if you have a proper password set and use the -p option (even with a operator) it will still ask you for a password. On Thu, 2003-01-16

Re: [PHP] system(): access denied

2003-01-16 Thread Chris Shiflett
--- Chris Boget [EMAIL PROTECTED] wrote: system(mysql -uroot -p the_dump_file.sql) it doesn't know where the command ends and the input begins. So what's going on is that the command thinks that the password is coming from the the_dump_file.sql. It knows exactly where the command ends and

[PHP] nl2br too?

2003-01-16 Thread Cesar Aracena
Hi all, When I make a form in a web site for a visitor to send me some comments, I use nl2br() to put things like line breaks and see what the visitor wants me to see. But what happens if I have a web form to input some text into a TEXT cell in MySQL and want to retrieve it like I wrote it?

[PHP] experience in OOP PHP combination needed

2003-01-16 Thread Hannes Smit
Hello, I want to build an object oriented application and i don't know how to do it. Should i store everything in class instances and let those object communicate with each other? I think that would be the real OOP. I need some articles, tutorials or just people with experience in building

Re: [PHP] intermittent session loss

2003-01-16 Thread Marek Kilimajer
Check the cookies you have stored in your browser. I once had similar problem, when I had 2 cookies of the same name set, but different in path, one had /directory the other one /directory/ Justin French wrote: on 17/01/03 1:24 AM, 1LT John W. Holmes ([EMAIL PROTECTED]) wrote: Is there any

Re: [PHP] system(): access denied

2003-01-16 Thread Chris Boget
system(mysql -uroot -p the_dump_file.sql) it doesn't know where the command ends and the input begins. So what's going on is that the command thinks that the password is coming from the the_dump_file.sql. It knows exactly where the command ends and the input begins. It is the symbol.

Re: [PHP] nl2br too?

2003-01-16 Thread Chris Shiflett
--- Cesar Aracena [EMAIL PROTECTED] wrote: When I make a form in a web site for a visitor to send me some comments, I use nl2br() to put things like line breaks and see what the visitor wants me to see. But what happens if I have a web form to input some text into a TEXT cell in MySQL and

Re: [PHP] document contained no data

2003-01-16 Thread Marek Kilimajer
Someone else might be, you just happened to request a page from the same server process Justin French wrote: on 16/01/03 11:59 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: If the server crashes, it is definetly NOT fault of your scripts, the server/php should return errors when there is

Re: [PHP] Getting a dynamic IP address

2003-01-16 Thread Danny Shepherd
$_SERVER['SERVER_ADDR'] gives the address of the server running the php script $_SERVER['REMOTE_ADDR'] gives the client address or the proxy address. (be careful here, storing a proxy's IP is next to useless) $_SERVER[' HTTP_X_FORWARDED_FOR'] gives the client address if they're behind a proxy (if

[PHP] Redirecting

2003-01-16 Thread Denis L. Menezes
Hello friends. I want ot redirect users to another page after successful login. Can someone please help me with the PHP code for redirecting? Or point me to some help page? thanks denis

[PHP] Re: Security in included PHP files

2003-01-16 Thread Philippe Saladin
directly. My main question is if all of the code inside an included PHP file is put inside one or more functions this should prevent anyone from running any of that code by directly calling that PHP file correct? There is no way for them to invoke a function just from a URL assuming I have no

Re: [PHP] Redirecting

2003-01-16 Thread Andrew Brampton
php.net/header check out the examples Andrew - Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: PHP general list [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 4:21 PM Subject: [PHP] Redirecting Hello friends. I want ot redirect users to another page after successful

Re: [PHP] nl2br too?

2003-01-16 Thread gamin
Chris Shiflett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... --- Cesar Aracena [EMAIL PROTECTED] wrote: When I make a form in a web site for a visitor to send me some comments, I use nl2br() to put things like line breaks and see what the visitor wants me

Re: [PHP] Redirecting

2003-01-16 Thread Chris Shiflett
--- Denis L. Menezes [EMAIL PROTECTED] wrote: I want ot redirect users to another page after successful login. Can someone please help me with the PHP code for redirecting? You have many options: 1. After a successful login, display the proper page to the user instead of redirecting. This is

[PHP] Ever complained about lousy PHP programmers?

2003-01-16 Thread Peter Hutnick
Well, here's your chance to criticize a newbie. As an exercise in learning PHP I have written a rot-13 script. It is at http://hutnick.com/rot13/index.html?show_content=1 . I'm soliciting comments on style, technique, etc. Be brutal, but don't get your feelings hurt if I don't take your

Re: [PHP] Send email when some action

2003-01-16 Thread Miguel Brás
thx for the replies Miguel Maxim Maletsky [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... mail() function @ http://php.net/mail -- Maxim Maletsky [EMAIL PROTECTED] Miguel Brás [EMAIL PROTECTED] wrote... : Hi gents, i have a script to manage the

[PHP] get the $email string

2003-01-16 Thread Miguel Brás
Hi, i made a page to display some user details and then clicking on the user name it goes to another page to send a mail via mail() function. here is the line of the first page td width=20% align=centerbfont face=Arial size=1 color=#808080a href=mail_active.php?email=$email? echo $row-name;

[PHP] Redirecting - here is the code

2003-01-16 Thread Denis L. Menezes
I tried. But I get an error as follows : Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/virtual2/66/175/19/84/html/maintenance.php:11) in /usr/local/www/virtual2/66/175/19/84/html/maintenance.php on line 30 My code is as follows: !DOCTYPE HTML

Re: [PHP] Redirecting - here is the code

2003-01-16 Thread Jason Wong
On Friday 17 January 2003 01:07, Denis L. Menezes wrote: I tried. But I get an error as follows : Warning: Cannot add header information - headers already sent by (output Try searching the archives on the above error. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

[PHP] Re: Images : Store in dB or disk?

2003-01-16 Thread Bobby Patel
With regards to Marek, I don't see how there would be two queries, because there row conisists of image properties and image data. So when i select the required row(s), I will have properties and images. So it will be 1 query, of course it is a big (size-wise) query. With regards to Jason, Your

RE: [PHP] Re: Images : Store in dB or disk?

2003-01-16 Thread Daniel Kushner
You must remember that Images are embedded in HTML using the img tag. Each image displayed on a Webpage is a result of a seperate HTTP request to the server; i.e. a PHP call in this case. Unless you are cache the SQL result, at least one query is needed per image. Regards, Daniel Kushner

[PHP] Strange behavior on backtick operator execution environment

2003-01-16 Thread Marc Cluet
Hi guys I have upgraded from PHP 4.2.2 to PHP 4.3.0 and some of my php script got broken due to that. This scripts use backticks to execute functions, the problem is the environment where that functions are executed. I have this test code: ?php $dir=`pwd`; echo I am on directory: $dir; ? If I

Re: [PHP] Redirecting - here is the code

2003-01-16 Thread Denis L. Menezes
I ahve tried everything jason. It says that there should be no output before the header(). I cannot still find the error. Can you please help in locating the error? thanks Denis - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 17, 2003

[PHP] imageCreate() error

2003-01-16 Thread Ed
I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled php_gd and it does show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 directory (I've also tried it in almost every other directory too) and I get these error messages: Cannot add header information - headers already

Re: [PHP] Redirecting - here is the code

2003-01-16 Thread Mike Morton
You cannot have ANY output b4 sending a header unless you are buffering your output. In your example you are sending HTML before your redirect - the redirect has to happen before you do any kind of HTML or any characters that would get output to the browser. On 1/16/03 12:40 PM, Denis L. Menezes

Re: [PHP] Redirecting - here is the code

2003-01-16 Thread Joci
Hi! From manual (http://www.php.net/manual/en/function.header.php): Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank linek in a file, or from PHP. You need to start with header()... Example: ?php header('Location:

RE: [PHP] Redirecting - here is the code

2003-01-16 Thread Marios Adamantopoulos
I think your problem is with the meta tag meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 -- header Also I'm not sure but the !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN might cause problems too Try the if statement at the top of the document. One more thing.

Re: [PHP] Strange behavior on backtick operator execution environment

2003-01-16 Thread Jason Wong
On Friday 17 January 2003 01:37, Marc Cluet wrote: Hi guys I have upgraded from PHP 4.2.2 to PHP 4.3.0 and some of my php script got broken due to that. This scripts use backticks to execute functions, the problem is the environment where that functions are executed. I have this test code:

RE: [PHP] Adding HTTP URL Code

2003-01-16 Thread ELLIOTT,KATHERINE A (HP-FtCollins,ex1)
Thanks for all your help with my URL code problem! I have come up with a solution that seems to half work and I can't figure out what I need to do to get it fully functional. Given my data string (text) from my database, this is what I do to replace the URL text with a functioning link. I am

Re: [PHP] OOP

2003-01-16 Thread Jordan Elver
Thanks Greg, I know a bit of PHP but the OOP is a bit harder to understand I think :) I'll check out the PEAR classes. Cheers, Jordan On Thursday 16 Jan 2003 12:25 am, Greg Beaver wrote: Hi Jordan, If you are doing this to learn PHP, that is great, keep plugging. If you want to see working

Re: [PHP] OOP

2003-01-16 Thread Jordan Elver
Thanks John, Inheriting would probably be the most modular. I thought this would be the way to go. Ill need to read up on this. I haven't found any clear examples of this kind of OOP, only the real basics (which I still need help with by the way :) ). Use google. Do some more studying

[PHP] Re: get the $email string

2003-01-16 Thread Rafael Rodrigo - NSI
I don't know how do you get this answer, but try this: a href=email=$email? echo $row-name; ?/a/font/b/td Rafael Rodrigo Hi, i made a page to display some user details and then clicking on the user name it goes to another page to send a mail via mail() function. here is the line of the

[PHP] Apache 2.0.43 and PHP 4.3.0 on Windows - Problems

2003-01-16 Thread Beauford.2002
Here we go again. I installed Apache and it works fine, I then installed PHP and all tests show it works fine - but when I try to get the PHP modules loaded for Apache in httpd.conf, the Apache server won't start again. The only error I get is a Windows error box that says The requested operation

RE: [PHP] Re: get the $email string

2003-01-16 Thread Brian T. Allen
Hi, If you have a URL like: http://www.whatever.com/page.php?[EMAIL PROTECTED] Then in your script $email will already be set to [EMAIL PROTECTED]. This depends on register_globals being on, if I remember correctly, and you'll want to be aware of the order for variable assignment (for POST,

[PHP] Re: Ever complained about lousy PHP programmers?

2003-01-16 Thread Leon Mergen
Peter Hutnick [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm soliciting comments on style, technique, etc. Be brutal, but don't get your feelings hurt if I don't take your comments as gospel. References will help me take comments to heart. Heck, I don't

[PHP] Any Web Application Development Studio available?

2003-01-16 Thread Steve Magruder
I realize that Zend produces a PHP development studio, but I'm looking for something that helps the programmer use PHP (along with Javascript, CSS, web GUI languages, etc.) to develop enterprise web _applications_ (like for production data entry). I'd also like this studio to make available a set

Re: [PHP] Re: Ever complained about lousy PHP programmers?

2003-01-16 Thread Peter Hutnick
Leon Mergen said: Now, first of all, why did you this: ?php echo(?xml version=\1.0\ encoding=\UTF-8\ ?); ? and not just: ?xml version=1.0 encoding=UTF-8 ? Because short tags are evil ;-) My provider has short tags enabled, so there is no getting around this bit of ugliness. only that I

[PHP] mail via php. 2 questions...

2003-01-16 Thread Øystein Håland
The first problem I cannot solve on my own: I get the mail content from a cookie. Quite a big cookie since it is a collection of 30 - 40 form values from another page. When recieving the mail, the content come in ONE long string, and in some places with a \BR\. Of course, i dont want this to be

[PHP] Passing Arrays Through Forms

2003-01-16 Thread @ Nilaab
Hello Everyone, I've attempted this many times, but have failed to understand it each time. I want to make it easier for myself to deal with passing variables through a form. So I thought, why not use a single array variable to do that. If I do such a thing, what steps do I need to take to ensure

[PHP] Imagecreatefromjpeg()

2003-01-16 Thread Sara Keesler
Hi, I've seen this bounced around on the archives a bit, but none of the advice on there is working for me. I'm trying to do something very simple: ? Header(Content-type: image/jpeg); $im = ImageCreateFromJpeg('1234_1.jpg'); ImageJpeg($im);? The file is in the folder, it has execute and

[PHP] Re: Fw: HTTP_REFERER work without a problem....

2003-01-16 Thread Joel Boonstra
On Wed, 15 Jan 2003, Kevin Stone wrote: Chris I appreciate your response but please read my post again. I did not suggest using the IP for user identification. I suggested using it as a temporary id. I went on further to suggest to use sessions to identify individual users behind a proxy

RE: [PHP] Imagecreatefromjpeg()

2003-01-16 Thread Matt Schroebel
? Header(Content-type: image/jpeg); $im = ImageCreateFromJpeg('1234_1.jpg'); ImageJpeg($im);? The file is in the folder, it has execute and write permissions set, and the error given is The image cannot be displayed, because it contains errors., which is not very useful. Anyone have

[PHP] List items in table with a hypertext link

2003-01-16 Thread Mike Tuller
I have been looking for an example of how to create a listing of items in a table where you have the first item in the list have a link so that when you click on it, it will open a page for editing the contents of that item. So for instance you have a list of employees, and you want to change

[PHP] Set element closeness measure

2003-01-16 Thread typea
Give about 1 MILLION sets of 1 to ~20 integers such as: (15, 42, 57, 314, 1024) I need to be able to compare any two sets and determine if any of their elements are within, say, 20 of each other. Example: (10, 100, 1000) CLOSETO (50, 150, 1050) == FALSE (10, 100, 1000) CLOSETO (15, 150, 1050)

[PHP] session_destroy have strange effect....

2003-01-16 Thread Scott Fletcher
session_destroy() do work when I logged out of the website. But if I'm logged in and open a 2nd browser and try to log in. This where the script I use to detect exisitng session and destroy it before generating a new one. Problem is that session_destroy does not work on the 2nd browser... So,

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-16 Thread Scott Fletcher
IP address is not an effective solution. Anyone can use a 2nd browser on the same machine. Also, if for a company with 1000 machine behind the firewall, they all get one and the same IP address outside the firewall. Kevin Stone [EMAIL PROTECTED] wrote in message

[PHP] Re: Security in included PHP files

2003-01-16 Thread Jacob Copsey
This should work as long as you are only including your include files from scripts named index.php. --Jacob Philippe Saladin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... directly. My main question is if all of the code inside an included PHP file is put

[PHP] Re: session_destroy have strange effect....

2003-01-16 Thread Scott Fletcher
Oh never mind. I found a work around to it. I can use the passthru command. Like this... --clip-- passthru(rm -f /tmp/sess_*) --clip-- Scott Fletcher [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... session_destroy() do work when I logged out of the

[PHP] PHP and PDF Forms

2003-01-16 Thread ed
Anyone have some good examples of using PDF forms and parsing the form using PHP? I've done some searching (ala google and manual) but all they seem to mention is parsing a .fdf file. Seemingly when you use a PDF form and set the action to a php script a file is still generated on the client

  1   2   >