[PHP] Form and php

2004-03-24 Thread Tassos T
Hello, I use a html form and php with global registers off how do I get the names and values from that form? I use $_POST[FIELD NAME]; but I have much more fields. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Form and php

2004-03-24 Thread Clifford W. Hansen
T, Couple of things to try: $_REQUEST[Field Name] or you could extract the values http://www.php.net/extract Till We Meet Again... Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150 (Switchboard) +27 (0) 11 259-1019 (Fax) +27 (0) 83 761-0240 (Mobile)

[PHP] eMail mirror

2004-03-24 Thread Lester Caine
OK can someone with access to the list system please help me. Up until Xmas I was quite happily working to four lists via eMail, but now all eMails are bounced back. I've switched to newsgroup - which I can't stand - but at least I can work. The problem - sending the reply to cancel the eMail

RE: [PHP] Problems with PHP5 RC1

2004-03-24 Thread Michael G
I have also created an environment to test php5 - first impressions - its good and fast - but still a bit ropey - especially in the installation, extensions and configuration side of things. My test environment: Windows 2000, IIS, php5 RC1, mySQL One thing I would really like to see is the

RE: [PHP] Image Storage

2004-03-24 Thread Michael G
Best to use the filesystem for images - Michael -Original Message- From: David T-G [mailto:[EMAIL PROTECTED] Sent: 23 March 2004 22:04 To: PHP General list Cc: Matt Palermo Subject: Re: [PHP] Image Storage Matt -- ...and then Matt Palermo said... % % I am creating a system to allow

RE: [PHP] session.bug_compat_42

2004-03-24 Thread Ralph
It's great to see you on the list Rasmus! Anxiously awaiting for official release of PHP5...I haven't been this excited since the release of PHP4!!! :-) Many thanks go out to you and the others who make PHP possible. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]

Re: [PHP] PHPSESSID in passthru

2004-03-24 Thread Guillouet Nicolas
Sorry, but I tried this : session.use_cookies = 0 in php.ini and I have always the bug. And if I use htmldoc on command line with same args it works fine. Could php forbidden using of PHPSESSID ? Nicolas Le mar 23/03/2004 à 16:37, Raditha Dissanayake a écrit : Guillouet Nicolas wrote:

[PHP] apsell on Fedora and php 4.3.4

2004-03-24 Thread Owen Williams
Hi, I posted a while ago about problems I was having with aspell-0.50.3-16. I didn't mention that it was Fedora. This is where the problem might come up. Anyway, the new aspell prefers LANG and --lang and --jargon using things like: en_GB. The current php-4.3.4 as far as I can tell still

[PHP] ldap_8859_to_t61

2004-03-24 Thread Juan Angel Martin
Hi all, I'm trying to use the LDAP function ldap_8859_to_t61() but I get this error: PHP Fatal error: Call to undefined function: ldap_8859_to_t61() The PHP version is 4.3.3 and I use others LDAP functions like ldap_connect() without any problem. Can anyone help me? Thanks in advance Juanan

[PHP] SimpleXML node detection.

2004-03-24 Thread William Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Morning all, Hopefully a quick question i need to check if a node exists for a SimpleXML object but no matter how i try i simple cant find a way to do this as it always creates a new object even if the node dosen't exist in the xml document.

[PHP] Re: Java script prompt - help

2004-03-24 Thread Nadim Attari
I would like to have a yes \ no prompt displayed and depending on which button is pressed take the right course of action. http://www.devguru.com/Technologies/ecmascript/quickref/win_confirm.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] session_register vs. $_SESSION superglobal

2004-03-24 Thread Kim L. Laage
Once again, thanks for the replies... But I'm afraid I'm not getting this right... I've tested with the various versions of $_SESSION syntax which I've been recommended by the people on this group. i.e.: $_SESSION['s_user'] = $_POST['s_user']; $_SESSION['s_pass'] = $_POST['s_pass']; or

