Re: [PHP] A problem about sessions

2012-06-08 Thread Tazio Ceri
Stuart Dallas ha scritto: >On 8 Jun 2012, at 00:39, Tazio Ceri wrote: > >> I have a PHP script that takes very long time to execute. I manage it >using the following structure: >> >> ob_start(); >> >> // some code >> session_start(); >> // some code >> >> header("Content-length: ".ob_get_lengt

Re: [PHP] A problem about sessions

2012-06-07 Thread As'ad Djamalilleil
i can't undersans much of your question,, but i think you supposed to write the statement to set the variable's value after the "session_start()" called, like this ... session_start(); . some codes $_SESSION['some_var']; <--- don't put it before the session_start() On Thu, Jun 7, 2012 at 5

Re: [PHP] A problem about sessions

2012-06-07 Thread Stuart Dallas
On 8 Jun 2012, at 00:39, Tazio Ceri wrote: > I have a PHP script that takes very long time to execute. I manage it using > the following structure: > > ob_start(); > > // some code > session_start(); > // some code > > header("Content-length: ".ob_get_length()); > ob_end_flush(); > > // some

[PHP] A problem about sessions

2012-06-07 Thread Tazio Ceri
Hi all, I have a PHP script that takes very long time to execute. I manage it using the following structure: ob_start(); // some code session_start(); // some code header("Content-length: ".ob_get_length()); ob_end_flush(); // some other, very long, code! The problem I am facing is that, aft

Re: [PHP] A problem with fgets()

2008-06-05 Thread Usamah M. Ali
Well, finally found an explanation and a solution: calling fgets() twice. Because if there's no length limit supplied (and it's not EOF) when calling the function, it continues reading until it finds the first newline character. So calling fgets() again will ensure that it will read from the _begin

RE: [PHP] A problem with fgets()

2008-06-04 Thread Ford, Mike
On 30 May 2008 02:56, Usamah M. Ali advised: > So you're confirming that fgets() doesn't necessarily read a whole > line? This user note existed on the manual's page of fgets() since > 2004 and nobody deleted it or commented about: > > rstefanowski at wi dot ps dot pl > 12-Aug-2004 09:03 > > "Ta

Re: [PHP] A problem with fgets()

2008-05-29 Thread Usamah M. Ali
On Fri, May 30, 2008 at 4:21 AM, Chris <[EMAIL PROTECTED]> wrote: > > >> I just need to figure out why when using fgets() with fseek() & >> rand(), the script returns partial strings form the city names. > > Because fseek doesn't necessarily put you at the start of a line. > > It puts you anywhere

Re: [PHP] A problem with fgets()

2008-05-29 Thread Chris
> I just need to figure out why when using fgets() with fseek() & > rand(), the script returns partial strings form the city names. Because fseek doesn't necessarily put you at the start of a line. It puts you anywhere (which could be the start, middle, 3 chars from the end) according to the nu

Re: [PHP] A problem with fgets()

2008-05-29 Thread Usamah M. Ali
On Fri, May 30, 2008 at 3:38 AM, Chris <[EMAIL PROTECTED]> wrote: > fseek doesn't go to the start of a line, it goes to a particular byte - > so that's where the problem lies (not with fgets). There's no function > (that I could see) which would go to the start of the line based on that > offset (I

Re: [PHP] A problem with fgets()

2008-05-29 Thread Chris
Usamah M. Ali wrote: > Hello, > > I have a function that picks up a random entry from a file consisting > of city names, each name on a separate line. The random value is > generated by rand() before fseek()ing to the position determined by > it. The problem is that when using fgets() to get a ran

[PHP] A problem with fgets()

2008-05-29 Thread Usamah M. Ali
Hello, I have a function that picks up a random entry from a file consisting of city names, each name on a separate line. The random value is generated by rand() before fseek()ing to the position determined by it. The problem is that when using fgets() to get a random line, it returns a part of th

[PHP] A problem with passing $_GET in an url (problem solved)

