[PHP] what wrong in this code ?

2002-11-13 Thread Alawi albaity
why the varible value(123) is not printed? ? function is_login(){ session_start(); if (session_is_registered(test) ){ return true; }//end if else{ return false; }//end else }// end is_login() function function make_login(){ session_start(); session_register('test'); $test =

Re: [PHP] XML into PHP

2002-11-13 Thread Krzysztof Dziekiewicz
Wednesday, November 13, 2002, , wrote: How would i call a page in PHP that is XML? eg; if i had a file that was like below. http://www.philipnz.com/news/rss.xml and i wanted to include it onto a page. Look into PHP manual: XML parser functions -- PHP General Mailing List

[PHP] Sorting array in national charset

2002-11-13 Thread Bc. Radek Kreja
Hello, I have problem with array sorting functions in my charset. I have two ways - windows-1250 and iso-8859-2. I set locale with SetLocale(LC_ALL, cs_CZ); but it still doesn't work. If I write ASort($somearray, SORT_STRING); it's problem. What I may do? Thanks Radek -- S

[PHP] Re: Works in html, not when echoed in PHP

2002-11-13 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Folks, Can't see an answer anywhere in the archives, so here goes. This works fine in plain html: body onload=start();initialize();onoff('mainmenu',section,'on') onresize=window.location.reload(false) topmargin=1 bottommargin=0

[PHP] Re: PHP's mail() function doesn't work on my server

2002-11-13 Thread David Robley
In article 004101c288f5$2fa6f0b0$0100a8c0@hub, [EMAIL PROTECTED] says... I have sendmail installed and the path to it in the php.ini is correct, when i try a file just containing the mail() function (no errors in that!) it starts sendmail but nothing gets sent! root 22508 0.0 0.2

RE: [PHP] Why $ on variable names?

2002-11-13 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... In an earlier message, Larry Rosenman [mailto:ler;lerctr.org] said ... How about: That's the way the language designers did it, and there's LOTS of PRODUCTION code out there that uses it. Because that's the way it is? Well,

[PHP] Re: php/mysql not mutually connected

2002-11-13 Thread David Robley
In article 003001c28a86$cab1dce0$[EMAIL PROTECTED], [EMAIL PROTECTED] says... I have php (as an apache module) and mysql up and running on Windows in the same computer, but they seem to be unconnected. How do I configure php.ini, my.ini, etc for a php script to find and query a database in

RE: [PHP] left click downloads

2002-11-13 Thread Javier Montserat
here is a simple function I have created to do single click downloads in php - function sendFile($filepath) { $filename = basename($filepath); $mimeType = mime_content_type($filepath) header(Content-type: $mimeType); header(Content-Disposition: attachment; filename=$filename);

RE: [PHP] what wrong in this code ?[Scanned]

2002-11-13 Thread Michael Egan
I think it's to do with the scope of the variable. It will work if you declare the variable as global within the make_login function. Michael Egan -Original Message- From: Alawi albaity [mailto:alawi;php4web.com] Sent: 13 November 2002 08:13 To: PHPList Subject: [PHP] what wrong in this

[PHP] informix and 4.2.3

2002-11-13 Thread Matthieu Le Corre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all , I upgrade php from 4.2 to 4.2.3 and it seems that i can't connect to my ifx server anymore . the code has not changed . the only think taht change is pache version - apache 2 and php compiled for apache DSO instead of static

[PHP] Re: Works in html, not when echoed in PHP

2002-11-13 Thread Javier Montserat
rather than using echo why not just do this - ? body onload=start();initialize();onoff('mainmenu',section,'on') onresize=window.location.reload(false) topmargin=1 bottommargin=0 leftmargin=0 rightmargin=0 ? this way you don't have to worry about getting the quotes right... Hello, Aaron

[PHP] session is not work with IIS

2002-11-13 Thread Alawi albaity
session is not work with IIS I install php in : c:\php and IIS in c:\Inetpub

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Justin French
Relying on the referrer is bad mojo anyway, because not all useragents (browsers) set it... it's not required by standards. I have a feeling that if you're needing this, you've got a bad data/design issue. Anyway, since you've used javascript (i won't bother to mention the 1000's of useragents

Re: [PHP] session is not work with IIS

2002-11-13 Thread Ernest E Vogelsinger
At 11:21 13.11.2002, Alawi albaity said: [snip] session is not work with IIS I install php in : c:\php and IIS in c:\Inetpub [snip] Check the setting of the session.save_path in your INI file. This must point to a

[PHP] system()

2002-11-13 Thread Sebastian Konstanty Zdrojewski
Hi everybody, I am attempting to run in background a script started from apache. To do this I am using the following command line from my script: exec( /home/myscript.sh /dev/null ); So my script should run in background (as written on the documentation). It's not true: my execution under

Re: [PHP] form with two actions

2002-11-13 Thread Justin French
For that example, you don't need two submits... the same script that handles the submitted data for the database can send the email... usually it's only a problem if one form has to be submitted to two servers, or something... do you need an example? Justin on 13/11/02 3:05 PM, Scott ([EMAIL

[PHP] system()

2002-11-13 Thread Sebastian Konstanty Zdrojewski
Hi everybody, I am attempting to run in background a script started from apache. To do this I am using the following command line from my script: exec( /home/myscript.sh /dev/null ); So my script should run in background (as written on the documentation). It's not true: my execution

[PHP] Re: system()

2002-11-13 Thread Sebastian Konstanty Zdrojewski
Ok, I solved... It was so easy, I am trying to find the solution since yesterday. I added the apersand () at the end of command line. It works in background. Thanks anyway! Have a nice day! :) En3pY Sebastian Konstanty Zdrojewski wrote: Hi everybody, I am attempting to run in background a

Re: [PHP] Why $ on variable names?

2002-11-13 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, JR said: I guess this could be true. But I don't understand why someone would need an easy way to identify variables? Why not an easy way to identify function names? Or constants? For big projects and/or safety

RE: [PHP] PHP and UTF-8

2002-11-13 Thread Carlos
MySQL can store/retrieve utf-8 data just fine, I think the only limitation is searches and other such functions. One other limitation in php seems to be unicode paths/filenames for filesystem functions.. Which I cannot get to work. -Original Message- From: Charles Wiltgen

[PHP] PHP Auth with Apache

2002-11-13 Thread Alexander Bemme
Hi, i got a little problem (i hope so) I have installed Apache 1.3.26 and PHP 4.2.3 as module. I used the example from www.php.net to do a PHP authentication, but it didn't work, the pop appears but i can't login. In PHPManual is someting about AuthType but nothing about how to fix it. Can

Re: [PHP] ereg_replace();

2002-11-13 Thread Gustaf Sjoberg
Ah, very nice Ernest. thanks a lot. the nice thing is that i read and understood the regexp so i got a great deal out of having this problem ;-) cheers, GS On Wed, 13 Nov 2002 08:28:30 +0100 [EMAIL PROTECTED] (Ernest E Vogelsinger) wrote: At 01:59 13.11.2002, Gustaf Sjoberg said:

[PHP] redirect without using header

2002-11-13 Thread pig pig
Hi there, Is there a way to do redirect to another page without using the header function. I am getting an error by using header but I couldn't find any part of my code that output anything before using header. Thanks in advance CK Ong __ Do You

Re: [PHP] redirect without using header

2002-11-13 Thread Heilig (Cece) Szabolcs
Hello! I am getting an error by using header but I couldn't find any part of my code that output anything before using header. Check your included files what included before using header(); These files start with ? and ends with ? without whitespace after that? And you can use ob_start() at

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Joseph Szobody
Thanks Justin. I should have clarified this is going to be used on an Intranet, where I can be sure that every browser will be IE 6 with javascript enabled, and no firewalls between the webserver and the clients. That's why I felt more or less safe with depending on HTTP_REFERER and

[PHP] locale

2002-11-13 Thread Bc. Radek Kreja
Hi, I have problem with locale on PHP, how a may instal it, I use OpenBSD. Thanks Radek -- S pozdravem, Bc. Radek Kreja Starnet, s. r. o. [EMAIL PROTECTED] +420 608 470980 http://www.ceskedomeny.cz http://www.skdomeny.com http://www.starnet.cz -- PHP General Mailing List

Re: [PHP] redirect without using header

2002-11-13 Thread 1LT John W. Holmes
Hi there, Is there a way to do redirect to another page without using the header function. I am getting an error by using header but I couldn't find any part of my code that output anything before using header. The error message tells you where output was started. It says something like

RE: [PHP] Would appreciate thoughts on session management

2002-11-13 Thread Ford, Mike [LSS]
-Original Message- From: Charles Wiltgen [mailto:lists;wiltgen.net] Sent: 12 November 2002 20:14 For example, take my spinner object example. By using Invisible Get, after clicking on the increment spinner button the user sees http://www.getsome.com/ rather than

RE: [PHP] Multiple selections

2002-11-13 Thread Ford, Mike [LSS]
-Original Message- From: David Rice [mailto:davidrice;rogers.com] Sent: 13 November 2002 01:00 On Tuesday, November 12, 2002, at 07:34 PM, Ernest E Vogelsinger wrote: Sure it is - just name the listbox control myvar[] (note the angle brackets). PHP will recognize this being

RE: [PHP] Multiple selections

2002-11-13 Thread Ford, Mike [LSS]
-Original Message- From: Ernest E Vogelsinger [mailto:ernest;vogelsinger.at] Sent: 13 November 2002 07:34 To: David Rice I've made quite a number of JavaScripts controlled PHP dialogs containing the [], they all work like a charm. There's only one thing you cannot do AFAIK:

[PHP] PHP extensions

2002-11-13 Thread Mako Shark
Is there a list of PHP extensions out there somewhere, and what the function of each one is? And does anyone have the URL of that e-mail extension everyone finds so useful? __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos

Re: [PHP] redirect without using header

2002-11-13 Thread pig pig
Hi Heilig, I have been trying to use the ob_start and ob_end_flush(), but I am not sure where to put them. I try putting just before the header() but it still produce the warning that something has been output to the browser. Thanks CK Ong --- Heilig (Cece) Szabolcs [EMAIL PROTECTED] wrote:

[PHP] PHP and MySQL sorting using COUNT

2002-11-13 Thread ed
I'm sorting records using COUNT with the following mysql command $result = mysql_query (SELECT company_name, agent_name, count(*) FROM $cur_listings GROUP BY company_name, agent_name); Running this in MySQL does exactly what I need it to do but how do I echo the COUNT portion of the array? I

Re: [PHP] what wrong in this code ?

2002-11-13 Thread Marek Kilimajer
Alawi albaity wrote: why the varible value(123) is not printed? ? function is_login(){ session_start(); if (session_is_registered(test) ){ return true; }//end if else{ return false; }//end else }// end is_login() function function make_login(){ you need global $test; here

Re: [PHP] PHP and MySQL sorting using COUNT

2002-11-13 Thread @ Edwin
Hello, [EMAIL PROTECTED] wrote: I'm sorting records using COUNT with the following mysql command $result = mysql_query (SELECT company_name, agent_name, count(*) FROM $cur_listings GROUP BY company_name, agent_name); Running this in MySQL does exactly what I need it to do but how do I

Re: [PHP] redirect without using header

2002-11-13 Thread Heilig (Cece) Szabolcs
Start your code with ob_start() It fires up an output buffer, does not output (and headers) until ob_end_flush() called. Put ob_end_flush() after all, before last ? Your code might looks as follows: ?php ob_start(); echo whatever; header whatever; ob_end_flush(); ?

RE: [PHP] PHP and MySQL sorting using COUNT

2002-11-13 Thread Steve Edberg
Actually, using your original query and referring to $row['count(*)'] would work too. However, when using calculated fields I always use a column alias as Rich recommends - it makes things a lot clearer. -steve At 1:54 PM + 11/13/02, Rich Gray [EMAIL PROTECTED] wrote: try '... ,count(*)

Re: [PHP] redirect without using header

2002-11-13 Thread @ Edwin
Hello, pig pig [EMAIL PROTECTED] wrote: function Order_action($sAction) { global $db; global $sForm; global $sOrderErr; $sParams = ; $sActionFileName = ShoppingCart.php?; do some error checking ...[snip]... I'm not sure but this could be because of some errors being

[PHP] news site, recent entries retrieval

2002-11-13 Thread Pag
Hi, I am writing a back end to be used by general news and journal sites and i am running into some problems. I already did all the background work, created the tables, programmed a php news manager to add, edit, remove entries/comments, etc. The problem is displaying all the info on the

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread @ Edwin
Hello, Joseph Szobody [EMAIL PROTECTED] wrote: Folks, I have a popup window that I would like to put a mild security constraint on. I don't want others to be able to directly type in the address of this page, modify url parameters, etc. ...[snip]... Just wondering... Why, can't you just

Re: [PHP] locale

2002-11-13 Thread Marek Kilimajer
localedef should tell you Bc. Radek Kreja wrote: Hi, I have problem with locale on PHP, how a may instal it, I use OpenBSD. Thanks Radek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Padding problem with \ and

2002-11-13 Thread ppf
Hi all: Iam trying to generate a string which contain real path to a perticular folder to copy the uploaded file I might move this application to client machine, so i decised to generate the string dynamically when i try to concatnate the realpath() value and the destination path like this

[PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Leif K-Brooks
I am planning to use Manuel Lemos's form class for a web site I am working on. However, I need to have register_globals set to off. I was planning to rewrite the portions of the class that access submitted form values directly to use the suberglobal arrays. When I started, though, I saw how

[PHP] airport codes db

2002-11-13 Thread Edward Peloke
I am working on a php page where I need some airport codes data, I have seen a few places online where you can buy this data so I was wondering if anyone has used any of these databases and if anyone had a good source for a mysql airport code db. Thanks, Eddie -- PHP General Mailing List

[PHP] Need Help in escaping and\

2002-11-13 Thread ppf
Hi All: I am trying to generate the directory path dynamically to save the Uploaded file. when i try to concatnate the string with\ it generate an error, Hope you guys can help me in this here is the code $real_Path=realpath(../../index.php); $real_path=$real_path.\DefaultFld\SubFld\; Here is

[PHP] sockets

2002-11-13 Thread Ian Newlands
I am in the beginning stages of writing my first socket based php app from scratch. However I think I've quickly picked up a bad coding habbit when reading from sockets. I'm doing the following: //writing the socket socket_write ($socket,blah blah$CRLF, strlen ($in)); //sleeping for 1

Re: [PHP] PHP Auth with Apache

2002-11-13 Thread Marek Kilimajer
Did you use $_SERVER['PHP_AUTH_USER'] or just $PHP_AUTH_USER Alexander Bemme wrote: Hi, i got a little problem (i hope so) I have installed Apache 1.3.26 and PHP 4.2.3 as module. I used the example from www.php.net to do a PHP authentication, but it didn't work, the pop appears but i can't

Re: [PHP] Unsetting Array Element

2002-11-13 Thread BigDog
In theory the memory should be free and the array should be smaller... On Wed, 2002-11-13 at 07:11, Monty wrote: Does unsetting an array element make the array smaller? For example, if I have two elements in an array... $array = (title = Title of Document, content = Ten

[PHP] Help needed with attachments

2002-11-13 Thread Pushpinder Sngh Garcha
Hi I am using MIME to send mail (http://www.phpclasses.org/mimemessage) I need to be able to send attachments that are present on the local machine. Is there a way to send attachements without uploading then to the server ?? Thanks -pS -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] form with two actions

2002-11-13 Thread Scott
I just realized I should have been more specific with my question. What I want to do is use php to submit registration data to the database and then send part of the data to a perl script to be encrypted and sent in an email. I have to use perl for the encryption because of user permissions

Re: [PHP] Multiple selections

2002-11-13 Thread David Rice
Thanks Mike and Ernest for the info on how to handle the var[] Multiple Select name more sensibly in JavaScript. Not even a workaround. By definition, in JavaScript x.y is identical to x['y'], so where for a simple field you might write: document.formname.myvar.value for a field

[PHP] multiple forms on the same page

2002-11-13 Thread John Meyer
hi, I have multiple forms on a page that refers to itself on the action. The only difference is that one has one extra field. The two have every other name in common. Will this be difficult to handle? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP Installation on Redhat 8 - General Questions

2002-11-13 Thread Lee P. Reilly
Hi there, I wonder if someone could answer a few questions for me? First of all, excuse my ignorance as I'm somewhat of a Linux newbie. I have installed PHP, Apache, Mysql, etc. on Windows numerous times, but have found the Linux installation to be more troublesome due in part (more likely in

[PHP] mssql.datetimeconvert bug ?

2002-11-13 Thread Matt Brown
Hi All, We have MS Sql Server 7 running backend and are running our reports via PHP 4.2.3 (compiled with freetds), we have the flag mssql.datetimeconvert = 0 set in the php.ini, but yet all date/time(s) are returned as 'Nov 13 2002 02:26PM'... This is driving us mad, everywhere we search for a

[PHP] mssql.datetimeconvert bug ?

2002-11-13 Thread Matt Brown
Hi All, We have MS Sql Server 7 running backend and are running our reports via PHP 4.2.3 (compiled with freetds), we have the flag mssql.datetimeconvert = 0 set in the php.ini, but yet all date/time(s) are returned as 'Nov 13 2002 02:26PM'... This is driving us mad, everywhere we search for a

[PHP] GD 1.5

2002-11-13 Thread Mako Shark
Does anybody know where to find GD 1.5? Every link I seem to find is dead. __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] mssql.datetimeconvert bug ?

2002-11-13 Thread Matt Brown
Hi All, We have MS Sql Server 7 running backend and are running our reports via PHP 4.2.3 (compiled with freetds), we have the flag mssql.datetimeconvert = 0 set in the php.ini, but yet all date/time(s) are returned as 'Nov 13 2002 02:26PM'... This is driving us mad, everywhere we search for a

Fwd: Re: [PHP] form with two actions

2002-11-13 Thread Scott
I just realized I should have been more specific with my question. What I want to do is use php to submit registration data to the database and then send part of the data to a perl script to be encrypted and sent in an email. I have to use perl for the encryption because of user permissions

re: [PHP] mssql.datetimeconvert bug ?

2002-11-13 Thread Matt Brown
Sorry for the multiple posts, my mailer barfed and went mad on send, more than once. Regards Matt Brown -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread Aaron Merrick
You are right, there is a reason I am echoing it in php, it is one result of an if statement. ?php if (basename($PHP_SELF) == index.php) { echo body onload=\start();initialize();onoff('mainmenu',section,'on')\ onresize=\window.location.reload(false)\ topmargin=\1\ bottommargin=\0\

[PHP] Configuration question

2002-11-13 Thread Hugo Gallo
I just installed PHPDEV423 to my WIN2000 box. The PHP is functioning (includes are working fine), but I can not read variables from a URL. Ex. a href=secondPage.php?PHOTO=PICT0048.jpglink/a Once the link is clicked. The secondPage.php is not reading the PHOTO= variable. Any help on the mistake in

[PHP] trim strings

2002-11-13 Thread Greg
Hi- Is there return a string with it's first 10 characters stripped? Thanks. _Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] news site, recent entries retrieval

2002-11-13 Thread Chris Hewitt
Pag wrote: One of the fields in my tables is type (values 0, 1, 2 etc), which divides the news into categories, how can i display like the 10 most recent entries of type = 2, for example? If your table is called mynews and it has a field called timestamp which contains the date/time the

Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread Aaron Merrick
I'm not constructing it with, it is just included in the file. Does that clarify? Or did I misunderstand your point? On 11/13/02 1:47 AM, Ernest E Vogelsinger [EMAIL PROTECTED] wrote: You didn't show how you construct the JavaScript string in PHP - I'm sure the problem is with quoting in

Re: [PHP] form with two actions

2002-11-13 Thread Marek Kilimajer
in php, do $perl=fopen('http://localhost/your_perl_script.pl?data='.$your_data,'r'); fclose($perl); optionaly, you can read from the file handler to get some feedback from the perl script Scott wrote: I just realized I should have been more specific with my question. What I want to do is use

Re: [PHP] Help needed with attachments

2002-11-13 Thread Marek Kilimajer
Simple answer: No Pushpinder Sngh Garcha wrote: Hi I am using MIME to send mail (http://www.phpclasses.org/mimemessage) I need to be able to send attachments that are present on the local machine. Is there a way to send attachements without uploading then to the server ?? Thanks -pS --

RE: [PHP] trim strings

2002-11-13 Thread Van Andel, Robert
You should be able to use substr(). In your case, you would do $newstring = substr($string,10); Click the link for documentation. http://www.php.net/manual/en/function.substr.php Robbert van Andel === Network Operator NW Regional Operations Center Charter

Re: [PHP] multiple forms on the same page

2002-11-13 Thread Marek Kilimajer
No, simply name them differently (form name=formOne ...) John Meyer wrote: hi, I have multiple forms on a page that refers to itself on the action. The only difference is that one has one extra field. The two have every other name in common. Will this be difficult to handle? -- PHP

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Brent Baisley
While this works pretty well under Windows, it does not work on the Mac. A new window will be generated with the requested properties except for the menus thing. The Mac UI always has the menu at the top of the screen and are not associated with a particular window, they are tied to the

Re: [PHP] PHP Installation on Redhat 8 - General Questions

2002-11-13 Thread Marek Kilimajer
I don't think you needed to recompile apache, but only php. Did you actually do make make install in PHP directory? Lee P. Reilly wrote: Hi there, I wonder if someone could answer a few questions for me? First of all, excuse my ignorance as I'm somewhat of a Linux newbie. I have installed

Re: [PHP] Configuration question

2002-11-13 Thread Marek Kilimajer
You have register_globals off, use $_GET['PHOTO'] in your script Hugo Gallo wrote: I just installed PHPDEV423 to my WIN2000 box. The PHP is functioning (includes are working fine), but I can not read variables from a URL. Ex. a href=secondPage.php?PHOTO=PICT0048.jpglink/a Once the link is

[PHP] using .htaccess file to set max upload file size

2002-11-13 Thread Kenn Murrah
greetings. a couple of years ago, i used a .htaccess file to specify the maximum size for files i was uploading via html / php ... for the live of me, i can't find that file, or remember exactly how it needed to be written ... can anyone refresh my memory? thanks, kenn

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread @ Edwin
Brent Baisley [EMAIL PROTECTED] wrote: While this works pretty well under Windows, it does not work on the Mac. A new window will be generated with the requested properties except for the menus thing. The Mac UI always has the menu at the top of the screen and are not associated with a

[PHP] mail() - How to change the sender

2002-11-13 Thread Duncan
Hi, all my scripts on my server, which use the mail() function, get the sender: [EMAIL PROTECTED] where domain is the localdomain of the server and nobody is the user under which apache is running. So, now i recently saw an error in the logs, that some servers don't accept emails coming from a

RE: [PHP] airport codes db

2002-11-13 Thread Jon Haworth
Hi Eddie, I am working on a php page where I need some airport codes data, I have seen a few places online where you can buy this data so I was wondering if anyone has used any of these databases and if anyone had a good source for a mysql airport code db. Google is your friend.

Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread @ Edwin
Aaron Merrick [EMAIL PROTECTED] wrote: You are right, there is a reason I am echoing it in php, it is one result of an if statement. Well, I thought so :) ...[snip]... I tried echoing with single quotes - no change. So I compared the view source of the double quoted php generated page and

Re: [PHP] mail() - How to change the sender

2002-11-13 Thread Duncan
Thanks for the answers, but the From: and Reply To: surely work, but nevertheless, if you check the complete headers, you will still see that the email got sent by [EMAIL PROTECTED]. ...about this sendmail -f issue. I tried it, but it didn't change anything. Thanks, Duncan -- PHP General

Re: [PHP] Would appreciate thoughts on session management

2002-11-13 Thread Charles Wiltgen
Ford, Mike [LSS] wrote... ...But why would they even see that in the first place If I want them to click on a button to do something, I simply make it part of a FORM METHOD= POST and the value gets fed to my script via $_POST without the user seeing it in the URL. Why

[PHP] File Upload: Help Needed

2002-11-13 Thread Pushpinder Sngh Garcha
Hi I am trying to upload a file using php. This is the code that I am using for the php script called upload.php html ? if(!empty($userfile)) { //copy the file to some permanent location copy($userfile, /upload/myfile.txt); //destroy the file unlink($userfile); //display message echo(file

Re: [PHP] File Upload: Help Needed

2002-11-13 Thread Marek Kilimajer
The directory must exists prior to copy, and must be writeable by the server process. Also note this is a filesystem path. Pushpinder Sngh Garcha wrote: Hi I am trying to upload a file using php. This is the code that I am using for the php script called upload.php html ?

Re: [PHP] airport codes db

2002-11-13 Thread Mika Tuupola
On Wed, 13 Nov 2002, Edward Peloke wrote: I am working on a php page where I need some airport codes data, I have seen a few places online where you can buy this data so I was wondering if anyone has used any of these databases and if anyone had a good source for a mysql airport code db.

Re: [PHP] using .htaccess file to set max upload file size SOLVED

2002-11-13 Thread Kenn Murrah
Jon: You are absolutely right (and FYI, the units are bytes) ... Thanks so much for your help on this topic (as well as a couple of others lately, when I neglected to writ to thanks ) kennM - Original Message - From: Jon Haworth [EMAIL PROTECTED] To: 'Kenn Murrah' [EMAIL

[PHP] Re: Open Source Presentation Tool

2002-11-13 Thread Manuel Lemos
Hello, On 11/13/2002 04:11 PM, Jeff Hatcher wrote: At PHP-CON most of the presenters were using a presentation tool built in PHP. It would convert html to PDF and several other cool functions. Is anyone familiar with this and where I can find it? If not, does anyone one know of a conversion

[PHP] Magic Quotes performance hit?

2002-11-13 Thread Paul Kaiser
Greetings, Is there a performance penalty for having magic_quotes_runtime turned on all the time? Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Open Source Presentation Tool

2002-11-13 Thread Rasmus Lerdorf
On Wed, 13 Nov 2002, Manuel Lemos wrote: On 11/13/2002 04:11 PM, Jeff Hatcher wrote: At PHP-CON most of the presenters were using a presentation tool built in PHP. It would convert html to PDF and several other cool functions. Is anyone familiar with this and where I can find it? If

[PHP] javascript and php again

2002-11-13 Thread Edward Peloke
I have some javascript that by itself, runs fine in a php file but, when I enclose it in php... ? if (!variable) { ? ---insert java here ? } ? Then is does not work...is there a trick to this? Can this not be done? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Jason Wong
On Wednesday 13 November 2002 23:57, Leif K-Brooks wrote: I am planning to use Manuel Lemos's form class for a web site I am working on. However, I need to have register_globals set to off. I was planning to rewrite the portions of the class that access submitted form values directly to use

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Joseph Szobody
But... it seems like this will be used in an intranet where everybody is using WinXP so there shouldn't be any problem ;) Actually, it still won't work under Windows. Even on a pop-up window, you can right click, view properties, copy the page address, open a new browser window, paste in the

Re: [PHP] Magic Quotes performance hit?

2002-11-13 Thread Jason Wong
On Thursday 14 November 2002 03:06, Paul Kaiser wrote: Greetings, Is there a performance penalty for having magic_quotes_runtime turned on all the time? According to the notes in php.ini, magic_quotes_gpc is now disabled by default because of performance reasons. So I suppose the same

Re: [PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Marek Kilimajer
Even if the method is post, you can have get variables, if the form has action=script.php?get_var=value Jason Wong wrote: On Wednesday 13 November 2002 23:57, Leif K-Brooks wrote: I am planning to use Manuel Lemos's form class for a web site I am working on. However, I need to have

[PHP] imap_fetchstructure error getting type,subtype,parts ??

2002-11-13 Thread jorgel
Hi, I'm using php 4.2.3 with courier-imap, when I run the function imap_fetchstructure the return for 'type' and 'subtype' variables are always text/plain even when the content type says multipart/mixed, text/html, etc... The same happends with the 'parts' array, empty all the time. I tried

Re: [PHP] javascript and php again

2002-11-13 Thread Marek Kilimajer
php doesn't understand javascript, php executes on the server and javascript on the client side. Edward Peloke wrote: I have some javascript that by itself, runs fine in a php file but, when I enclose it in php... ? if (!variable) { ? ---insert java here ? } ? Then is does not work...is

Re: [PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Jason Wong
On Thursday 14 November 2002 03:41, Marek Kilimajer wrote: Even if the method is post, you can have get variables, if the form has action=script.php?get_var=value Yes but I don't (need to) define my forms like that so I don't really care :-) -- Jason Wong - Gremlins Associates -

[PHP] PHP include dir

2002-11-13 Thread Mike D
How do I find the PHP include dir? I looked in the .ini file but it appears that the include dir directive is commented out, here it is: ; UNIX: /path1:/path2 ;include_path = .:/php/includes Do I need to uncomment this? Thanks Mike Mike Dunlop Webmaster - AWN, Inc. [E] [EMAIL PROTECTED] [P]

RE: [PHP] javascript and php again

2002-11-13 Thread Edward Peloke
so there is no way to use javascript and php together? If not, can php do some of the cool things that javascript does? The main thing I am looking for is a somthing like this: http://www.dynamicdrive.com/dynamicindex1/popit.htm but I want the options built from the db by mysql. Thanks, Eddie

Re: [PHP] PHP Installation on Redhat 8 - General Questions

2002-11-13 Thread BigDog
What you need to do is go into your apache_1.3.26/src/modules/php4 directory and and clean out the libphp files. 1. Stop apache. 2. Remove lib files from apache_1.3.26/src/modules/php4 3. Do a make clean in apaches top dir. 4. Do a make clean in php top dir. 5. Remove config.cache in php dir. 6.

[PHP] mysql/php large integer query oddity

2002-11-13 Thread Steve Edberg
I have a query oddity that looks like an integer overflow, but it shouldn't be. Excerpt from my program: snip #DEBUG echo \nbr$Querybr\n; #DEBUG $hResult = _do_query(__LINE__, $Query); # _do_query() simply executes mysql_query, and does nice error formatting if necessary

Re: [PHP] PHP include dir

2002-11-13 Thread BigDog
yeah, include_path =path this allows you to put scripts in other places out side the web document tree. For example: lets say you have configuration files that contain all your database passwords...you can put the document in a directory like /usr/local/php/config_scripts and add that directory

Re: [PHP] javascript and php again

2002-11-13 Thread Chris Boget
so there is no way to use javascript and php together? No, not really. Not in the way you are hoping. If not, can php do some of the cool things that javascript does? The main thing I am looking for is a somthing like this: http://www.dynamicdrive.com/dynamicindex1/popit.htm but I want

[PHP] Mail Question

2002-11-13 Thread Mike D
Does anyone know of a way to achieve the following on linux/apache/qmail/php server I want to have an email address that when people send a message to, a php script is triggered and the data of the email is extracted and inserted into a DB for use in a ticketing system. I know how to do all

  1   2   >