Re: [PHP] Cpanel accounting library

2004-05-25 Thread Jordi Canals
Burhan Khalid wrote: Jordi Canals wrote: Hi all, Cpanel is a control panel to manage accounts for ISP's (And espcially ISP's resellers). I knnow there is some librarys to directly manage the accounts from PHP-Scripts and I got some very small and undocummented samples. I'm working on some scrip

[PHP] can myapp.exe run on Win ce or pocket pc?

2004-05-25 Thread Shelby
Hi, I would like to develope a desktop application using PHP. I was wondering can the .exe program run on Win CE/Pocket PC? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: DOM XML output whitespace

2004-05-25 Thread Dan Phiffer
Martin Geisler wrote: I don't remember any more where I found this, but with formatOutput = true; ?> you get what you ask for: formatted output. Excellent, that did the trick! Thanks, -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can myapp.exe run on Win CE or Pocket PC?

2004-05-25 Thread Shelby
Hi, I would like to develope a desktop application using PHP. I was wondering can the .exe program run on Win CE/Pocket PC? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] can myapp.exe run on Win Ce or Pocket PC

2004-05-25 Thread Shelby
Hi, I would like to develope a desktop application using PHP. I was wondering can the .exe program run on Win CE/Pocket PC? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Displaying Secure Server Lock Symbol??

2004-05-25 Thread Jeff Swanberg
Very new at this so pardon my ignorance: Off of my regular server, I'm calling a script off of a secure server in order to process a credit card inquiry. I thought that, just by calling the script off of the secure server, that the "gold lock" icon would automatically appear but it does not. Is

Re: [PHP] ie issue: when I do a forced redirect with the header()

2004-05-25 Thread Jake Johnson
Very Cool! That is what I was looking for! Thanks, Jake Johnson http://www.plutoid.com On Fri, Jun 20, 2003 at 12:46:04PM +0100, Pete Morganic wrote: > Slkigh Ammendment to below > header("Location: https://www.google.com";) ; > die; > ?> > > > Jake Johnson wrote: > >Have you tried... > > >hea

Re: [PHP] RE:php and java applets

2004-05-25 Thread raditha dissanayake
Ben Ford wrote: This is straight from the http://java.sun.com/applets/ web page: " When you use a Java technology-enabled browser to view a page that contains an applet, the applet's code is transferred to your system and executed by the browser's Java Virtual Machine (JVM). " I have had one

RE: [PHP] Re: Perfect Squares

2004-05-25 Thread Stephen Craton
I guess I don't mean perfect squares, more or less square roots with terminating decimals. Thanks for all the help, and I found that Jason's code will work for the program I'm doing right now. Thanks, Stephen Craton http://www.melchior.us - -Original Message- - From: Jason Barnett [mail

[PHP] Re: Perfect Squares

2004-05-25 Thread Jason Barnett
Stephen Craton wrote: I'm in a bit of a pickle. I need to find out if a variable is a perfect square or not, and this needs to test for decimal numbers as well, such as 2.25. The thing is, the only function I've found in PHP is gmp_perfect_square() which isn't supported on my web server, and I don'

[PHP] Re: Perfect Squares