RE: [PHP] session_register vs. $_SESSION superglobal

2004-03-24 Thread Ford, Mike [LSS]
-Original Message- From: Kim L. Laage [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 10:52 Once again, thanks for the replies... But I'm afraid I'm not getting this right... I've tested with the various versions of $_SESSION syntax which I've been recommended by the people on

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread Ford, Mike [LSS]
-Original Message- From: PHP Email List [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 00:13 what happens if you do the following? ?php $name = $_POST['FNAME']; echo ::$name::; $output = str_replace(FNAME, $name, $output); ? ?? I tried that, but I know I can

[PHP] API Documentation Via Comments

2004-03-24 Thread Hawkes, Richard
Hi, As you may be aware, languages like Java allow you to add comments in a certain format, which can then be translated into a full HTML API Document later. Does PHP have a facility like this? If not, has anyone written anything to do something similar? I hope so?! Thanks all Richard

Re: [PHP] API Documentation Via Comments

2004-03-24 Thread Duncan Hill
On Wednesday 24 March 2004 11:37, Hawkes, Richard wrote: Hi, As you may be aware, languages like Java allow you to add comments in a certain format, which can then be translated into a full HTML API Document later. Does PHP have a facility like this? If not, has anyone written anything to do

[PHP] octet-stream in https

2004-03-24 Thread Ago
I want to download a text file in binary mode using the function header(Content-type: application/octet-stream); so the browser open the popup window to let me save the file. It works very well when the connection is in http mode but when the connection is in https the browser (IE) tells me that

Re: [PHP] Session variables as array

2004-03-24 Thread John W. Holmes
Joseph Ross Lee wrote: Hello... Is there any example that I can look at that does a session variable as an array? thanks session_start(); $_SESSION['somekey'] = 'somevalue'; $_SESSION['someotherkey'] = array('one','two','three','four'); $_SESSION['yetanother'] =

[PHP] [Newbie Guide] For the benefit of new members

2004-03-24 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

[PHP] class Password can help you find lost passwords - pass.zip (0/1)

2004-03-24 Thread Rebus
I think class is self explanatory. However, for extra help send me an e-mail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] class Password can help you find lost passwords - pass.zip (0/1)

2004-03-24 Thread Rebus
I think class is self explanatory. However, for extra help send me an e-mail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST not working with str_replace

2004-03-24 Thread Brent Baisley
A technicality, but GET/POST are not interchangeable, it depends on the method declared in your form. I'm sure you meant they were interchangeable if you changed your form method. What is interchangeable is $_REQUEST with $_POST or $_GET. You may try using $_REQUEST just for testing. If it

RE: [PHP] SQL Injection check (mysql)

2004-03-24 Thread Michael Rasmussen
On Tue, 23 Mar 2004 12:05:17 -0800, Pablo Gosse wrote: I think you have misunderstod the concepts of making queries based on user input. It is not the users who should create the query, all to should do is provide the input to narrow down the queries. I have not misunderstood the concepts

Re: [PHP] Session problem

2004-03-24 Thread Richard Davey
Hello Carlos, Wednesday, March 24, 2004, 2:52:16 PM, you wrote: cc I want to know how can i do to make the session dont expire?. i have an cc application that works with sessions, when i left the browser open for a cc while, i dont know maybe 30 minutes, when i try to go into a section it cc

[PHP] Re: API Documentation Via Comments

2004-03-24 Thread Greg Beaver
phpDocumentor http://www.phpdoc.org Regards, Greg Richard Hawkes wrote: Hi, As you may be aware, languages like Java allow you to add comments in a certain format, which can then be translated into a full HTML API Document later. Does PHP have a facility like this? If not, has anyone written

[PHP] looping variables from a file

2004-03-24 Thread Ryan A
Hi, I have a config_inc.php file which has around 60 parameters set in it. eg: $db_name=something; $db_user=root; $db_pass=blah; $x_installed_path=/home/blah/; etc I have a requirment of echoing out these statements to the client to show him how his setup is: eg: echo DB_name=font color

Re: [PHP] looping variables from a file

2004-03-24 Thread Richard Davey
Hello Ryan, Wednesday, March 24, 2004, 5:29:33 PM, you wrote: RA as you can imagine the above loop will save a crapload of time RA instead of partially hard codeing each key and value but how do RA I do this while reading from a file? and the other big problem is RA the file contains one or two

Re: [PHP] looping variables from a file

2004-03-24 Thread John W. Holmes
From: Ryan A [EMAIL PROTECTED] I have a config_inc.php file which has around 60 parameters set in it. eg: $db_name=something; $db_user=root; $db_pass=blah; $x_installed_path=/home/blah/; etc I have a requirment of echoing out these statements to the client to show him how his setup is:

Re: [PHP] Re: Null Variables after session_register() ( Radio Inputs Problem )

2004-03-24 Thread Justin Patrin
Gohaku wrote: Thanks. Below is what I changed to session.php. Are there any possible problems with my changes? On Mar 23, 2004, at 4:28 PM, Justin Patrin wrote: ? /***Session.php**/ $varcount = 0; if($name){$varcount++;} if($number){$varcount++;}

[PHP] Methods for creating HTML with PHP

2004-03-24 Thread Jason Giangrande
I'm looking for an easy way to write all my HTML using PHP. I could do this with a bunch of print statements or the like, but that doesn't seem like a real good solution. I noticed that PEAR has several packages for creating HTML. Has anyone used any of these packages? I'm particularly

RE: [PHP] looping variables from a file

2004-03-24 Thread Ford, Mike [LSS]
-Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 17:30 Hi, I have a config_inc.php file which has around 60 parameters set in it. eg: $db_name=something; $db_user=root; $db_pass=blah; $x_installed_path=/home/blah/; etc I have a requirment of

Re: [PHP] looping variables from a file

2004-03-24 Thread John W. Holmes
Second what Rich said, keep replies to the list, please. This can benifit everyone. ---John Holmes... - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: Ryan A [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 1:22 PM Subject: Re: [PHP] looping

[PHP] Re: SimpleXML node detection.

2004-03-24 Thread Gerben
couldn't you use something like. It's a bit more neat ~section ignore=true ~namefoo/name ~contentfoo/content ~/section William Bailey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash:

RE: [PHP] SimpleXML node detection.

2004-03-24 Thread Rick Fletcher
My peoblem is that i have something like the following xml... ~section ~namefoo/name ~contentfoo/content ~ignore / ~/section Any ideas on how i can check to see it the ignore node exists or not? You

Re: [PHP] looping variables from a file

2004-03-24 Thread Ryan A
Hey John, $array1 = get_defined_vars(); include('yourfile.php'); $array2 = get_defined_vars(); $newvars = array_diff($array2,$array1); foreach($newvars as $name = $value) { echo $name = font color=\green\$value/fontbr /\n; } Cool, thanks, will try it out. If there are multi-dimensional

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
-Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] A technicality, but GET/POST are not interchangeable, it depends on the method declared in your form. I'm sure you meant they were interchangeable if you changed your form method. Right I had mentioned that... (all

[PHP] php, mysql How to do a random selection and limit response?

2004-03-24 Thread Leonard B Burton
greetings, I would like to do a random selection in mysql [select * from members order by rand() limit $limit] and then I'd like to insert the items selected into a table [named already_selected] with a datetime stamp to make sure one item is only sleceted once over a defined period of time.

[PHP] Alternatives to Flush()

2004-03-24 Thread Ron Stagg
I have a particular PHP web page that can take over an hour to process. When visitors come to this page, I want the code to redirect them to a separate page at my site. After the redirection, I want the PHP script to continue operating on its own until the process is complete. I am attempting

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
-Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] What is interchangeable is $_REQUEST with $_POST or $_GET. You may try using $_REQUEST just for testing. If it works, then you could use $_REQUEST since it will work with GET or POST variables. Although that's not the

