Re: [PHP] Sessions question

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 08:09, Beauford.2002 wrote: > I don't quite understand this. If a user is on my site and then decides to > go into his favourites and go to yahoo.com - this won't work. I think you > are assuming the user is going to click on something I have set up - I want > this to be i

Re: [PHP] Cookie or Session??

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 11:38, Justin French wrote: > on 22/03/03 4:18 AM, Jason Wong ([EMAIL PROTECTED]) wrote: > > Bottom line is if your site requires to login you should make it > > mandatory that the user enables cookies on their browser. > > mandatory seems a little harsh... I haven't seen

Re: [PHP] Wrapping text output

2003-03-21 Thread Justin French
on 22/03/03 3:57 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote: > $my_data = "This is a really long string that could go on for ever and ever > and ever and ever and ever and ever and ever and ever and ever and ever and > ever and ever and ever and don't wrap to my table it makes it bigger"; > >

[PHP] Compile problem.

2003-03-21 Thread Serge Paquin
Hello, I am just upgrading to mySQL 4. As per the recommendation at www.mysql.com I am recompiling programs that link against the mysql client. When I try to compile PHP-4.3.1 I get many many lines similar to: /usr/lib/mysql/libmysqlclient.a(net.o): In function `net_request_file': net.o(

Re: [PHP] Sessions

2003-03-21 Thread Adam -
Hi, So with the .htaccess you could enable trans sid. That's interesting to know. I guess you could just use the session and have a session check to require the person to have cookies. Most sites these days seem to require it.. mail.yahoo.com does, if you try and login without cookies you'll

Re: [PHP] ob_start problem

2003-03-21 Thread Mr Percival
That is what I thought, but it isnt.. after doing some testing it seems to only do it the first time the page is loaded in the session, if i hit refresh then the problem doesnt occur. is it possible that it has anything to do with the session_start and session_name that is used at the top of th

Re: [PHP] web services

2003-03-21 Thread Nikunj Virani
Hi Guys, I want to create webservices using NUSoap + PHP. I have gone through NUSoap Site at http://dietrich.ganx4.com/nusoap/faq.php but havenot found any thing to start with. Can any body point me to some good examples + Manuals on the matter. PHP Webservices sounds promising and i think using

Re: [PHP] Wrapping text output

2003-03-21 Thread Sebastian
$my_data = wordwrap( $my_data, 50 ); http://www.php.net/manual/en/function.wordwrap.php it'll wrap after 50 charcters... change "50" to what you want it to start wrapping at. If $my_data is inside a it should wrap the text automatically unless you tell the table not to wrap .. cheers, - Sebastia

Re: [PHP] Test the server.

2003-03-21 Thread Sebastian
put this in a .php file: it'll tell you what OS, (usually) check if safe mode is on.. if it's on then usually you can't "exec" anything. cheers, - Sebastian - Original Message - From: "Vincent M." <[EMAIL PROTECTED]> | Hello, | | Is there anyway to check these two things: | - If the

[PHP] Wrapping text output

2003-03-21 Thread Philip J. Newman
$my_data = "This is a really long string that could go on for ever and ever and ever and ever and ever and ever and ever and ever and ever and ever and ever and ever and ever and don't wrap to my table it makes it bigger"; echo $my_data; How can I make this wrap to the table? -- Philip J. N

[PHP] Test the server.

2003-03-21 Thread Vincent M.
Hello, Is there anyway to check these two things: - If the server is an Unix server. - If a command is available on the server. For exemple, I need to test if the shell command unzip is avalaible to do: exec("unzip ...something...") ; So I can test if exec is available doing: if(function_exists(

[PHP] how to test string to see if it is a date or time?

2003-03-21 Thread DomIntCom
I have a form that is passing a date variable, and a time variable. I will be using these for a query, and will use the date function to do some formatting on it. now, I would like to idiot proof it a bit, but can't find any functions for this (hoping something similar to is_numeric exists). doe

Re: [PHP] Sessions

2003-03-21 Thread Justin French
on 22/03/03 4:39 AM, Adam - ([EMAIL PROTECTED]) wrote: > Just a thought about sessions, they still rely on cookies working, unless > you pass the session id with every link on the page. If you set your > php.ini file to automatically put the session id in ever link on your page, > that's great, bu

[PHP] Re: Session Not Working

2003-03-21 Thread Paonarong Buachaiyo
Try if ( isset($_SESSION['verified_user'])==1) { ... } or in main.php try to print out if there any variable or not? "Guru Geek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I'm trying to use sessions for the first time. > > I have a log in script that gets the user

Re: [PHP] How to detect if a cookie is set?

2003-03-21 Thread Paonarong Buachaiyo
I usuallly use if ( isset($_COOKIE["Name"]) ) { . } But if there have any output before this code I use ob_start(); your output... if ( isset($_COOKIE["Name"]) ) { . } ob_end_flush(); "Webmaster Mbt" <[EMAIL PROTECTED]>

Re: [PHP] Cookie or Session??

2003-03-21 Thread Justin French
on 22/03/03 4:18 AM, Jason Wong ([EMAIL PROTECTED]) wrote: > Bottom line is if your site requires to login you should make it mandatory > that the user enables cookies on their browser. mandatory seems a little harsh... I haven't seen any bad side effects of trans sid yet (granted, I haven't push

Re: [PHP] Apache + PHP - when using as module, can one have PHPsrun as

2003-03-21 Thread ADFH
> I suggest if a file then put it outside Apache's document root or use an > environment variable. I'm working in a VWS environment - whilst I am in contact with the system administrator, I don't have access to any config outside of my own account. > My older version of php is quite happy with 7

[PHP] retrieve data from mysql db

2003-03-21 Thread gert vonck
hello, i'm not very good with php and mysql, so this can look like a silly easy question. I have a mysql database named 'oh'. there are 20 tables under it. Now, i want to retrieve 1 image and some text (8 to be exact), and store them in a table with php-code. I want to have 1 table with 3 colu

[PHP] Re: detecting end of line - php 4.1.2

2003-03-21 Thread Travers Carter
Paul Godard wrote: > Hi > > I am trying to get php 4.1.2 to read a Mac file (exported from > FileMaker Pro) and split it into different lines using the following > but php does not recognize the end of line. For some tech reason I > cannot upgrade php now but I need to be able to read my Mac fi

Re: [PHP] How to delay a header( Location: )

2003-03-21 Thread Richard Mikalsen
You can use sleep? Like: sleep(2); Header("Location: blah"); "Webmaster Mbt" <[EMAIL PROTECTED]> skrev i melding news:[EMAIL PROTECTED] > Hi I need to delay the jump of a page that uses header(location: ) to jump. > > Ive tried adding a , after the file name (that's how we do it on html) but > i

[PHP] Resume PHP Sockets?

2003-03-21 Thread Richard Mikalsen
Is it possible to resume persistent sockets opened with pfsockopen? I really need to know if it's possible to resume a socket from another script, like if I've saved the socket into a session variable. Thank You -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Sessions question

2003-03-21 Thread Beauford.2002
I don't quite understand this. If a user is on my site and then decides to go into his favourites and go to yahoo.com - this won't work. I think you are assuming the user is going to click on something I have set up - I want this to be invisible - however this user decides to leave my site. It appe

[PHP] md5 & cookies

2003-03-21 Thread Sebastian
hello all, Cookie noob here :s how do I add md5 hash so it encrypts the password only in the cookie? and how do I increase the expire time to 30 days? Here's the snip: setcookie("pass","$HTTP_POST_VARS[password]",time()+(3600*24*7)); Thanks in advanced. cheers, - Sebastian

RE: [PHP] How to detect if a cookie is set?

2003-03-21 Thread Johnson, Kirk
> Hi I'm trying to make a script that first figures out if a > cookie is set, if > not,do this, if so, do that. > > Can I use: > > Isset($HTTP_COOKIE_VARS['nick'] or what should I use? Yes. If you have PHP 4.1.0 or higher, you can also use the recommended $_COOKIES['nick']. Kirk -- PHP Gener

[PHP] How can I get info from an XML document

2003-03-21 Thread Mike
Hi, I can't get the clue. My php page receives an XML document from which I need to get the contents and attributes into php variables. I obvious have missed something important. Could someone help me with the following script (while watching the Bagdad bombings on CNN): "; //if fact, I get the

[PHP] How to delay a header( Location: )

2003-03-21 Thread Webmaster MBT
Hi I need to delay the jump of a page that uses header(location: ) to jump. Ive tried adding a , after the file name (that's how we do it on html) but it doesn't work Any Ideas? EJB

[PHP] How to detect if a cookie is set?

2003-03-21 Thread Webmaster MBT
Hi I'm trying to make a script that first figures out if a cookie is set, if not,do this, if so, do that. Can I use: Isset($HTTP_COOKIE_VARS['nick'] or what should I use? EJB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help with assignment

2003-03-21 Thread Karl James
My code: http://nopaste.php-q.net/8594 My site: http://66.12.3.67/webdb/webdb13/assignment_1a.php My goal: http://66.12.3.67/webdb/webdb19/assign01/index.php = Can anyone try to help me with this. For some reason im not able to get

[PHP] How can I get info from an XML document

2003-03-21 Thread user
Hi, I can't get the clue. My php page receives an XML document from which I need to get the contents and attributes into php variables. I obvious have missed something important. Could someone help me with the following script (while watching the Bagdad bombings on CNN): $xml=""; //if fact, I ge

Re: [PHP] detecting end of line - php 4.1.2

2003-03-21 Thread Kevin Stone
- Original Message - From: "Paul Godard" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 3:53 PM Subject: [PHP] detecting end of line - php 4.1.2 > Hi > > I am trying to get php 4.1.2 to read a Mac file (exported from > FileMaker Pro) and split it into diffe

Re: [PHP] detecting end of line - php 4.1.2

2003-03-21 Thread CPT John W. Holmes
> I am trying to get php 4.1.2 to read a Mac file (exported from > FileMaker Pro) and split it into different lines using the following > but php does not recognize the end of line. For some tech reason I > cannot upgrade php now but I need to be able to read my Mac files > now. What is the easi

[PHP] detecting end of line - php 4.1.2

2003-03-21 Thread Paul Godard
Hi I am trying to get php 4.1.2 to read a Mac file (exported from FileMaker Pro) and split it into different lines using the following but php does not recognize the end of line. For some tech reason I cannot upgrade php now but I need to be able to read my Mac files now. What is the easies

Re: [PHP] Session Not Working

2003-03-21 Thread Kevin Stone
Why is there a space between = = ? And where is $user_data and $database_data coming form? First thing I would recommend you do is print out those variables to make sure they actually contain the information you're expecting. - Kevin - Original Message - From: "Guru Geek" <[EMAIL PROTE

Re: [PHP] Session Not Working

2003-03-21 Thread Guru Geek
ok, I tried this: session_start(); if ($user_data = = $database_data) { $_SESSION['verified_user']=1; header("Location:http://www.myserver.com/main.php";); exit; and it still doesn't work...hehe anymore suggestions? Thanks, Roger Mike wrote: > you forgot session_start at the beginning of the l

Re: [PHP] Session Not Working

2003-03-21 Thread Mike
you forgot session_start at the beginning of the login script On Fri, 2003-03-21 at 12:31, Guru Geek wrote: > Hello, > > I'm trying to use sessions for the first time. > > I have a log in script that gets the user to enter their name and > password. Then the script compares the entered data to

[PHP] Session Not Working

2003-03-21 Thread Guru Geek
Hello, I'm trying to use sessions for the first time. I have a log in script that gets the user to enter their name and password. Then the script compares the entered data to a database. If the entered data matches whats in the database then the user is granted access to the main php script. b

Re: [PHP] Sessions question

2003-03-21 Thread Kevin Stone
This is one of those rare things in programming that can only be done one way. Absolutely the only way to kill the session when a user leaves your site is to go through a script and then redirect after the session has been destroyed. For this to work every outgoing link on your website will have

Re: [PHP] Increase a month

2003-03-21 Thread Sebastian
i think strtotime() doesn't understand the $month variable, Since you are adding $month + 1 the function strtotime needs the + and the variable is not passing the + sign .. hope that makes sense .. instead of putting a variable in strtotime try just doing strtotime("+1 month"); and see if it works.

Re: [PHP] Increase a month

2003-03-21 Thread Kevin Stone
echo date("F"); // prints March echo date("F", strtotime("month + 1")); // prints April - Kevin - Original Message - From: "Boaz Yahav" <[EMAIL PROTECTED]> To: "shaun" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 1:44 PM Subject: RE: [PHP] Increase a month > T

Re: [PHP] php and javascript

2003-03-21 Thread John Nichel
For what code to work, the JavaScript? In php, the only way you'll be able to get all the checkboxes that have been checked is to put the square brackets behind the name. For it to work in JavaScript, you have to reference the element such as document.forms[0].elements['list[]'][i].checke

RE: [PHP] Increase a month

2003-03-21 Thread Boaz Yahav
This can help : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3541 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: shaun [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:00 PM To:

RE: [PHP] Search "engine"

2003-03-21 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1047 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3570 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3094 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1340 Sincerel

Re: [PHP] Sessions question

2003-03-21 Thread Beauford.2002
So is there anyway to do this - perl, javascript, voodo? - Original Message - From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> To: "'Justin French'" <[EMAIL PROTECTED]>; "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 11:04 AM Subject: RE: [

Re: [PHP] php and javascript

2003-03-21 Thread John Nichel
Put square brackets after the name of your checkboxes. Home Office etc Then you will be able to access all the boxes checked on your post page in an array $_POST['list'] shaun wrote: Hi, I'm not sure if this is a PHP or a JavaScript question but I have found the following code to e

Fw: [PHP] php and javascript

2003-03-21 Thread Kevin Stone
- Original Message - From: "shaun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 12:25 PM Subject: [PHP] php and javascript > Hi, > > I'm not sure if this is a PHP or a JavaScript question but I have found the > following code to enable me to select all of the

Re: [PHP] php and javascript

2003-03-21 Thread Mike
Try radio buttons. You can't have lots of checkboxes like that. Or try one of those lists that you can select multiple parts. I don't remember what they're called. On Fri, 2003-03-21 at 10:25, shaun wrote: > Hi, > > I'm not sure if this is a PHP or a JavaScript question but I have found the > fol

Re: [PHP] problem with page loading

2003-03-21 Thread Kevin Stone
- Original Message - From: "Amanda McComb" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 12:11 PM Subject: [PHP] problem with page loading > Hello! > > I am working on a site that I thought was working just fine - I tested it > in Netscape 7 and IE. However, s

[PHP] php and javascript

2003-03-21 Thread shaun
Hi, I'm not sure if this is a PHP or a JavaScript question but I have found the following code to enable me to select all of the checkboxes on my form.