2004-05-25 Thread Jason Barnett
John Kaspar wrote: Try taking the square root of the variable $sqrt = sqrt($var); then compare the number of decimal places. if (strlen(strstr($sqrt,".")) <= strlen(strstr($var,"."))) { // perfect } Just guessing of course. I'd do something similar, but a little different: $sqrt = sqrt($var); i

[PHP] Re: Parse XML

2004-05-25 Thread Jason Barnett
I'm surprised that no one else already replied to this?!?! Anyhow, my answers are below. Phil Dowson wrote: Hi, I am having a couple of difficulties with a script to parse XML. This may well be because my 16 month kid was up all night, but I'm banging my head against a wall right now. OT: And th

[PHP] Re: Perfect Squares

2004-05-25 Thread John Kaspar
Try taking the square root of the variable $sqrt = sqrt($var); then compare the number of decimal places. if (strlen(strstr($sqrt,".")) <= strlen(strstr($var,"."))) { // perfect } Just guessing of course. On 5/25/2004 5:06 PM, Stephen Craton wrote: I'm in a bit of a pickle. I need to find o

Re: [PHP] Re: Customer Session Handlers Using MySQL

2004-05-25 Thread Torsten Roehr
"Paul Higgins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Would I also have to write the sess_write() and sess_read() functions? If I > want to store an array or object, how would I go about doing that? Take a look at PEAR's HTTP_Session source code. It includes a DB session

[PHP] Perfect Squares

2004-05-25 Thread Stephen Craton
I'm in a bit of a pickle. I need to find out if a variable is a perfect square or not, and this needs to test for decimal numbers as well, such as 2.25. The thing is, the only function I've found in PHP is gmp_perfect_square() which isn't supported on my web server, and I don't know how to compile

Re: [PHP] Sessions simply do not work?

2004-05-25 Thread Torsten Roehr
"Michael R. Wayne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Sessions do not work properly for me. Thanks to other people on > this list, we've proven that the test script I am using works fine > for other people. So, something is wrong with PHP on all of my > systems since

[PHP] PHP Only directory

2004-05-25 Thread Erik Meyer
Greetings, I am fairly new at this and I am going to create my first web server. I have installed PHP as the documentation says and the only question that I have is whether or not PHP can be configured on a single directory only, (example mydomain.com/php/). The server that I am running on is Red

Re: [PHP] interesting

2004-05-25 Thread Justin Patrin
John W. Holmes wrote: From: "Justin Patrin" <[EMAIL PROTECTED]> IMHO it's just better to use concatenation and single quotes for your string. PHP doesn't have to parse your strings for variables that way and it makes it obvious what parts are variables. To each his own. Shall we discuss the merits

Re: [PHP] interesting

2004-05-25 Thread Daniel Clark
Ok, print or echo :-) >>From: "Justin Patrin" <[EMAIL PROTECTED]> >> >>> IMHO it's just better to use concatenation and single quotes for your >>> string. PHP doesn't have to parse your strings for variables that way >>> and it makes it obvious what parts are variables. >> >>To each his own. Shall

Re: [PHP] interesting

2004-05-25 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > From: "Justin Patrin" <[EMAIL PROTECTED]> > > > IMHO it's just better to use concatenation and single quotes for your > > string. PHP doesn't have to parse your strings for variables that way > > and it makes it obvious what parts are variables. >

Re: [PHP] interesting

2004-05-25 Thread John W. Holmes
From: "Justin Patrin" <[EMAIL PROTECTED]> > IMHO it's just better to use concatenation and single quotes for your > string. PHP doesn't have to parse your strings for variables that way > and it makes it obvious what parts are variables. To each his own. Shall we discuss the merits of print vs. e

Re: [PHP] interesting

2004-05-25 Thread Daniel Clark
Good point Justin ! >>John W. Holmes wrote: >> >>> From: Daniel Clark >>> >>> >echo "\"{$search_for_list[$i][0]}\""; will work, btw. What does the {}around the array mean? >>> >>> >>> It delimits your variable so PHP knows what to interpret as a variable and >>> what to interpret

Re: [PHP] interesting

2004-05-25 Thread Justin Patrin
John W. Holmes wrote: From: Daniel Clark echo "\"{$search_for_list[$i][0]}\""; will work, btw. What does the {}around the array mean? It delimits your variable so PHP knows what to interpret as a variable and what to interpret as a string. $ar[1] = 'foo'; echo "Value is {$ar[1]}"; // Value is foo

Re: [PHP] interesting

2004-05-25 Thread Daniel Clark
Thank you John, and Michal :-) >>From: Daniel Clark >> echo "\"{$search_for_list[$i][0]}\""; will work, btw. >>> >>> What does the {}around the array mean? >> >>It delimits your variable so PHP knows what to interpret as a variable and >>what to interpret as a string. >> >>$ar[1] = 'foo'; >>ec

Re: [PHP] interesting