[PHP] tutorials for login system...

2004-03-24 Thread Andy B
hi... dont mean to bring up the subject again...but does anybody know of a real good login system tutorial that uses sessions/php4/sessions?? looked at google and found some but dont know how good they really are (the comments on some of them are really bad)... tnx

[PHP] Re: http webmail problems.

2004-03-24 Thread Tom Reed
thanks for the FYI on PEAR, installing now. I'd still be interested in understanding why the header data in my code didn't work. -tom Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tom Reed wrote: On some webmail programs, when I send them an email from php, they

RE: [PHP] Alternatives to Flush()

2004-03-24 Thread Ron Stagg
Rich, Thanks for taking the time to respond. I do have a database and have considered using it in conjunction with cron. However, I don't like the disconnected nature of the solution. There could be up to a minute delay before cron picks up the request. There's got to be another method

[PHP] Re: http webmail problems.

2004-03-24 Thread Justin Patrin
Tom Reed wrote: thanks for the FYI on PEAR, installing now. I'd still be interested in understanding why the header data in my code didn't work. -tom Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tom Reed wrote: On some webmail programs, when I send them an email from

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread Rick Fletcher
Ok here's the deal, I cut out the middle man, went straight to the script, assigned my variable a string, and loaded the rtf page, NADA, ZIP, ZILCH!! At least as far as this test is concerned, I hope you have a nice soft desk to bang your head on. Check your assignment operator one more

