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
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
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
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
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)
{
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
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
On Thu, Mar 30, 2006 at 08:46:46AM +0800, Tom Wong (Yakang Accessories) wrote:
> Dear All:
Looks good so far.
>
>
>
> -
> ��
Title: cids 信纸
Dear All:
-
例子A(使用HTML TAG)
Send this file:
此种方法只是利用HTML TAG的方法,且很容易被绕过(摘自PHP5中文手册), 所以已经不再
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
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
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
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
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.
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
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
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"
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
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
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
> 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
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
35 matches
Mail list logo