2004-05-25 Thread John W. Holmes
From: Daniel Clark >>echo "\"{$search_for_list[$i][0]}\""; will work, btw. > > What does the {}around the array mean? It delimits your variable so PHP knows what to interpret as a variable and what to interpret as a string. $ar[1] = 'foo'; echo "Value is {$ar[1]}"; // Value is foo $ar = 'foo';

Re: [PHP] interesting

2004-05-25 Thread Michal Migurski
> What does the { } around the array mean? http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.

Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Dennis Seavers
I disagree with the suggestion that you need to or should have programming experience to learn PHP, although it is helpful. There are a few books out there (and books probably are the best starting point) that assume the reader has no programming background, although you need to be familiar with H

Re: [PHP] find out ip address [beginner]

2004-05-25 Thread Matt Matijevich
could you ping or gethostip that webserver using the sytem command, then parse what you recieve? $val = system ('ping -c 1 outherwebserver'); or $val = system ('gethostip outherwebserver'); //then parse $val to pull out the ip address there is probably a better way to do it though, not even sure

Re: [PHP] interesting

2004-05-25 Thread Daniel Clark
What does the { } around the array mean? >>From: "Bob Lockie" <[EMAIL PROTECTED]> >> >>> echo "\"" . $search_for_list[$i][0] . "\"" works but >>> echo "\"$search_for_list[$i][0]\"" prints "Array[0]. >> >>$search_for_list[$i] is an 'Array' which is followed by the string '[0]' ... >>how is PHP supp

Re: [PHP] Re: find out ip address [beginner]

2004-05-25 Thread Tobes
*lol ok, at first I believed this was php... didn't look all that closely I suppose "Chris W. Parker" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Jonesy on Monday, May 24, 2004 2:21 PM said: > WFM: >|$ ping ibm.com >|PING ibm.com (1

Re: [PHP] find out ip address [beginner]

2004-05-25 Thread Tobes
My page is supposed to compare the client IP address to the IP address of an other webserver. I have that domain name and would like to find out it's IP address. Unfortunately its IP address changes regularly (dynamic dns) so that gethostbyname() does not work (it caches the IP address). I am worki

Re: [PHP] interesting

2004-05-25 Thread John W. Holmes
From: "Bob Lockie" <[EMAIL PROTECTED]> > echo "\"" . $search_for_list[$i][0] . "\"" works but > echo "\"$search_for_list[$i][0]\"" prints "Array[0]. $search_for_list[$i] is an 'Array' which is followed by the string '[0]' ... how is PHP supposed to know you mean $search_for_list[$i][0]? echo "\"

[PHP] interesting

2004-05-25 Thread Bob Lockie
echo "\"" . $search_for_list[$i][0] . "\"" works but echo "\"$search_for_list[$i][0]\"" prints "Array[0]. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions simply do not work?

2004-05-25 Thread Michael R. Wayne
Sessions do not work properly for me. Thanks to other people on this list, we've proven that the test script I am using works fine for other people. So, something is wrong with PHP on all of my systems since the same script fails (see previous posts) on multiple servers for me. So, I am now see

Re: [PHP] mySQL table output...

