I didn't get the file, but
If the lines are seperated by 's instead of newlines, then
$filename = "monkey.html";
$file_array = preg_split("//", file_get_content($filename));
$rev_array = array_reverse($file_array);
$output = join("", $rev_array);
This could be modded to maintain any arguments in
On 06/03/06, Jacob Friis Saxberg <[EMAIL PROTECTED]> wrote:
> > > Does anyone know of a Php funtion that can do this:
> > > http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html
> > Hi there!
> >
> > http://se.php.net/manual/en/function.htmlentities.php
> >
> > ?
>
> htmlentities converts t
robert mena wrote:
Hi,
Thanks. it worked.
Since I have a common server where various virtualhosts reside what
would you recommend in terms of security?
1. don't let assholes on your box.
2. read http://phpsec.org
safemode and openbase_dir are primarily designed to protected
legitimate users
Hi.
I'm trying to access SVN from PHP and as there seems to be no direct binding
for it yet i've had a look at WebSVN source to try and list directories in a
repository with the following code but it just doesn't return anything. It
doesn't return anything whether re-directing or not (i..e. using
Hi.
I'm trying to access SVN from PHP and as there seems to be no direct binding
for it yet i've had a look at WebSVN source to try and list directories in a
repository with the following code but it just doesn't return anything. It
doesn't return anything whether re-directing or not (i..e. us
Jon Morgan wrote:
Hi.
I'm trying to access SVN from PHP and as there seems to be no direct binding
for it yet i've had a look at WebSVN source to try and list directories in a
repository with the following code but it just doesn't return anything. It
doesn't return anything whether re-directing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello, guys.
I have a little problem here and I would like to know if you
have any idea about how to handle it.
I have an URL which is streaming a live TV channel and I need to
implement, using PHP, some kind of validation to allow that only
one pers
It's a fairly standard authentication problem.
I would solve it by using sessions.
In the page and video stream start by checking for an authenticated flag
in the session array.
If the flag is present, display the content.
If not, show a login page. When they login, set the authenticated flag
and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
>> -Original Message-
>> From: Gentil de Bortoli Júnior [mailto:[EMAIL PROTECTED]
>> Sent: 9 March 2006 2:01 pm
>> To: php-general@lists.php.net
>> Subject: [PHP] PHP + MMS Live Streaming + Protect URL.
>>
>>
>> Hello, guys.
>>
>> I have a lit
Gentil de Bortoli Júnior wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
-Original Message-
From: Gentil de Bortoli Júnior [mailto:[EMAIL PROTECTED]
Sent: 9 March 2006 2:01 pm
To: php-general@lists.php.net
Subject: [PHP] PHP + MMS Live Streaming + Protect URL.
Hello, guys.
I ha
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gentil de Bortoli Júnior wrote:
> I have a little problem here and I would like to know if you
> have any idea about how to handle it.
>
> I have an URL which is streaming a live TV channel and I need to
> implement, using PHP, some kind of validation
Hi guys.
When adding additional headers to an email that gets sent from the mail
function. What purpose does the X-Mailer have?
Also are the following linked:
-X-Priority
-Importance
-X-MSMail-Priority
Another question is can I omit the Message-ID for the email? or will this result in some ma
Paul Scott wrote:
On Wed, 2006-03-08 at 13:12 -0600, Philip Hallstrom wrote:
I have been searching for this, but maybe one of you has seen it before
and can save me some time. I need a class that will allow me to create a
zoomable map application. I have a map, I just need folks to be able to
i am having one problem in session handling.
I am having 2 files,login page and hame page.
when user enterd user name and password in login page
.i used session to store the user id .in my second
home page.i retrieve the user id.now i want the user
id to be availble in my thrid page.plz help me.thi
Hi
I've got apache2/mod_php4 and I want to pass all requests to a vhost
through to a single PHP script.
I've tried this config:
ServerName yyy
DocumentRoot /var/local/yyy
ForceType application/x-httpd-php
with a PHP script called "store" I can get
One important question is:
You're using register_globals equal on or off?
suresh kumar wrote:
> i am having one problem in session handling.
> I am having 2 files,login page and hame page.
> when user enterd user name and password in login page
> .i used session to store the user id .in my seco
Hi.
I'm using Debian sarge with php4-cgi and I'm looking for a way to set php
settings like open_basedir or disable_functions at a per virtual_host or
directry level from apache.
This seems to be possible when using libapache2-mod-php4 using stuff like
"php_admin_value", but not with my php over
So I am using system() to try and access sftp from my php scripts. How do I
do multiple steps once I've initiated my command
e.g.
$file = 'filname.txt';
system( "C:\sftp\sftp.exe | put ".$file );
Im on a windows box, so I don't know if I can do something like this ...
anyway any help would be
On Thu, 2006-03-09 at 17:27 -0800, Angelo Zanetti wrote:
> When adding additional headers to an email that gets sent from the mail
> function. What purpose does the X-Mailer have?
>
It identifies the mail client. So I normally set X-Mailer = "MySite
Mailer"; or something. This directive won't nor
i am having one problem in session handling.
I am having 2 files,login page and hame page.
when user enterd user name and password in login page
.i used session to store the user id .in my second
home page.i retrieve the user id.now i want the user
id to be availble in my thrid page.plz help me.th
Curt Zirzow wrote:
I'm including the list in this reply in case any wants to give some
feedback.
http://zirzow.dyndns.org/php-general/NEWBIE
http://www.thelinuxconsultancy.co.uk/phpeditors.php is no longer valid.
I mean, the list is no longer there, though the URL is still valid.
It got pr
Can anyone offer or point me to a summary of differences between running
php as an Apache module vs as a cgi executable? Specifically, I'm
wanting to upgrade our servers to php 5 but there is one crucial
third-party app we're using that still needs php 4, so I'm hoping I can
run just that app
$ID is not a global, but $_SESSION["ID"] would be...
Gerry
http://groups.yahoo.com/group/php_and_mysql/
On 3/9/06, suresh kumar <[EMAIL PROTECTED]> wrote:
>
> i am having one problem in session handling.
> I am having 2 files,login page and hame page.
> when user enterd user name and password in
On 3/7/06, Manish Marathe <[EMAIL PROTECTED]> wrote:
>
> PHP experts everywhere!!
>
> I am building PHP 5.1.2 on windows without pcre-regex extension. I am
> building building pcre independently and then I am building the extension
> php_pcre.dll.
>
> I build few other extensions too. I keep the ex
If I compile php with --enable-memory-limit and set a memory limit in
php.ini, what will this do ?
Thanks
Khai
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Max Schwanekamp wrote:
Can anyone offer or point me to a summary of differences between running
php as an Apache module vs as a cgi executable? Specifically, I'm
wanting to upgrade our servers to php 5 but there is one crucial
third-party app we're using that still needs php 4, so I'm hoping I
El Bekko wrote:
Max Schwanekamp wrote:
Can anyone offer or point me to a summary of differences between
running php as an Apache module vs as a cgi executable? Specifically,
I'm wanting to upgrade our servers to php 5 but there is one crucial
third-party app we're using that still needs php 4
So... I'm trying to extend PEAR::DB. It'd be great to keep everything it offers
and just add a few more perhaps unconventional functions.
Intuitively, it seemed like this approach might work:
testext('testing');
$dte->testext($dte->moo);
$dte->testext($dte->bar);
?>
However, it does
Paul Scott wrote:
On Thu, 2006-03-09 at 16:05 +1100, Chris wrote:
What's the whole error message (ie context)? Is it coming from cron or
randomly in your scripts?
From Xdebug...
Its random. I am just thinking though that what it *might* be is that
the initial session is timing out between
Khai wrote:
If I compile php with --enable-memory-limit and set a memory limit in
php.ini, what will this do ?
http://www.php.net/manual/en/ini.core.php#ini.memory-limit
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Manish Marathe wrote:
On 3/7/06, Manish Marathe <[EMAIL PROTECTED]> wrote:
PHP experts everywhere!!
I am building PHP 5.1.2 on windows without pcre-regex extension. I am
building building pcre independently and then I am building the extension
php_pcre.dll.
I build few other extensions too. I
Mark Steudel wrote:
So I am using system() to try and access sftp from my php scripts. How do I
do multiple steps once I've initiated my command
e.g.
$file = 'filname.txt';
system( "C:\sftp\sftp.exe | put ".$file );
Im on a windows box, so I don't know if I can do something like this ...
a
[EMAIL PROTECTED] wrote:
So... I'm trying to extend PEAR::DB. It'd be great to keep everything it offers and just add a few more perhaps unconventional functions.
Intuitively, it seemed like this approach might work:
testext('testing');
$dte->testext($dte->moo);
$dte->testext($dte->bar
Weston wrote:
> > $dte = DBToyExt::connect("mysql://weston_tssa:[EMAIL
> > PROTECTED]/weston_tssa");
> >
> > $dte->testext('testing');
> > $dte->testext($dte->moo);
> > $dte->testext($dte->bar);
On Fri, Mar 10, 2006 at 10:43:02AM +1100, Chris wrote:
> $dte will only have the return value of
[EMAIL PROTECTED] wrote:
Weston wrote:
$dte = DBToyExt::connect("mysql://weston_tssa:[EMAIL PROTECTED]/weston_tssa");
$dte->testext('testing');
$dte->testext($dte->moo);
$dte->testext($dte->bar);
>>>
$dte will only have the return value of DBToyExt::connect() - it won't
allow you to access
> > So... I'm trying to extend PEAR::DB. It'd be great to keep everything it
> > offers and just add a few more perhaps unconventional functions.
> >
> > $dte = DBToyExt::connect("mysql://weston_tssa:[EMAIL
> > PROTECTED]/weston_tssa");
> >
>
> DB::connect() is actually a factory call. So
Has anyone seen a script or class that can handle file uploads of large
files (greater than 20 meg)? Any direction as to where to look would be
appreciated.
Chris
Christopher Taylor wrote:
Has anyone seen a script or class that can handle file uploads of large
files (greater than 20 meg)? Any direction as to where to look would be
appreciated.
PHP can handle it, whether your server will time out with large files
like that I don't know.
Look at http:/
Try: http://www.heylove.de/
It walks you through creating your own file upload class and in the end
gives an example of how to use that class.
Shaunak Kashyap
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
Direct: 323.330.9870
Main: 323.330.990
On Fri, 2006-03-10 at 10:26 +1100, Chris wrote:
> If you leave your browser open for 20 mins or something and then try to
> log in, does that replicate it?
>
Ah hah! The plot thickens!
It seems that I can:
1. Launch the app - thereby starting the initial session
2. Leave the session to time o
Paul Scott wrote:
On Fri, 2006-03-10 at 10:26 +1100, Chris wrote:
If you leave your browser open for 20 mins or something and then try to
log in, does that replicate it?
Ah hah! The plot thickens!
It seems that I can:
1. Launch the app - thereby starting the initial session
2. Leave the
On Fri, 2006-03-10 at 16:00 +1100, Chris wrote:
> If you can produce a small test case might be time for a bug report. It
> shouldn't give you "permission denied" errors.
>
Will work on it over the weekend. I am going to try something dead
simple with the session stuff and see what I can do with
42 matches
Mail list logo