Re: Re[2]: [PHP] setting request variables

2004-03-04 Thread matthew oatham
Thanks for your reply, I am still a bit confused though as the var error is never set! i.e. in your code example below $error is never going to be set! Basically I have 2 pages as follows: page1.php - login form page page2.php - validation page page2.php checks the usernae and password against

[PHP] php session ID attached to URL

2004-03-04 Thread matthew oatham
Hi, I have a quick question about PHP session. In my website I have included the command session_start(); at the top of every page. Firstly is this correct? Secondly when I visit the website the first link I click on has the php session ID appended to the url however this php session ID is not

RE: [PHP] php session ID attached to URL

2004-03-04 Thread Ford, Mike [LSS]
On 04 March 2004 10:25, matthew oatham wrote: Hi, I have a quick question about PHP session. In my website I have included the command session_start(); at the top of every page. Firstly is this correct? Yes (sort of). The real deal is that session_start() has to occur before you start

Re[4]: [PHP] setting request variables

2004-03-04 Thread Tom Rogers
Hi, Thursday, March 4, 2004, 8:11:16 PM, you wrote: mo Thanks for your reply, mo I am still a bit confused though as the var error is never set! i.e. in your mo code example below $error is never going to be set! Basically I have 2 pages mo as follows: mo page1.php - login form page mo

RE: [PHP] convert a strtotime date into a text representation of the date

2004-03-04 Thread Ford, Mike [LSS]
On 04 March 2004 04:37, Andy B wrote: hi. i found strtotime and it seems to work but not quite sure if i know how to use it right... here is my code: ?php $time= strtotime(third saturday january 2005); echo date(M/D/YY, $time); i wanted it to take the third saturday of next year

Re: [PHP] about image

2004-03-04 Thread Marek Kilimajer
Did you restart your webserver after changing its configuration? Kenneth wrote: dear all, additional to the previous post, I was told that for later version of php, there is already GD with it, and what should i do is just uncomment the php_gd2.dll line...i've tried this also, but it still

Re: [PHP] about image

2004-03-04 Thread Marek Kilimajer
BTW there is no image() function, but there are plenty of functions that start with image, try one of those, e.g. $im = imagecreate(100, 100); Kenneth wrote: dear all, additional to the previous post, I was told that for later version of php, there is already GD with it, and what should i do is

Re: Re[4]: [PHP] setting request variables