2004-05-25 Thread Don Read
On 23-May-2004 Russell P Jones wrote: > I just want to print out a table from mySQL. Thats it. into an html > table. > > Column 1 | Col 2 | Col 3 > - > Val 1| val 2 | val 3 > Val 4| val 5 | val 6 > > > any ideas on how to do this? > if ($res = mysql_query($q

Re: [PHP] Re: Now I can't start the session either...

2004-05-25 Thread Peter Risdon
Brian Dunning wrote: On May 25, 2004, at 9:06 AM, Craig wrote: It doesnt necessarily mean the error occured on that line, that may have been the last executed statement post a few more lines or we cant help you. // Start the session if (! session_id()) session_start(); if (not is_string($_SESSION

[PHP] Re: Problem with number_format

2004-05-25 Thread Martin Geisler
[EMAIL PROTECTED] (Curt Zirzow) writes: > * Thus wrote Martin Geisler ([EMAIL PROTECTED]): >> >> Caution >> >> When rounding on exact halves round() rounds down on evens and up >> on odds. [...] > > This is a documentation error. And is not on the current > documentation. Indeed you're righ

RE: [PHP] Re: Customer Session Handlers Using MySQL

2004-05-25 Thread Paul Higgins
Would I also have to write the sess_write() and sess_read() functions? If I want to store an array or object, how would I go about doing that? Paul From: Jason Barnett <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] Re: Customer Session Handlers Using MySQL Date: Tue, 25 May 2004 12:41:

Re: [PHP] Re: test

2004-05-25 Thread Daniel Clark
I think it's someone else on the list getting the email lists, and spaming. >>Signed up litterally 1 minute ago and I'm already getting spam. From >>"Advance Credit Suisse Bank" >> >>Great. Thanks php.net. >> >>Guess you can't even trust the well known sites not to slam you with spam. -- PHP Ge

Re: [PHP] Re: test

2004-05-25 Thread Brian Dunning
"Advance Credit Suisse Bank" Great. Thanks php.net. Guess you can't even trust the well known sites not to slam you with spam. Come on, that's not fair. Those emails are sent by some unscrupulous individual who subscribed to the list and set up a rule to reply those spams to everyone who posts t

[PHP] Parse XML

2004-05-25 Thread Phil Dowson
Hi, I am having a couple of difficulties with a script to parse XML. This may well be because my 16 month kid was up all night, but I'm banging my head against a wall right now. The script quite easily extracts one of the entries listed under but doesnt list the other. This is my first look into

Re: [PHP] Re: test

2004-05-25 Thread Jordi Canals
Sherri wrote: Woah! Signed up litterally 1 minute ago and I'm already getting spam. From "Advance Credit Suisse Bank" Just wait. There are some more waiting for you ;) You should receive the "Information Desk" and "Ingram Computer Services" mails yet. -- PHP General Mailing List (http://www.php.n

[PHP] Re: test

2004-05-25 Thread Jason Barnett
Sherri wrote: Woah! Signed up litterally 1 minute ago and I'm already getting spam. From "Advance Credit Suisse Bank" Great. Thanks php.net. Guess you can't even trust the well known sites not to slam you with spam. The problem is this list has no active moderator (at least none that makes themsel

[PHP] Re: test

2004-05-25 Thread Sherri
Woah! Signed up litterally 1 minute ago and I'm already getting spam. From "Advance Credit Suisse Bank" Great. Thanks php.net. Guess you can't even trust the well known sites not to slam you with spam. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] Re: test

2004-05-25 Thread Sherri
Ah ha. Had to confirm my email address. Got it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] test

2004-05-25 Thread John Nichel
Sherri wrote: Yup. this is a test. Sorry. Did we pass?? -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] test

2004-05-25 Thread Sherri
Yup. this is a test. Sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Customer Session Handlers Using MySQL

2004-05-25 Thread Jason Barnett
1) Does this mean that I cannot use the $_SESSION[] variable to enter information into the session? Sure you can. When you use a custom session handler then setting / getting the $_SESSION[] variables will use sess_write and sess_read in order to write/read that information. I think the only

RE: [PHP] Custom Session Handlers Using MySQL

2004-05-25 Thread Paul Higgins
Sorry for the double post, but that should be Custom not Customer. Paul From: "Paul Higgins" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] Customer Session Handlers Using MySQL Date: Tue, 25 May 2004 13:26:32 -0400 Hello all, I found a quick tutorial on how to write a session handler th

[PHP] Customer Session Handlers Using MySQL