2007-05-04 Thread Davis Chan
Thank you for everyone's help, both public post and private email. I solved the problem, part of it is javascript and part of it is the php generated form (actually a html problem) Now my function is: function Ask_Confirm() { response = confirm("Are you sure?"); if(response == true) {

[PHP] A problem with passing $_GET in an url

2007-05-02 Thread Davis Chan
Hi! New to this newsgroup and is debugging a strange behaviour in a site under development. The developement platform is a Linux box running Fedora Core 6, Apache 2.2.3-5 and php-5.1.6-3. Here is the general flow of that particular part of the site: php generated form ---(data submitted by pre

[PHP] A problem with dates

2006-10-20 Thread Dave Goodchild
Hi all. I have an online events directory and am having some issues with date calculations. I have a table of dates (next year) and an events table - which have a many to many relationship and so use an intermediary mapping table called dates_events. All good - when the user enters a single, multi

Re: [PHP] A Problem!

2006-03-29 Thread Curt Zirzow
On Thu, Mar 30, 2006 at 08:46:46AM +0800, Tom Wong (Yakang Accessories) wrote: > Dear All: Looks good so far. > > > > - > ��

[PHP] A Problem!

2006-03-29 Thread Tom Wong \(Yakang Accessories\)
Title: cids 信纸 Dear All:   - 例子A(使用HTML TAG)         Send this file:         此种方法只是利用HTML TAG的方法,且很容易被绕过(摘自PHP5中文手册), 所以已经不再

[PHP] a problem about calling nusoap with the same key

2005-08-03 Thread Shiqi Yang
Hi all: Now I am playing nusoap to call some apis. In the api doc, the example gives like this: My code like: Array('ArrayList' => array( 'input' => array('name' => 'a', 'value'=> 'b')) ); But the key in the array should be different, so how can I construct it? I als

Re: [PHP] A problem about urlencode

2004-10-25 Thread raditha dissanayake
Teng Wang wrote: I have a url containing some multi-byte characters. So I need urlencode() to change these characters into the %xx form. However, when I encode the whole url string, "/" is also be encoded as "%2F". How to solve this problem? I don't want to analyze the url string before/after urlen

[PHP] A problem about urlencode

2004-10-25 Thread Teng Wang
I have a url containing some multi-byte characters. So I need urlencode() to change these characters into the %xx form. However, when I encode the whole url string, "/" is also be encoded as "%2F". How to solve this problem? I don't want to analyze the url string before/after urlencode(). Thanks a

Re: [PHP] A problem of installation

2004-10-03 Thread Matthew Fonda
Howdy, Redhat is notorious for leaving out things, such as apxs. To get php working, you will most likely have to download apache, build it, and install it. Make sure you configure apache with --enable-so. After apache builds, do make install. And then, when configuring php, do ./configure --with

Re: [PHP] A problem of installation

2004-10-02 Thread Robert Cummings
On Sun, 2004-10-03 at 00:05, Teng Wang wrote: > I met with a problem when installing php5.0.0 on my Federo Core 2.0 system. > > I use the default settings: > ./configure > make > make install > > Everything is ok, but when I test my phpinfo(),it always shows the > 4.3.8 version. Yet, when I type

[PHP] A problem of installation

2004-10-02 Thread Teng Wang
I met with a problem when installing php5.0.0 on my Federo Core 2.0 system. I use the default settings: ./configure make make install Everything is ok, but when I test my phpinfo(),it always shows the 4.3.8 version. Yet, when I type the following command php -v to show the version of php, it's 5.

[PHP] A problem of installation

2004-10-02 Thread Teng Wang
I met with a problem when installing php5.0.0 on my Federo Core 2.0 system. I use the default settings: ./configure make make install Everything is ok, but when I test my phpinfo(),it always shows the 4.3.8 version. Yet, when I type the following command php -v to show the version of php, it's 5

Re: [PHP] A problem in mysql_fetch_array

2002-07-08 Thread Jason Wong
Jimmy Lam said: > I have insert some text with space to mysql DB with varchar() > > When I use mysql_fetch_array function to retrieve the data from DB . I > found only the first session text can be shown . It means if any space > there . It will split like session by session. for example. my DB ha

[PHP] A problem in mysql_fetch_array

2002-07-08 Thread Jimmy Lam
I have insert some text with space to mysql DB with varchar() When I use mysql_fetch_array function to retrieve the data from DB . I found only the first session text can be shown . It means if any space there . It will split like session by session. for example. my DB have a text "Hello World"

RE: [PHP] A Problem With Loops

2002-01-10 Thread Ash Young
Hi, Sorry about not showing the code, there is a lot of it. Now this script works in my pc, running IIS5 but not on my web host. If you remove various parts of the main if statments then it manages more than 20. Depending which if statement is removed, changes how many iterations it will last fo

Re: [PHP] A Problem With Loops

2002-01-10 Thread S. Murali Krishna
Show the loop code. On Thu, 10 Jan 2002, Ash Young wrote: > Hi, > > I am having a problem with any type of loop, for, foreach, while. I have a > PHP script that loops through an array that contains the contents of a text > file and processes the data it recieves. > > My problem is that the

[PHP] A Problem With Loops

2002-01-10 Thread Ash Young
Hi, I am having a problem with any type of loop, for, foreach, while. I have a PHP script that loops through an array that contains the contents of a text file and processes the data it recieves. My problem is that the loop will only manage about 18 iterations before processing dies. I know that

[PHP] A problem with my PHP installation

2001-11-16 Thread Good Fella
Hiya All, I am running Windows XP Professional and am currently experiencing a problem with PHP. I have installed Internet Information Services 5.1, and followed my usual set-up of PHP under IIS. I have managed to do this perfectly fine on Windows 2000, but have noticed that on Windows XP, the

RE: [PHP] A problem under Solaris

2001-03-22 Thread Dunaway, Brian
> I´m trying to compile PHP 4.0 under Solaris 8.0 - SPARC > 250. When I try to configure using the appropiate script, it > test for the existence of one package called lex and another > called flex, both couldn´t be found and the script can´t > continue. Anybody has be in the same trouble?

Re: [PHP] A problem under Solaris

2001-03-22 Thread Sebastien Roy
There it is : http://www.spiral303.com/solaris/frex254a.shtml Regards Sebastien Roy Emiliano Marmonti wrote: > Thank you Sebastian, > but I want to know what is flex (and I don´t know where could I obtain it). > > Thanks again. > Emiliano. > > -- > PHP General Mailing List (http://www.php.ne

Re: [PHP] A problem under Solaris

2001-03-22 Thread Joe Rice
If you have the "Bonus Software" pack that came with Solaris8, there is a CD call "Companion". That CD has everything you need form the GNU world. Loads of GNU solaris packages. joe Emiliano Marmonti([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 02:43:25PM -0600: > Thank you Sebastian, > but I want t

Re: [PHP] A problem under Solaris

2001-03-22 Thread Emiliano Marmonti
Thank you Sebastian, but I want to know what is flex (and I don´t know where could I obtain it). Thanks again. Emiliano. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administr

Re: [PHP] A problem under Solaris

2001-03-22 Thread Sebastien Roy
I got the same problem as you did, Just pick-up flex on a gnu mirror and your problem will be corrected! Regards, Sebastien Roy www.galeasec.com Emiliano Marmonti wrote: > Hello all > > I´m trying to compile PHP 4.0 under Solaris 8.0 - SPARC 250. When I try to >configure using the appropi

[PHP] A problem under Solaris

2001-03-22 Thread Emiliano Marmonti
Hello all I´m trying to compile PHP 4.0 under Solaris 8.0 - SPARC 250. When I try to configure using the appropiate script, it test for the existence of one package called lex and another called flex, both couldn´t be found and the script can´t continue. Anybody has be in the same trouble? A