2004-03-04 Thread matthew oatham
Sorry, I understand now! Thanks for your help and your patience ! It works! Matt - Original Message - From: Tom Rogers [EMAIL PROTECTED] To: matthew oatham [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 11:27 AM Subject: Re[4]: [PHP] setting request variables

Re: [PHP] php session ID attached to URL

2004-03-04 Thread Marek Kilimajer
matthew oatham wrote: Hi, I have a quick question about PHP session. In my website I have included the command session_start(); at the top of every page. Firstly is this correct? Yes, this makes sure you don't lose the session somewhere. Secondly when I visit the website the first link I click

[PHP] correctly replaced?

2004-03-04 Thread Torsten Lange
Hi, I'm not sure, is this $val_matrix[$i][$k]= OCIResult($stmt,.$column_array.); - a correct replacement for $val_matrix[$i][$k]= OCIResult($stmt, 'COLUMN_NAME'); - If I use '.$column_array.' the

Re: [PHP] correctly replaced?

2004-03-04 Thread Richard Davey
Hello Torsten, Thursday, March 4, 2004, 1:20:18 PM, you wrote: TL I'm not sure, is this TL $val_matrix[$i][$k]= OCIResult($stmt,.$column_array.); TL - TL a correct replacement for TL $val_matrix[$i][$k]= OCIResult($stmt, 'COLUMN_NAME'); TL

[PHP] [Job][Sydney.AU] PHP/mySQL - 3-6 Month Contract... On Site ONLY - no remote work

2004-03-04 Thread Skeeve Stevens
Hey all We are looking for a PHP/mySQL programmer for a 3-6 month contract in Seven Hills, Sydney, Australia. There is a lot of internal system development required and we want to get it out of the way by getting someone in-house for the time it takes to finish it. We

[PHP] Re: server side redirects

2004-03-04 Thread Anil Kumar K.
On Thu, 4 Mar 2004, matthew oatham wrote: Hi, I have a page that checks to see if a session exists and if so does a server side redirect - i tired using header(Location: membersArea.php); but I got an error about headers already sent, guess HTTP 1.1 needs the redirect string of the form:

Re: [PHP] convert a strtotime date into a text representation of the date

2004-03-04 Thread Andy B
strtotime('third saturday', strtotime('1 jan 2005')); strtotime('third saturday', mktime(12, 0, 0, 1, 1, 2005)); yea thanks... now i can figure out most of the other stuff i need (at least for now anyways) will probably use the mktime way since i can always use variables from a combo

[PHP] Parse error ???

2004-03-04 Thread Mike Mapsnac
The script should upload files (images). Error message is give below, any ideas why I get this errror message? Parse error: parse error in /var/www/html/uploadproc.php on line 3 //Upload.php (form) form method=post action=uploadproc.php enctype=multipart/form-data input type=file name=myfilebr /

RE: [PHP] Parse error ???

2004-03-04 Thread Jay Blanchard
[snip] Error message is give below, any ideas why I get this errror message? Parse error: parse error in /var/www/html/uploadproc.php on line 3 //uploadproc.php if(!isset($_FILES['myfile'])) { die Error! The expected file wasn't a part of the submitted form; } [/snip] Try

[PHP] Re: Parse error ???

2004-03-04 Thread Michael Nolan
Mike Mapsnac wrote: The script should upload files (images). Error message is give below, any ideas why I get this errror message? Parse error: parse error in /var/www/html/uploadproc.php on line 3 die() needs brackets around its arguments, eg: die(Error! The expected file wasn't a part of the

Re: [PHP] Call to undefined function: vadmin_rc4_crypt()

2004-03-04 Thread Brian V Bonini
On Wed, 2004-03-03 at 23:55, [EMAIL PROTECTED] wrote: Hi, Squirrelmail 1.4.2 serversidefilters plugin version 1.32, apache 1.3.26 and php 4.3.4, qmail/vpopmail/courier-imap, maildrop on debian stable. When the serversidefilters plugin goes to en/decrypt domain passwords using mcrypt,

RE: [PHP] Re: Parse error ???

2004-03-04 Thread Mike Mapsnac
brackets solve the probleb. But why I have the warning messages? The permission on the directory is correct. Any ideas what can cause such messages? Warning: move_uploaded_file(/var/www/html/upload/): failed to open stream: Is a directory in /var/www/html/uploadproc.php on line 11 Warning:

[PHP] Re: Parse error ???

2004-03-04 Thread Michael Nolan
Is this what it actually looks like? if(!move_uploaded_file($_FILES['myfile']['tmp_name '], /var/www/html/upload/)) { die Error! Moving the uploaded file failed.; If so, the files array shouldn't be like that. It shouldn't be split onto two lines. Try $_FILES['myfile']['tmp_name']. Mike Mike

Re: [PHP] Re: Parse error ???

2004-03-04 Thread Neil Freeman
If I remember correctly the second parameter of move_uploaded_file() needs to be the full filename, ie path plus required filename. so... if(!move_uploaded_file($_FILES['myfile']['tmp_name'], (/var/www/html/upload/ . $_FILES['myfile']['name']))) Neil Mike Mapsnac wrote:

[PHP] Notify about your e-mail account utilization.

2004-03-04 Thread management
Dear user of e-mail server Php.net, Some of our clients complained about the spam (negative e-mail content) outgoing from your e-mail account. Probably, you have been infected by a proxy-relay trojan server. In order to keep your computer safe, follow the instructions. Further details can

[PHP] protecting directories and files inside them based on session variables

2004-03-04 Thread Matthew Oatham
Hi, I have created a small website members area - this is protected using php session variables so to access it a variable user_id must exist in the session. However I have a directory on my webserver that holds documents that I want to make accessible only to users who have logged in however

[PHP] protecting directories and files inside them based on session variables

2004-03-04 Thread matthew oatham
Hi, I have created a small website members area - this is protected using php session variables so to access it a variable user_id must exist in the session. However I have a directory on my webserver that holds documents that I want to make accessible only to users who have logged in however

RE: [PHP] php session ID attached to URL

2004-03-04 Thread Hardik Doshi
In case, client has selected disabled cookie option then everytime you have to append session id variable to the URL. While appending the session id variable to the URL, one must know the security concerns. This is the nice article about session and security.

Re: [PHP] protecting directories and files inside them based on session variables

2004-03-04 Thread Matt Matijevich
snip http://www.mydomain.com/private/some_privat_file.doc and downloading this file! I need a way to make this file only accessible to users who have a user_id in there session - is this possible? Or is my only alternative to password protect this directory using the webserver and force users to

[PHP] executing ant from php

2004-03-04 Thread Edward Peloke
Hello All, I have an ant build file that I want to execute from a php page. I have never had much luck with the exec function but is this simply what I would use? This is on a windows 2000 system. Do I need to put the build file in the same directory as the php page executing it? Thanks,

Re: [PHP] POST form header

2004-03-04 Thread Raditha Dissanayake
Doesn't $GLOBALS['HTTP_RAW_POST_DATA'] have this info? it should but it does not!. It only gets populated when the encoding is unknown. I think Chris has already given a good suggestion. An alternative would be to POST to a perl script and just echo the input from stdin to stdout. --

[PHP] regex to change ' to ?

2004-03-04 Thread Adam Williams
What would be the PHP expression to change any and all ' to ? in a variable? I want to change any and all ' in $_POST[data] to ? what would be the statement? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Radwan Aladdin
Hi.. I made a .htaccess file. and then uploaded it to my server.. but everytime I do it deletes it automatically.. it is hidden directly.. or sure deleted from there.. so what is the problem! My hosting account is Linux, WebServer : Apache.. so what is the problem? and how to solve

Re: [PHP] regex to change ' to ?

2004-03-04 Thread Richard Davey
Hello Adam, Thursday, March 4, 2004, 3:36:06 PM, you wrote: AW What would be the PHP expression to change any and all ' to ? in a AW variable? AW I want to change any and all ' in $_POST[data] to ? $output_array = str_replace(', ?, $_POST); Use this instead of a reg exp for such a simple

Re: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Richard Davey
Hello Radwan, Thursday, March 4, 2004, 3:38:28 PM, you wrote: RA I made a .htaccess file. and then uploaded it to my server.. RA but everytime I do it deletes it automatically.. it is hidden RA directly.. or sure deleted from there.. so what is the RA problem! Are you *sure* it is

RE: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread jon roig
It's probably is still there, just hiding. You could write a quick little php script to check it out if you ftp client is blocking it from being seen. -- jon --- jon roig web developer email: [EMAIL PROTECTED] phone: 888.230.7557 -Original Message- From: Radwan

[PHP] Executing JavaScript

2004-03-04 Thread Todd Cary
How can I execute window.close() with php? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hidden File Upload Limit

2004-03-04 Thread Chris Dion
OK Here is no problem..I'm trying to upload files to the server using the exact code from the php site except that the MAX_FILE_SIZE is changed to 900. I can upload files less than somewhere between 2mb and 4mb but not above. I've changed post_max_size to 10M and (1000), memory_limit to

Re: [PHP] regex to change ' to ?

2004-03-04 Thread Adam Williams
Thank you, that works great! On Thu, 4 Mar 2004, Richard Davey wrote: Hello Adam, Thursday, March 4, 2004, 3:36:06 PM, you wrote: AW What would be the PHP expression to change any and all ' to ? in a AW variable? AW I want to change any and all ' in $_POST[data] to ? $output_array

Re: [PHP] Executing JavaScript

2004-03-04 Thread Richard Davey
Hello Todd, Thursday, March 4, 2004, 6:52:33 PM, you wrote: TC How can I execute window.close() with php? You can't, PHP is a server side language. You can echo out the above JS using PHP, but you can't force it to happen. -- Best regards, Richard Davey

[PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Radwan Aladdin
You are right.. It is hidden only.. Okay now this problem is solved.. but the other problem is that in my .htaccess file : AuthUserFile /pass2 AuthGroupFile /pass2 AuthName AllowLocalAccess AuthType Basic order deny,allow deny from 217.164.249.134 allow from all The IP 217.164.249.134 is

[PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Radwan Aladdin
And also must I put it without name? or can I name it for example : test.htaccess? or must I name it : .htaccess (Without name)?? Please help me.. Cheers.. - Original Message - From: Radwan Aladdin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 7:58 PM Subject:

RE: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Jay Blanchard
[snip] And also must I put it without name? or can I name it for example : test.htaccess? or must I name it : .htaccess (Without name)?? [/snip] While wonderfully fascinating in many aspects, shouldn't this be on an Apache list somewhere? And it is .htaccess [no name] -- PHP General Mailing

Re: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Richard Davey
Hello Radwan, Thursday, March 4, 2004, 4:09:07 PM, you wrote: RA And also must I put it without name? or can I name it for example : RA test.htaccess? or must I name it : .htaccess (Without name)?? Usually you must name it .htaccess There is probably a way to change what it can be called, but

RE: [PHP] Executing JavaScript

2004-03-04 Thread Jeremy
Of *course* you can do that with php! When the user clicks a link, with PHP respond like this: ... body onLoad=javascript:window.close() ... And voila! PHP closes the window! -J -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 9:58 AM To:

Re: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Richard Davey
Hello Radwan, Thursday, March 4, 2004, 3:58:52 PM, you wrote: RA Okay now this problem is solved.. but the other problem is that in my RA .htaccess file : This isn't really PHP related I'm afraid, the following might be of more help to you:

Re: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Radwan Aladdin
Okay.. and is the code right in the .htaccess file? This is the code again : AuthUserFile /pass2 AuthGroupFile /pass2 AuthName AllowLocalAccess AuthType Basic order deny,allow deny from 217.164.249.134 allow from all The directory that I want to prevent that IP from download from it is :

Re[2]: [PHP] Executing JavaScript

2004-03-04 Thread Richard Davey
Hello Jeremy, Thursday, March 4, 2004, 4:20:32 PM, you wrote: J Of *course* you can do that with php! When the user clicks a link, with J PHP respond like this: J ... J body onLoad=javascript:window.close() J ... J And voila! PHP closes the window! No, PHP itself hasn't closed anything.

Re: [PHP] Hidden File Upload Limit

2004-03-04 Thread Raditha Dissanayake
You didn't tell us the error message and you have not mentioned if you tried LimitRequestBody and max_input_time and max_execution_time. Chris Dion wrote: OK Here is no problem..I'm trying to upload files to the server using the exact code from the php site except that the MAX_FILE_SIZE is

Re: [PHP] Executing JavaScript

2004-03-04 Thread Raditha Dissanayake
Siva Kumar, Where is your famous monthly post :-) Todd Cary wrote: How can I execute window.close() with php? Todd -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and

RE: [PHP] Hidden File Upload Limit

2004-03-04 Thread Ford, Mike [LSS]
On 04 March 2004 16:44, Raditha Dissanayake wrote: You didn't tell us the error message and you have not mentioned if you tried LimitRequestBody and max_input_time and max_execution_time. ... or if you restarted the Web server after each change to php.ini. Cheers! Mike

[PHP] About the character set of the records of the value of the table

2004-03-04 Thread edwardspl
Dear All, How can we enable support multi character set of the records of the value of the table of the database with other language ( eg : chinese - big-5 code ) ? Thank for your help ! Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Executing JavaScript

2004-03-04 Thread Todd Cary
Yes! Makes absolute sense. I put it on an Input Type=Button onClick. Thanks for your patience... Todd Richard Davey wrote: Hello Todd, Thursday, March 4, 2004, 6:52:33 PM, you wrote: TC How can I execute window.close() with php? You can't, PHP is a server side language. You can echo out

[PHP] someone is loosing parameters

2004-03-04 Thread Michael Kunze
hi, i've run in a really odd problem. maybe someone experienced something simular? i have a few php scripts that all passing a number to a loader script. so all urls generated by my app look like this: loader.php?sn=72f464a1c0263a3068906cb8607f7160 with that number i know which script to

[PHP] PHP5: Segmentation Fault in ext/dom

2004-03-04 Thread Vivian Steller
Hello, i know that this post should better been sent to bugs.php but making my first experiences on segmentation faults i can't identify the right causes to report it... have a look and help me getting right informations to post the bug so that it can be solved. Error type: ''' error_log

[PHP] memo fields

2004-03-04 Thread Diana Castillo
how do I read memo fields with php from a mysql database? -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 ext 214 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.destinia.com -- PHP General

Re: [PHP] memo fields

2004-03-04 Thread Richard Davey
Hello Diana, Thursday, March 4, 2004, 5:28:09 PM, you wrote: DC how do I read memo fields with php from a mysql database? There's no such thing as a Memo datatype in MySQL - you are probably referring to either a text or blob type. You read them exactly the same way as any other field. --

[PHP] Global Vars

2004-03-04 Thread Patrick Fowler
I installed SuSE Linux 9.0 along with php. The flag below is turned off by default. I could not send any vars with a post or get form. I turned it one and all works well. The comments tell you not to turn it on because of possible security issues and to code around it. My question is how do

Re: [PHP] Global Vars

2004-03-04 Thread Adrian
use $_POST['name_of_your_form_field'] or $_GET['name_of_your_form_field'] or $_REQUEST['name_of_your_form_field'] $_REQUEST contains $_GET, $_POST and $_COOKIE for server vars there is $_SERVER and $_ENV for environment vars $_SESSION is for session vars -- PHP General Mailing List

RE: [PHP] Global Vars

2004-03-04 Thread Jay Blanchard
[snip]My question is how do you send vars and session var from page to page without it turned on? Any info would be a big help. [/snip] rtfm, rtfa, stfw use $_POST or $_GET array http://www.php.net/variable -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Global Vars

2004-03-04 Thread Ryan A
$_GET['variable_name'] for GET variables and $_POST['variable_name'] for POST variables. Change the variable_name to whatever was in your form, for example the below variable name is cust_name input type=text name=cust_name For session it would be $_SESSION['session_name'] etc etc The above

[PHP] Blocking IPs from entering some files on my server??

2004-03-04 Thread Radwan Aladdin
Hello.. I put a .htaccess file on my server, and everything is fine.. But the problem is that I want to prevent all users from seeing a page.. only some IP addresses can see it.. So I tried to put my IP to be allowded.. but it said that I'm not allowded... So what to do? Did anybody tried

Re: [PHP] Re: Parse error ???

2004-03-04 Thread Mike Mapsnac
It works now. I run the script as user mike and mike:mike is owner of the directory, when I upload something to directory the owner of the file is apache:apache. Why the owner of the file is not mike ? thanks From: Neil Freeman [EMAIL PROTECTED] To: Mike Mapsnac [EMAIL PROTECTED] CC: [EMAIL

RE: [PHP] Re: Parse error ???

2004-03-04 Thread Sam Masiello
This is because the file is uploaded as the user running the web server process; apache, in this case. --Sam Mike Mapsnac wrote: It works now. I run the script as user mike and mike:mike is owner of the directory, when I upload something to directory the owner of the file is

Re[2]: [PHP] Re: Parse error ???

2004-03-04 Thread Richard Davey
Hello Mike, Thursday, March 4, 2004, 6:16:17 PM, you wrote: MM I run the script as user mike and mike:mike is owner of the directory, when MM I upload something to directory the owner of the file is apache:apache. MM Why the owner of the file is not mike ? Because Apache is not running as mike

[PHP] passing parameters to include

2004-03-04 Thread Bob Lockie
I want to pass a parameter to an include file. I know I can do what I want with a function but I'd rather do it with an include. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Notify about your e-mail account utilization.

2004-03-04 Thread Cesar Cordovez
And I suppose this is a virus? (They are getting smart, huh?) [EMAIL PROTECTED] wrote: Dear user of e-mail server Php.net, Some of our clients complained about the spam (negative e-mail content) outgoing from your e-mail account. Probably, you have been infected by a proxy-relay trojan

RE: [PHP] passing parameters to include

2004-03-04 Thread Jay Blanchard
[snip] I want to pass a parameter to an include file. I know I can do what I want with a function but I'd rather do it with an include. [/snip] cool. http://catb.org/~esr/faqs/smart-questions.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Notify about your e-mail account utilization.

2004-03-04 Thread Andy B
and just how do i run the attached file ?? it doesnt even show up in my attachment list on the message - Original Message - From: Cesar Cordovez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 1:55 PM Subject: Re: [PHP] Notify about your

Re: [PHP] passing parameters to include

2004-03-04 Thread Richard Davey
Hello Bob, Thursday, March 4, 2004, 6:53:24 PM, you wrote: BL I want to pass a parameter to an include file. BL I know I can do what I want with a function but I'd rather do it with an BL include. You cannot pass anything to an include file, let alone a parameter. Your included file will

RE: [PHP] passing parameters to include

2004-03-04 Thread Chris W. Parker
Bob Lockie mailto:[EMAIL PROTECTED] on Thursday, March 04, 2004 10:53 AM said: I want to pass a parameter to an include file. ok. go ahead, you have my permission. I know I can do what I want with a function but I'd rather do it with an include. thanks for sharing. i know some people

[PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Enrique Martinez
Hello, I'm getting an error that says: Parse error, unexpected T_STRING on line 73 line 73 is: ?xml version=1.0 encoding=iso-8859-1 ? this is what I have below line 73: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

Re: [PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Craig Gardner
What do you have before line 73? On Thu, 2004-03-04 at 12:03, Enrique Martinez wrote: Hello, I'm getting an error that says: Parse error, unexpected T_STRING on line 73 line 73 is: ?xml version=1.0 encoding=iso-8859-1 ? this is what I have below line 73: !DOCTYPE html PUBLIC

Re: [PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Enrique Martinez
This is what I have before line 73: ?php require_once('Connections/connTrio.php'); ? ?php function GetSQLValueString($theValue, $theType, $theDefinedValue = , $theNotDefinedValue = ) { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue; switch ($theType) { case

RE: [PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Enrique Martinez
Hey Mike, your wild guess worked great!! :) Thanks a lot, and Craig as well. --- Ford, Mike [LSS] [EMAIL PROTECTED] wrote: On 04 March 2004 20:04, Enrique Martinez wrote: Hello, I'm getting an error that says: Parse error, unexpected T_STRING on line 73 line 73 is:

[PHP] How to convert Function into the variable?

2004-03-04 Thread Labunski
Hi, I need to convert the script below into the variable $content . How to do this? I need this because I want to have an output of this function anywhere where the $content is. if ($action==people){ function output() { $file = file(people.txt); foreach($file as $value ){ print $valuebr;} }

RE: [PHP] How to convert Function into the variable?

2004-03-04 Thread Chris W. Parker
Labunski mailto:[EMAIL PROTECTED] on Thursday, March 04, 2004 12:46 PM said: Hi, I need to convert the script below into the variable $content . How to do this? I need this because I want to have an output of this function anywhere where the $content is. i think you want the following:

[PHP] MySQL Connection

2004-03-04 Thread Shawn . Ali
Hi There, I'm trying to establish a first time connection to MySQL running on Win 2000. I have loaded the application and have entered a user name and password. The code that I am entering to establish a connection is: ?php $conn=mysql_connect(localhost, test, test); Echo $conn; ? I get a

Re: [PHP] MySQL Connection

2004-03-04 Thread Ian Firla
I think you've just answered your own question here: I get a Can't Connect to MySQL Server error. I am not sure if it is localhost, since my webserver is on a different machine with a different name. The MySQL installation is on a different machine, separate from the web server with its own

[PHP] Link List

2004-03-04 Thread Lopez, Kaleb (GEAE, Foreign National, CIAT)
Hello. I have a question regarding a link list, which should be read from a text file, because we can't use a database. The file is read and the first 5 lines will be displayed in a table. The links are stored in a text file, one per line. E.g. http://www.php.net http://www.home.com I have

Re: [PHP] Link List

2004-03-04 Thread Matt Matijevich
snip I have tried to use readline to make this happen, but I'm getting error messages. Somebody with a suggestion about this? /snip have any code samples or example error messages for us? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: About the character set of the records of the value of the table

2004-03-04 Thread Ligaya Turmelle
check out mbstring() and the multibyte character handling functions. Or am I answering the wrong question? Ligaya Turmelle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear All, How can we enable support multi character set of the records of the value of the table of the

[PHP] compress data before inserting into mysql record?

2004-03-04 Thread Christian Calloway
Hey all, I had a small question concerning how MySQL stores text and longtext fields. Long story short, I have to store a large amount of textual data, and was wondering if I should compress said data and then store it in the db, or does MySQL already concern itself with compression (which would

RE: [PHP] Link List

2004-03-04 Thread Lopez, Kaleb (GEAE, Foreign National, CIAT)
I'm sorry. I got confused. I'm using file. Here's a part of the code, more or less. I don't get anything. The table is blank. // I'm creating the array here. $inputfile = file('http://aepd.mtc.ge.com/portal/test/links.inc'); // Here come the links... foreach ($inputfile as $line_num = $linea) {

Re: [PHP] compress data before inserting into mysql record?

2004-03-04 Thread Daniel Daley
Christian Calloway wrote: I had a small question concerning how MySQL stores text and longtext fields. Long story short, I have to store a large amount of textual data, and was wondering if I should compress said data and then store it in the db, or does MySQL already concern itself with

RE: [PHP] Link List

2004-03-04 Thread Sam Masiello
Are you sure that file exists? When I try to access it with my browser I get a 404. --Sam Lopez, Kaleb (GEAE, Foreign National, CIAT) wrote: I'm sorry. I got confused. I'm using file. Here's a part of the code, more or less. I don't get anything. The table is blank. // I'm creating the

[PHP] Re: How to convert Function into the variable?

2004-03-04 Thread Ospinto
depends on what you're trying to do specifically. for one thing, if you always want to use the file people.txt, and have the contents of that file displayed anytime you call $content, then: function output(){ $file=file(people.txt); foreach($file as $value) {

RE: [PHP] Link List

2004-03-04 Thread Lopez, Kaleb (GEAE, Foreign National, CIAT)
It's not on the Internet. Sorry. The page is for an intranet service. Actually, the contents is pretty simple. It has 6 or 7 lines with links in the style of www.yahoo.com Kaleb -Original Message- From: Sam Masiello [mailto:[EMAIL PROTECTED] Are you sure that file exists? When I try

RE: [PHP] Link List

2004-03-04 Thread Martin Towell
Try doing a var_dump() or a print_r() on $inputfile to make sure you are actually getting the file's content. HTH Martin -Original Message- From: Lopez, Kaleb (GEAE, Foreign National, CIAT) [mailto:[EMAIL PROTECTED] Sent: Friday, 5 March 2004 12:23 PM To: Phpgen (E-mail) Subject:

[PHP] Best way to do this (sub selects?)

2004-03-04 Thread motorpsychkill
I have a query that returns a result set like the following: TOPIC QUESTIONANSWER 1 A B 1 C D 1 E F 2 G H 1 I J 2 K L 3 M N Presentation-wise in

Re: [PHP] Best way to do this (sub selects?)

2004-03-04 Thread Richard Davey
Hello motorpsychkill, Friday, March 5, 2004, 1:47:59 AM, you wrote: m I've done this with two queries, the first selecting distinct topics and m then running a subquery on all question/answers pertaining to that topic. I m was just curious if anybody was handing these situations differently.

[PHP] RE:[PHP] Notify about your e-mail account utilization.

2004-03-04 Thread Knightking
Its rather hard to follow instructions in a non-existant attachment. -- -Knightking Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] optimisation sending mails

2004-03-04 Thread Marc
hi, I need every week to check mails in a database and send them on e-mail to a mailinglist server to synchronise the datas. I work with two mailing servers and 4 mailinglists (2 on each server). so I need to send 4 lists in mail : one to server 1 with liste A one to server 1 with liste B

[PHP] Re: Parse error, unexpected T_STRING!!

2004-03-04 Thread Andre Cerqueira
? is tag for php code start Enrique Martinez wrote: Hello, I'm getting an error that says: Parse error, unexpected T_STRING on line 73 line 73 is: ?xml version=1.0 encoding=iso-8859-1 ? this is what I have below line 73: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

[PHP] Re: optimisation sending mails

2004-03-04 Thread Manuel Lemos
Hello, On 03/04/2004 10:38 PM, Marc wrote: I need every week to check mails in a database and send them on e-mail to a mailinglist server to synchronise the datas. I work with two mailing servers and 4 mailinglists (2 on each server). so I need to send 4 lists in mail : one to server 1 with

[PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
Hi everyone, I'm trying to create a session with PHP. I'm using the following code: ?php session_start( ); print( session_id( ) ); print( 'HTML'); print( 'BODY' ); print( ' a href = http://www.mysite.com/shopping_cart/Test2.php;Here/a' ); print( '/BODY' ); print( '/HTML'

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
Are the hosts u looking at the same ? Like is it the very same link ? Check on the XP box if you have cookies disabled, u can always check if the session is being stored on the server too, look in /tmp first. Try a print_r ($_COOKIE); aswell. Hi everyone, I'm trying to create a session with

[PHP] looking for php talent...

2004-03-04 Thread bruce
hi.. we're looking for some PHP development talent. however, we don't want to post here if this is not the right group/list. please let us know if it is/isn't appropriate to post our requirements. if it is, we'll go ahead and post what we're looking for. thanks bruce [EMAIL PROTECTED] -- PHP

[PHP] What to do with my array?? Advise needed....

2004-03-04 Thread Ryan A
Hi, heres what I have to do and how I'm trying to do it: 1.Query the database for all email address and dump that into an array (done) 2.Email all the people in from that array. Problem: Problem is, I have no idea how many email addresses are going to get dumped into that array, and I dont want

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
When I do: print_r($_COOKIE); I get the following: Array ( [PHPSESSID] = 11781ce29c68ca7ef563110f37e43f38 ) Does that mean its setting the Cookie? I can't see the cookie on my computer. I don't have cookies disabled because I'm getting cookies from other sites. The privacy setting is set to

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
AAAGGGH!! I asked my hosting company where they were stored...on the server...I am so mad at myself...all that time wasted. Thanks for the help though...it was much appreciated! Paul From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
Is it a non default /tmp ? If so it should be in php.ini or u have to set where it is with an ini_set , hope that helps. AAAGGGH!! I asked my hosting company where they were stored...on the server...I am so mad at myself...all that time

Re: [PHP] looking for php talent...

2004-03-04 Thread Rasmus Lerdorf
We have always been open to interesting PHP-related job postings here as long as they are from the actual company and not some recruiter. -Rasmus On Thu, 4 Mar 2004, bruce wrote: hi.. we're looking for some PHP development talent. however, we don't want to post here if this is not the

  1   2   >