2004-05-25 Thread Paul Higgins
Hello all, I found a quick tutorial on how to write a session handler that uses MySQL (http://phpbuilder.com/columns/ying2602.php3?page=1 ). I have a couple of questions regarding this type of session handling: 1) Does this mean that I cannot use the $_SESSION[] variable to enter informatio

[PHP] Re: Simplistic PHP tutorial

2004-05-25 Thread Martin Geisler
[EMAIL PROTECTED] (Neal) writes: > Can anyone recommend a simple, hand-holding, introductory tutorial > suitable for someone with no programming experience to speak of? I have a tutorial online here which is supposed to be pretty basic: http://gimpster.com/wiki/PhpTutorial It was written a lo

Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Rob Adams
"Gabino Travassos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Personally, if I was teaching someone programming concepts from scratch I > would start them with Javascript. It's mostly platform-independent, you >From my experience, PHP is much better at running the same code on d

Re: [PHP] Session variables not recognized?

2004-05-25 Thread John Nichel
Brian Dunning wrote: This is 4.3.2 and sessions are enabled. Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION - Brian Post some code. -- John C. Nichel KegWorks.com

Re: [PHP] Re: Session variables not recognized?

2004-05-25 Thread Brian Dunning
The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION What's up with that??? what php-version do you use? It is 4.3.2 on XP. I only recently installed it and this is the first time I've tried using session

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Brian Dunning
This is 4.3.2 and sessions are enabled. Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: Now I can't start the session either...

2004-05-25 Thread Brian Dunning
On May 25, 2004, at 9:06 AM, Craig wrote: It doesnt necessarily mean the error occured on that line, that may have been the last executed statement post a few more lines or we cant help you. // Start the session if (! session_id()) session_start(); if (not is_string($_SESSION['login_status'])) {

Re: [PHP] Sessions simply do not work?

2004-05-25 Thread John Nichel
Michael R. Wayne wrote: It seems that people have forgotten last week's postings. To recap: Session support worked fine in 4.1.2. It's broken in 4.3.4 and 4.3.6 What doesn't work in 4.3.6? I'm running 4.3.6 w/ Apache 1.3.31 on both a Fedora Core 1 and Mac OS X box, and haven't had a problem wit

Re: [PHP] Re: Problem with number_format

2004-05-25 Thread fku
>Martin Geisler wrote: > >> My PHP manual (from a Debian package) has the following note on the > page for >round(): >> > Caution >> >> When rounding on exact halves round() rounds down on evens and up on >> odds. If you want to always force it in one direction on a .5 (or >> .05 in your c

Re: [PHP] Re: Problem with number_format

2004-05-25 Thread Curt Zirzow
* Thus wrote Martin Geisler ([EMAIL PROTECTED]): > My PHP manual (from a Debian package) has the following note on the > page for round(): > > Caution > > When rounding on exact halves round() rounds down on evens and up on > odds. If you want to always force it in one direction on a .5 (or >

Re: [PHP] Sessions simply do not work?

2004-05-25 Thread Michael R. Wayne
On Tue, May 25, 2004 at 07:37:47AM +0100, Peter Risdon wrote: > Michael R. Wayne wrote: > > >In my continuing efforts to actually get sessions to work, I upgraded > >to PHP 4.3.6 and apache 1.3.31. This did not make the slighest > >difference. > > > >So, does ANYone have ideas of how to debug thi

[PHP] RE:php and java applets

2004-05-25 Thread Ben Ford
This is straight from the http://java.sun.com/applets/ web page: " When you use a Java technology-enabled browser to view a page that contains an applet, the applet's code is transferred to your system and executed by the browser's Java Virtual Machine (JVM). " Java Applets cannot connect to th

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Daniel Clark
Session handling was added in PHP 4.0. >>The first line of my file is session_start(); but whenever I try to set >>or reference $_SESSION['anything'] I get: >> >> Undefined variable: _SESSION >> >>What's up with that??? >> >>- Brian -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Gabino Travassos
> I've looked at the php.net tutorial, and though I'm learning some things > from it, it's still a bit over my head. It seems to presuppose a comfort > level with programming which I do not have. > > Can anyone recommend a simple, hand-holding, introductory tutorial > suitable for someone with no

Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Ryan A
> > > Hi, > > > > > > I've looked at the php.net tutorial, and though I'm learning some > things > > > from it, > it's still a bit over my head. It seems to presuppose a comfort > > > level with programming which I do not have. > > > > > > Can anyone recommend a simple, hand-holding, introductory t

[PHP] Re: Session variables not recognized?

2004-05-25 Thread Thomas Seifert
On Tue, 25 May 2004 08:36:37 -0700 [EMAIL PROTECTED] (Brian Dunning) wrote: > The first line of my file is session_start(); but whenever I try to set > or reference $_SESSION['anything'] I get: > > Undefined variable: _SESSION > > What's up with that??? what php-version do you use? thomas

[PHP] Re: Now I can't start the session either...

2004-05-25 Thread Craig
It doesnt necessarily mean the error occured on that line, that may have been the last executed statement post a few more lines or we cant help you. Regards "Craig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can you post your whole file? > > > "Brian Dunning" <[EMAIL PROTECTED

Re: [PHP] RE:php and java applets

2004-05-25 Thread raditha dissanayake
Ben Ford - Bio-Logic Aqua Technologies wrote: Java Applets cannot connect to the same host they were loaded from. They run on the client machine as a local program. I know this because I attempted to run an applet and have it connect to a mysql server the lived on the web server. Small clarif

[PHP] RE:php and java applets

2004-05-25 Thread Ben Ford - Bio-Logic Aqua Technologies
Java Applets cannot connect to the same host they were loaded from. They run on the client machine as a local program. I know this because I attempted to run an applet and have it connect to a mysql server the lived on the web server. It couldn't connect using localhost as the domain name of

[PHP] Re: Now I can't start the session either...

2004-05-25 Thread Craig
Can you post your whole file? "Brian Dunning" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Here is the top of my file: > > // Start the session > session_start(); > > Which looks OK to me, but it returns: > > Parse error: parse error, unexpected T_STRING in > c:\inetpub\wwwroot\

Re: [PHP] Re: Problem with number_format

2004-05-25 Thread Jordi Canals
Martin Geisler wrote: My PHP manual (from a Debian package) has the following note on the page for round(): Caution When rounding on exact halves round() rounds down on evens and up on odds. If you want to always force it in one direction on a .5 (or .05 in your case) add or substract a tiny

[PHP] Now I can't start the session either...

2004-05-25 Thread Brian Dunning
Here is the top of my file: Which looks OK to me, but it returns: Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\palms\htdocs\start-selling.php on line 3 What's going on here?? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] Session variables not recognized?

2004-05-25 Thread Brian Dunning
The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION What's up with that??? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Ray Hunter
On Tue, 2004-05-25 at 09:17, Stephen Allen wrote: > On Tue, May 25, 2004 at 10:47:01AM -0400 or thereabouts, Neal wrote: > > Hi, > > > > I've looked at the php.net tutorial, and though I'm learning some things > > from it, it's still a bit over my head. It seems to presuppose a comfort > > level

Re: [PHP] Reading from XML file

2004-05-25 Thread Ray Hunter
On Tue, 2004-05-25 at 05:03, Ago wrote: > I have a PHP script who reads data from a XML file uploaded via http form. > This file is about 15 MB. The script builds a query of thousands inserts as > many as the products the XML file contains (more or less 4 inserts). > After 4 minutes the httpd p

Re: [PHP] Error building PHP with PostgreSQL support

2004-05-25 Thread Ray Hunter
On Mon, 2004-05-24 at 17:14, Robert Fitzpatrick wrote: > I am getting the following problem with trying to install from source > PHP 4.3.6 with PG support on FreeBSD 5.2.1. I have PostgreSQL 7.4.2 > recently upgraded from 7.3.x and it is up and running fine. I also have > Heimdal 0.6 installed and

Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Stephen Allen
On Tue, May 25, 2004 at 10:47:01AM -0400 or thereabouts, Neal wrote: > Hi, > > I've looked at the php.net tutorial, and though I'm learning some things > from it, it's still a bit over my head. It seems to presuppose a comfort > level with programming which I do not have. > > Can anyone recomme

[PHP] Re: Problem with number_format

2004-05-25 Thread Martin Geisler
[EMAIL PROTECTED] writes: > please suppose PHP 4.3.2 and $number=502,3550 > > number_format($number,2,'.',' ') returns 502.36. > > It seems ok, but if $number=253,0650 > > number_format($number,2,'.',' ') returns 253.06 instead of 253.07. My PHP manual (from a Debian package) has the following n

Re: [PHP] Problem with number_format

2004-05-25 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > From: <[EMAIL PROTECTED]> > > > please suppose PHP 4.3.2 and $number=502,3550 > > > > number_format($number,2,'.',' ') returns 502.36. > > > > It seems ok, but if $number=253,0650 > > > > number_format($number,2,'.',' ') returns 253.06 instead of

[PHP] Re: Simplistic PHP tutorial

2004-05-25 Thread Craig
Personally I would buy a book on programming in general or maybe just go straight for a PHP beginners book. But this is pretty straight forward from the ground up: http://www.w3schools.com/php/default.asp HTH Craig "Neal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > >

[PHP] Simplistic PHP tutorial

2004-05-25 Thread Neal
Hi, I've looked at the php.net tutorial, and though I'm learning some things from it, it's still a bit over my head. It seems to presuppose a comfort level with programming which I do not have. Can anyone recommend a simple, hand-holding, introductory tutorial suitable for someone with no progr

Re: [PHP] Session name length

2004-05-25 Thread Curt Zirzow
* Thus wrote "Miguel J. Jimnez" ([EMAIL PROTECTED]): > How much long can be the session name? What is the limit? 10, 40, 255 > alphanumeric chars? or what? > Thanks... You're limit will most likey be the cookie length (if you're using cookies). That would be about: 4KB - ~82 Bytes Curt -- "

Re: [PHP] Problem with number_format

2004-05-25 Thread John W. Holmes
From: <[EMAIL PROTECTED]> > please suppose PHP 4.3.2 and $number=502,3550 > > number_format($number,2,'.',' ') returns 502.36. > > It seems ok, but if $number=253,0650 > > number_format($number,2,'.',' ') returns 253.06 instead of 253.07. > > Why? > I've noticed this non-coherent approximation beh

Re: [PHP] Reading from XML file

2004-05-25 Thread raditha dissanayake
Ago wrote: It is not a database problem, it seems to me something about the reading of the XML file. This is my code about this: You can't rule out the database because, inserts are a resource intensive task. $data = implode(file("example.xml"), ""); ouch!! xml_parse_into_struct($parser, $d

Re: [PHP] Reading from XML file

2004-05-25 Thread Ago
It is not a database problem, it seems to me something about the reading of the XML file. This is my code about this: $data = implode(file("example.xml"), ""); xml_parse_into_struct($parser, $data, &$structure, &$index); xml_parser_free($parser); it could be the array $data creation fails becau

Re: [PHP] Problem with number_format

2004-05-25 Thread Gareth Williams
Hi there, Try using: round($number, 2); cheers, Gareth On 25 May 2004, at 16:00, [EMAIL PROTECTED] wrote: Hi, please suppose PHP 4.3.2 and $number=502,3550 number_format($number,2,'.',' ') returns 502.36. It seems ok, but if $number=253,0650 number_format($number,2,'.',' ') returns 253.06 instead o

[PHP] Problem with number_format

2004-05-25 Thread fku
Hi, please suppose PHP 4.3.2 and $number=502,3550 number_format($number,2,'.',' ') returns 502.36. It seems ok, but if $number=253,0650 number_format($number,2,'.',' ') returns 253.06 instead of 253.07. Why? I've noticed this non-coherent approximation behaviour when 3rd decimal

[PHP] Re: Multiple substring replacement

2004-05-25 Thread GodFoca
Because it doesn't replace the newlines, just inserts "" before them... I liked the implode solution ... (shoulda figured, since I come from a python background ... but I keep saying to myself that py is better and that php can't be treated the same way ... ;) Greetings, and thanks for all the ans

[PHP] R: [PHP] Reading from XML file

2004-05-25 Thread Alessandro Vitale
I had a similar problem on my system too. In my case I fixed the problem simply outputting some information during the processing (I would recommend a process bar or something like that). The process itself was correct anyway, but doing that I was getting the expected behaviour from the browser: sh

[PHP] Session name length

2004-05-25 Thread "Miguel J. Jiménez"
How much long can be the session name? What is the limit? 10, 40, 255 alphanumeric chars? or what? Thanks... -- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) mjjimenez AT isotrol DOT com --- http://www.isotrol.com ICQ# 12670750 TLFNO. 955

