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
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
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
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
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
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
> 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
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
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
On Thu, Mar 30, 2006 at 08:46:46AM +0800, Tom Wong (Yakang Accessories) wrote:
> Dear All:
Looks good so far.
>
>
>
> -
> ��
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
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
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
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
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
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
> 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?
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
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
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
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
21 matches
Mail list logo