Re: [PHP] php, mysql How to do a random selection and limit response?

2004-03-24 Thread John W. Holmes
From: Leonard B Burton [EMAIL PROTECTED] I would like to do a random selection in mysql [select * from members order by rand() limit $limit] and then I'd like to insert the items selected into a table [named already_selected] with a datetime stamp to make sure one item is only sleceted once

RE: [PHP] tutorials for login system...

2004-03-24 Thread Chris W. Parker
Andy B mailto:[EMAIL PROTECTED] on Wednesday, March 24, 2004 1:28 PM said: dont mean to bring up the subject again...but does anybody know of a real good login system tutorial that uses sessions/php4/sessions?? looked at google and found some but dont know how good they really are (the

RE: [PHP] Alternatives to Flush()

2004-03-24 Thread Rich Gray
I do have a database and have considered using it in conjunction with cron. However, I don't like the disconnected nature of the solution. There could be up to a minute delay before cron picks up the request. There's got to be another method similar to using flush(), that causes the lengthy

RE: [PHP] Alternatives to Flush()

2004-03-24 Thread Michal Migurski
Thanks for taking the time to respond. I do have a database and have considered using it in conjunction with cron. However, I don't like the disconnected nature of the solution. There could be up to a minute delay before cron picks up the request. There's got to be another method similar to

[PHP] problem with the function mssql_list_tables()

2004-03-24 Thread German
Hello, it wanted to know how as profit to supplant the function mysql_list_tables() for SQL server server or like the tables of one db of SQL server in php... thank you very much

[PHP] problem with the function mysql_list_tables()

2004-03-24 Thread German
Hello, it wanted to know how as profit to supplant the function mysql_list_tables() for SQL server or like the tables of one db of SQL server in php... thank you very much

[PHP] RE:tutorials for login system...

2004-03-24 Thread Andy B
[snip] also, were you looking for code or general guidelines? [/snip] more importantly is the code so i can see how it is physically written but both code and guidelines wouldnt hurt at all... tnx for the link in last msg will check it out -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
-Original Message- From: Rick Fletcher [mailto:[EMAIL PROTECTED] If your script has the same == where a plain ol' = should be, that'd account for the replacement being empty (since it's replaced with $na, which wasn't assigned). Well your correct, that put me to ease some, as now I

RE: [PHP] RE:tutorials for login system...

2004-03-24 Thread Chris W. Parker
Andy B mailto:[EMAIL PROTECTED] on Wednesday, March 24, 2004 2:20 PM said: [snip] also, were you looking for code or general guidelines? [/snip] more importantly is the code so i can see how it is physically written but both code and guidelines wouldnt hurt at all... in either case,

Re: [PHP] problem with the function mssql_list_tables()

2004-03-24 Thread John W. Holmes
From: German [EMAIL PROTECTED] Hello, it wanted to know how as profit to supplant the function mysql_list_tables() for SQL server server or like the tables of one db of SQL server in php... It has no idea what you just said. ---John Holmes... -- PHP General Mailing List

Re: [PHP] problem with the function mssql_list_tables()

2004-03-24 Thread Roger B.A. Klorese
John W. Holmes wrote: From: Roger B.A. Klorese [EMAIL PROTECTED] How do you do the equivalent of mysql_list_tables() in PHP when running against a SQL Server database? Ah... I assume there's no SHOW TABLES query in MSSQL? Isn't there a system table in each database that you can query for

[PHP] the problem in if

2004-03-24 Thread German
the problem consists of which I must list all the tables of a data base under SQL server, but I do not have idea of like doing it...

Re: [PHP] problem with the function mssql_list_tables()

2004-03-24 Thread John W. Holmes
From: Roger B.A. Klorese [EMAIL PROTECTED] John W. Holmes wrote: From: German [EMAIL PROTECTED] Hello, it wanted to know how as profit to supplant the function mysql_list_tables() for SQL server server or like the tables of one db of SQL server in php... It has no idea what you just said.

Re: [PHP] problem with the function mssql_list_tables()

2004-03-24 Thread Roger B.A. Klorese
John W. Holmes wrote: From: German [EMAIL PROTECTED] Hello, it wanted to know how as profit to supplant the function mysql_list_tables() for SQL server server or like the tables of one db of SQL server in php... It has no idea what you just said. How do you do the equivalent of

[PHP] Ways to make PDF docs

2004-03-24 Thread Brian Dunning
Hi all, Which is the favorite module for creating PDF documents on the fly with PHP: ClibPDF, PDFlib, or the iText java class libraries? All feedback appreciated. TIA, - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] the problem in if

2004-03-24 Thread Pablo Gosse
German wrote: the problem consists of which I must list all the tables of a data base under SQL server, but I do not have idea of like doing it... Quick and dirty way: Download ADOdb (http://php.weblogs.com/adodb#downloads) and use their MetaTables() method

[PHP] RE:tutorials for login system...

2004-03-24 Thread Andy B
[snip] in either case, are there any specific questions you have? it's possible that there aren't any login system tutorials that meet your requirements and that's why there haven't been many responses yet. but what do i [/snip] questions...hmmm... cant think of any questions at the minute but i

[PHP] Re: Alternatives to Flush()

2004-03-24 Thread speedfreak
Ron Stagg wrote on 24/03/04 22:02: I have a particular PHP web page that can take over an hour to process. When visitors come to this page, I want the code to redirect them to a separate page at my site. After the redirection, I want the PHP script to continue operating on its own until the

RE: [PHP] RE:tutorials for login system...

2004-03-24 Thread Chris W. Parker
Andy B mailto:[EMAIL PROTECTED] on Wednesday, March 24, 2004 3:27 PM said: questions...hmmm... cant think of any questions at the minute but i do have some physical standards of a login system that im looking for: alright let's see... 1. as normal it needs to carry the session from

[PHP] PHP and MSSQL-Server

2004-03-24 Thread Ivone Uribe
Hi all! I know that I can use php with mssql-server, but it isn't common as using php with mysql. So, I want to know is someone is using this structure, and is it stable? don't you have any kind of problems? Thanks and Regards, Ivone __ Do you Yahoo!? Yahoo!

[PHP] Attach Image to email

2004-03-24 Thread Mike Mapsnac
Hello I know how to use mail function in php to send an email with text. But I want to add new feature to my website that allow to send email with attachment ( image). Any ideas how to do this? Thanks _ Get reliable access on MSN

Re: [PHP] PHP and MSSQL-Server

2004-03-24 Thread Ivone Uribe
Sorry,I forget to mention that I have a linux Red Hat 7.3 and PHP 4, and a SQL Server 2000. Regard and Thanks a lot! --- Ivone Uribe [EMAIL PROTECTED] wrote: Hi all! I know that I can use php with mssql-server, but it isn't common as using php with mysql. So, I want to know is someone is

Re: [PHP] problem with the function mssql_list_tables()

2004-03-24 Thread Tom Rogers
Hi, Thursday, March 25, 2004, 8:12:41 AM, you wrote: G Hello, it wanted to know how as profit to supplant the function G mysql_list_tables() for SQL server server or like the tables of one G db of SQL server in php... G thank you very much This may be it: USE dbname SELECT Name FROM sysobjects

[PHP] Re: Attach Image to email

2004-03-24 Thread Elliot J. Balanza
Send it in HTML form, and use an img meta tag... now if you want to do is an attachement that is a different story. Vamp Mike Mapsnac [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hello I know how to use mail function in php to send an email with text. But I want to add new

[PHP] RE:tutorials for login system...

2004-03-24 Thread Andy B
tnx for the ideas... that helped some for now anyways... i will get to writing the spec outline for what i want/need to do and post it (might be a few hours) or a day or so since i have to create it (and it could be quite large) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Attach Image to email

2004-03-24 Thread Marek Kilimajer
Use this class, there is even an example of the feature you want: http://www.phpclasses.org/mimemessage Mike Mapsnac wrote: Hello I know how to use mail function in php to send an email with text. But I want to add new feature to my website that allow to send email with attachment ( image).

RE: [PHP] Re: Attach Image to email

2004-03-24 Thread Mike Mapsnac
Yes. I want to make it as attachment. Any ideas how that's can be done? Thanks From: Elliot J. Balanza [EMAIL PROTECTED] Reply-To: Elliot J. Balanza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: Attach Image to email Date: Wed, 24 Mar 2004 18:12:18 -0600 Send it in HTML form,

Re: [PHP] Methods for creating HTML with PHP

2004-03-24 Thread Raditha Dissanayake
How about just escaping out of php :-) and embedding the html direct? Jason Giangrande wrote: I'm looking for an easy way to write all my HTML using PHP. I could do this with a bunch of print statements or the like, but that doesn't seem like a real good solution. I noticed that PEAR has

[PHP] PHP and GD

2004-03-24 Thread Patrik Fomin
Hi, Is there anyway to split a picture with PHP (GD) ? Im uploading lots of pictures and i want to split them in 6 pieces to make em load faster, is there anyway to do this in PHP ? regards patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: Attach Image to email

2004-03-24 Thread Vail, Warren
I understand many virus filters eliminate .jpg or .jpeg attachments (see macafee for cert for details). Do you think that will be a problem for you (a fly in the ointment so to speak)? Warren Vail -Original Message- From: Mike Mapsnac [mailto:[EMAIL PROTECTED] Sent: Wednesday, March

[PHP] Sessions and PHP

2004-03-24 Thread Patrik Fomin
Hi,, is there anyway to get the number of people connected to the site? in asp you just use Application and session_terminate to accomplish this is there anyway to do this in PHP ? regards patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Sessions and PHP

2004-03-24 Thread Filip de Waard
On Mar 25, 2004, at 2:05 AM, Patrik Fomin wrote: is there anyway to get the number of people connected to the site? in asp you just use Application and session_terminate to accomplish this is there anyway to do this in PHP Hi Patrick, As far as I know this is not possible with default PHP

Re: [PHP] Methods for creating HTML with PHP

2004-03-24 Thread Jason Giangrande
Raditha Dissanayake wrote: How about just escaping out of php :-) and embedding the html direct? Jason Giangrande wrote: I'm looking for an easy way to write all my HTML using PHP. I could do this with a bunch of print statements or the like, but that doesn't seem like a real good solution.

RE: [PHP] Re: Attach Image to email

2004-03-24 Thread Vail, Warren
I probably should elaborate; http://www.kb.cert.org/vuls/id/443699 there are several others as well http://www.mcafee.com couldn't find the old database, guess they're charging for access now. But to answer you original question. I use the following to build complex emails (html and text with

[PHP] Re: PHP and GD

2004-03-24 Thread Geir Pedersen - Activio AS
Patrik, to split an uploaded image, I suggest you use pamdice which is one of the programs in the Netpbm toolkit. You can read all about Netpbm here: http://netpbm.sourceforge.net/. --- Geir Pedersen http://www.activio.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] mysql and md5??

2004-03-24 Thread Andy B
hi... trying to figure out what is wrong here... the code is supposed to check an md5'd password from a form and compare it against an md5'd password in a mysql table... for some strange reason when i run the code below on my dev server (apache 2.0.47, php4.3.3 and mysql 4.1-A) it works. when

Re: [PHP] mysql and md5??

2004-03-24 Thread John W. Holmes
Andy B wrote: mysql_query(select * from rnjresort.users where username='$username' and pwd=md5($password)); //see if user exists.. if(mysql_affected_rows()==0){ You're not assigning the query result to a variable. $result = mysql_query( ... ); Then, mysql_affected_rows() is not going to return

[PHP] Problem with header

2004-03-24 Thread Phil Matt
Hello to all - just joined this list to see if I can enhance my pretty slim knowledge of PHP. I have a little script I cobbled together than I modified to use as a guestbook for a client's site. I am trying to get the script to call a success page if the mail in fact gets sent. I plan to also

Re: [PHP] Problem with header

2004-03-24 Thread Tom Rogers
Hi, Thursday, March 25, 2004, 9:17:31 AM, you wrote: PM Hello to all - just joined this list to see if I can enhance PM my pretty slim knowledge of PHP. PM I have a little script I cobbled together than I modified to use as a guestbook for a PM client's site. I am trying to get the script to

Re[2]: [PHP] Problem with header

2004-03-24 Thread Tom Rogers
Hi, TR Any whitespace in any file before the ?php will cause data to be sent TR to the browser forcing the headers to be sent. So make sure the first TR line of your page has ?php and it is a good idea to drop the ? from TR included pages as there may be blank lines following which are just as TR

Re: [PHP] Problem with header

2004-03-24 Thread Chris Shiflett
--- Phil Matt [EMAIL PROTECTED] wrote: header(Location:thanks.shtml); Two errors here: 1. There is a space after the colon. 2. The URL must be an absolute URL. But no matter where I place it in the PHP file, I get the error message that says Headers already sent... Read this message. It

Re: [PHP] Sessions and PHP

2004-03-24 Thread Chris Shiflett
--- Patrik Fomin [EMAIL PROTECTED] wrote: is there anyway to get the number of people connected to the site? in asp you just use Application and session_terminate to accomplish this is there anyway to do this in PHP? Taken literally, you are asking about the number of active connections,

[PHP] hide php extension...

2004-03-24 Thread john doe
could anyone help me with this problem ??? i try hide the .php extension in the url... search? interpret as php language like google, how could i make apache or php to interpret search?q extension as php script ?? like google

[PHP] still having login problems sigh

2004-03-24 Thread Andy B
hi... still having login problems.. i tried just about everything i can think of to get this to work but for some strange reason it keeps getting stuck... [code] ? session_start(); include(libs/conf.db); mysql_connect($host, $mysqluser, $mysqlpwd); $result=mysql_query(select * from

[PHP] Crash in PHP5RC1 but can't find where

2004-03-24 Thread David Chen
Hi, My application crashes, but I have a hard time figuring out where because it only happens periodically. For some reason, it only crashes about 10% of the time. If someone who knows how to debug PHP could assist me, that would be very nice. You may download the package at:

[PHP] Re: hide php extension...

2004-03-24 Thread Geir Pedersen - Activio AS
Hi, John! There is an easy way to achieve what you are looking for without modifying webserver configuration files. Say you want to support an URL like http://www.example.com/search?foo=bar Create a new subdirectory named search and place a default PHP script named index.php in the new

[PHP] Arrays Keys?

2004-03-24 Thread John Taylor-Johnston
Am I doing this right? Is there a better way? Am I doing this key thing right? I'm doing the language thing. I have no extra plugins or rpms to help do this properly. So I need advice. Is this going to work? I'm trying to make sense of http://www.php.net/manual/en/language.types.array.php $date

Re: [PHP] Methods for creating HTML with PHP

2004-03-24 Thread David OBrien
At 08:20 PM 3/24/2004, Jason Giangrande wrote: Raditha Dissanayake wrote: How about just escaping out of php :-) and embedding the html direct? Jason Giangrande wrote: I'm looking for an easy way to write all my HTML using PHP. I could do this with a bunch of print statements or the like, but

[PHP] Re: hide php extension...

2004-03-24 Thread john doe
if there's other options, please let me know... thank you Geir Pedersen - Activio As [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, John! There is an easy way to achieve what you are looking for without modifying webserver configuration files. Say you want to support an URL

Re: [PHP] Re: hide php extension...

2004-03-24 Thread Justin French
On Thursday, March 25, 2004, at 04:37 PM, john doe wrote: if there's other options, please let me know... At some level, you have to make a change *somewhere* :) If not through script naming and placement, then through web server configuration. However, most of these configurations for Apache

[PHP] ? Sub Directories

2004-03-24 Thread Labunski
This script reads the content of the directory and turns it into the array. The problem is, that this script reads the names of the subdirectories in this directory too! if ($directory = opendir('data/start')) { while (false !== ($faila_nos = readdir($directory))) { if ($faila_nos != .

[PHP] Re: Arrays Keys?

2004-03-24 Thread Nadim Attari
I'm doing the language thing. Is this what u r looking for ? http://www.php.net/manual/en/function.setlocale.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ? Sub Directories

2004-03-24 Thread - Edwin -
Hi, On Thu, 25 Mar 2004 09:07:06 +0200 Labunski [EMAIL PROTECTED] wrote: This script reads the content of the directory and turns it into the array. The problem is, that this script reads the names of the subdirectories in this directory too! ...[sample code and result]... How to solve

[PHP] Re: still having login problems sigh

2004-03-24 Thread - Edwin -
Hi, On Wed, 24 Mar 2004 23:59:30 -0500 [EMAIL PROTECTED] (Andy B) wrote: hi... still having login problems.. i tried just about everything i can think of to get this to work but for some strange reason it keeps getting stuck... What do mean by keeps getting stuck? Where? What? Any error

[PHP] Re: PHP and GD

2004-03-24 Thread - Edwin -
Hi, On Thu, 25 Mar 2004 02:03:26 +0100 [EMAIL PROTECTED] (Patrik Fomin) wrote: Hi, Is there anyway to split a picture with PHP (GD) ? Im uploading lots of pictures and i want to split them in 6 pieces to make em load faster, is there anyway to do this in PHP ? You mean, split them

Fw: [PHP] Re: still having login problems sigh

2004-03-24 Thread Andy B
What do mean by keeps getting stuck? Where? What? Any error messages? 0 errors and 0 messages of any kind and what i meant by getting stuck was every time the login.html is filled out and submitted i either get the login.html page again (expected if user gave wrong pwd and stuff) or browser will

  1   2   >