Re: [PHP] Reading from XML file

2004-05-25 Thread raditha dissanayake
Ago wrote: I have a PHP script who reads data from a XML file uploaded via http form. This file is about 15 MB. The script builds a query of thousands inserts as many as the products the XML file contains (more or less 4 inserts). After 4 minutes the httpd process aborts by itself. What can it

Re: [PHP] Sessions simply do not work?

2004-05-25 Thread Brent Baisley
I've never had a problem using sessions. Do you have a sample piece of simple session code that isn't working? You also need to have cookies enabled on your client if you are using the default session management technique. Your very first line of code, before you do anything else, should be ses

[PHP] Reading from XML file

2004-05-25 Thread Ago
I have a PHP script who reads data from a XML file uploaded via http form. This file is about 15 MB. The script builds a query of thousands inserts as many as the products the XML file contains (more or less 4 inserts). After 4 minutes the httpd process aborts by itself. What can it depend on?

[PHP] Printing images

2004-05-25 Thread rui . silva
Hello! I need to print an image file, but I’m having some problems. I have a handler to a printer witch I can print text correctly with the printer_write function. I can also print an image if it is in bmp format (printer_draw_bmp), however, I want to print png files. How can I do it? Thank y

Re: [PHP] download security

2004-05-25 Thread Jason Wong
On Saturday 22 May 2004 19:15, mattias lundberg wrote: > Why isn't there any way to verify the authenticity of downloadable files, > like you can do on apache.org where there are PGP hashes for each file? > I know that there are MD5 sums on the website, but I can't assume that the > webpage is not

Re: [PHP] Re: send mail error

2004-05-25 Thread Manuel Lemos
Hello, On 05/25/2004 04:51 AM, Tassos T wrote: i try this it seems to work but i reseve error message like that : SMTP server response: 553 sorry, relaying denied from your location i heve windows server It seems to need to authenticate. The mail() function does not support authentication. You ma

Re: [PHP] Re: send mail error

2004-05-25 Thread Tassos T
i try this it seems to work but i reseve error message like that : SMTP server response: 553 sorry, relaying denied from your location i heve windows server please advise tassos Craig wrote: On windows I believe this will work: ini_set("sendmail_from",[EMAIL PROTECTED]); Try that. http://www

Re: [PHP] Changing maximum upload file size

2004-05-25 Thread Jason Wong
On Monday 24 May 2004 11:28, Matt Palermo wrote: > Is there a way to change the maximum file upload size in a PHP script? > Kind of like the way you can change the error reporting in a script, but I > just want to adjust the max file upload size. Does anyone know if this can > be done? No. Becau

Re: [PHP] imagettftext() question

2004-05-25 Thread Jason Wong
On Tuesday 25 May 2004 03:52, Mike Rotondo wrote: > I've written a script that displays a graph of some data from a text file. > Beneath each bar in the graph is a text label. I read the php.net > documentation and it seemed that imagettftext() was the easiest function to > get text in an image wi

Re: [PHP] List all files in remote url ?

2004-05-25 Thread Oliver Hankeln
Dave Carrera wrote: Hi List, I am trying to list all files in a remote url for processing into my attempt at a search engine but I cant work out how to list the files found in a given domain name. The manual has nothing on this, as I can see, and searching the web has drawn a blank. So I ask the li

Re: [PHP] Php Alias instead of redirect

2004-05-25 Thread Jason Wong
On Tuesday 25 May 2004 12:42, Jake Johnson wrote: > Is it possible to have an alias so that bots will index the page instead of > a redirect. If you're using Apache have a look at the alias directive. If you're using some *nix system use symbolic links. -- Jason Wong -> Gremlins Associates -> w

  1   2   >