Dave M G wrote:
>I am developing a web site that is hosted on a web server where I do not
>have permission to change the php.ini file.
>
>This server has magic quotes turned on. I'd like them off.
>
>I wrote two functions to detect when magic quotes is on, and to try and
>counter act its effects.
Richard,
> Try php_value instead of php_flag, though both should work for this one.
Whoops... my mistake. Without going into overly complicated details, I
hadn't tested the original suggestion properly.
Turns out, so far as I can tell, both of these lines work for me:
php_value magic_quotes_g
Hi,
I have a form with two lists. One is populated with many options while the
second is populated with only a single item. When the first drop-down list
is changed, I call a PHP script sing AJAX to populate the second list. I
also need to perform another task when the second list is changed
I had to add the full path and it works just fine.
Thanks
Well, make sure $rootPath is correct for your environment. Also, add a
slash after the directory name.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Richard Kurth wrote:
*Now I get this error
On Fri, Aug 8, 2008 at 9:05 AM, Chris <[EMAIL PROTECTED]> wrote:
> http://www.php.net/get_magic_quotes_gpc
>
> It cannot be enabled/disabled at run time. It has to either be done in a
> .htaccess or through apache/php.ini changes.
afaik, turning off/on 'magic_quotes_sybase' is a workaround.
it ov
Well, make sure $rootPath is correct for your environment. Also, add a
slash after the directory name.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Richard Kurth wrote:
> *Now I get this error
> Warning*: chdir() [function.chdir]: No error (errno 0) in
>
Roger Bigras wrote:
you may try the
ini_set('magic_quotes_gpc',0);
RTM.
http://www.php.net/get_magic_quotes_gpc
It cannot be enabled/disabled at run time. It has to either be done in a
.htaccess or through apache/php.ini changes.
See this page for how to disable it:
http://www.php.net/ma
you may try the
ini_set('magic_quotes_gpc',0);
note, this line should be the first line of code.
also make sure that that your php opener is the first line in your script.
1. This feature is DEPRECATED and REMOVED as of PHP 6.0.0. Relying on this
feature is highly discouraged
in php 6 the qu
Richard,
Thank you for replying.
If you can't change php.ini, and if it's Apache, you maybe can just
turn it off in .htaccess, far faster and easier than a PHP function.
I looked on the web and found this line:
php_flag magic_quotes_gpc off
... and added it to my .htaccess file. But it doesn'
*Now I get this error
Warning*: chdir() [function.chdir]: No error (errno 0) in
*C:\web\easycontactpro\removeemail.php* on line *7*
Where can I find what errno 0 means
it loops through all the directors but does not process any of the files
foreach (range(0,22) as $dirNum)
Thank you,
Micah Gers
public static function restoreSlashes($string)
{
// Check if "Magic Quotes" is turned on.
if (get_magic_quotes_gpc())
{
// Add escape slashes.
return addslashes($string);
}
// Return a string that has escape slashes.
return $string;
}
Wrong way around.
If gpc is enabled,
If you can't change php.ini, and if it's Apache, you maybe can just
turn it off in .htaccess, far faster and easier than a PHP function.
You are calling the removeSlashes, right?
And, really, there is no reason for the restoreSlashes function to
exist. If you ever think you need it, you're wrong
PHP List,
I am developing a web site that is hosted on a web server where I do not
have permission to change the php.ini file.
This server has magic quotes turned on. I'd like them off.
I wrote two functions to detect when magic quotes is on, and to try and
counter act its effects. But it do
Long live PHP4 *meheheheheh*
Cheers,
Rob.
On Thu, 2008-08-07 at 22:47 +0200, Derick Rethans wrote:
> Hello,
>
> The PHP development team would like to announce the immediate
> availability of PHP 4.4.9. It continues to improve the security and the
> stability of the 4.4 branch and all users a
On Thu, 2008-08-07 at 17:29 -0500, Micah Gersten wrote:
> You can't steal it, but you can't do anything with it either, so what's
> the point of having it?
>
>
> V S Rawat wrote:
> >
> > I was surprised to see some very busy and well to do Chartered
> > Accountants, Company Secretaries still usin
foreach (range(0,22) as $dirNum)
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Richard Kurth wrote:
> *I get this when I run it
> Parse error*: syntax error, unexpected T_DNUMBER in *remove.php* on
> line *4
> it does not like the *foreach (0..22 as $dirNum
oops.
foreach (range(0..22) as $dirNum)
:)
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Richard Kurth wrote:
> *I get this when I run it
> Parse error*: syntax error, unexpected T_DNUMBER in *remove.php* on
> line *4
> it does not like the *foreach (0..22
*I get this when I run it
Parse error*: syntax error, unexpected T_DNUMBER in *remove.php* on line *4
it does not like the *foreach (0..22 as $dirNum)
Try this:
$rootPath = '/remote';
$string = '';
foreach (0..22 as $dirNum)
{
$dir = "$rootPath/$dirNum";
chdir($dir);
$files = glob("1
Try this:
$rootPath = '/remote';
$string = '';
foreach (0..22 as $dirNum)
{
$dir = "$rootPath/$dirNum";
chdir($dir);
$files = glob("13*");
foreach ($files as $file)
{
$string .= file_get_contents($file);
}
}
echo $string;
Thank you,
Micah Gersten
onShore Networ
Version 5
First, which version of PHP? PHP 5 added a lot of features for reading
files.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Richard Kurth wrote:
I am trying to read a bunch of files that are in many directors into
one string
But it will onl
First, which version of PHP? PHP 5 added a lot of features for reading
files.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Richard Kurth wrote:
> I am trying to read a bunch of files that are in many directors into
> one string
> But it will only read one
I am trying to read a bunch of files that are in many directors into one
string
But it will only read one file.
Every file is a number 134328923 but they all start with 13
They are in 22 directors named 0 to 22
How can I make the script look in each directory and read each file into
a string tha
Simple answer is yes. But others might argue this answer.
Luke wrote:
Tom's machine only has 1 GB of physical memory doesn't it? Could that be the
problem?
2008/8/7 Jim Lucas <[EMAIL PROTECTED]>
Tom wrote:
Hi,
on a linux system (Suese 10.2) with 1 GB memory its not possible to upload
via
You can't steal it, but you can't do anything with it either, so what's
the point of having it?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
V S Rawat wrote:
>
> I was surprised to see some very busy and well to do Chartered
> Accountants, Company Secretar
On 8/7/2008 7:42 PM India Time, _Judson Vaughn_ wrote:
Kudos to Richard.
If its fixed, don't break it.
Jud.
==
Per Jessen wrote:
Richard Heyes wrote:
I'm interested - why are people still using PHP4? It's been over 4
years (I think) - plenty of time to upgrade to five.
Migrat
Does anyone know of a JDBC API Wrapper that can be called from PHP?
I'm already using this to connect to Java:
http://php-java-bridge.sourceforge.net/doc/
--
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
On Thu, Aug 7, 2008 at 7:21 AM, Christoph Boget
<[EMAIL PROTECTED]>wrote:
> I knew that there would be some overhead when working with objects vs
> working with arrays, but I didn't expect this much. Is there some
> optimization that I could do to improve the performance any? While
> the script
On Thu, Aug 7, 2008 at 1:29 PM, Christoph Boget <[EMAIL PROTECTED]> wrote:
> * I'm trying to better understand the 'classmap' option for the
> SoapClient class. Is it used to define the class of an instantiated
> object which will be passed as an argument to the server's function
> call? So, as
Tom's machine only has 1 GB of physical memory doesn't it? Could that be the
problem?
2008/8/7 Jim Lucas <[EMAIL PROTECTED]>
> Tom wrote:
>
>> Hi,
>>
>> on a linux system (Suese 10.2) with 1 GB memory its not possible to upload
>> via http a 1 Gb File. Thats no limit problem on my php config. i
Hello,
The PHP development team would like to announce the immediate
availability of PHP 4.4.9. It continues to improve the security and the
stability of the 4.4 branch and all users are strongly encouraged to
upgrade to it as soon as possible. This release wraps up all the
outstanding patches
Tom wrote:
Hi,
on a linux system (Suese 10.2) with 1 GB memory its not possible to upload
via http a 1 Gb File. Thats no limit problem on my php config. i can look
the mem stats when uploading and the growing tmp file. If the temp file has
900 MB, Main Memory free is 0 and the script aborts
Hi Per,
your result is on a suse 8.2 ?
hmm, i don't know the reason why my suse 10.2 machines do that failure.
My limits for for post_max_size and upload_max_size is both 1500M.
Greets & thanx, Tom
"Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Tom wrote:
> i
> -Original Message-
> From: Benjamin Darwin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2008 2:05 PM
> To: Colin Guthrie
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Re: Version Control Software
>
> I'm wondering if anybody knows of a version control software
> pro
* I'm trying to better understand the 'classmap' option for the
SoapClient class. Is it used to define the class of an instantiated
object which will be passed as an argument to the server's function
call? So, as a very simplistic example, it might go something like
this:
sStockSymbol = $sStockS
On Thu, Aug 7, 2008 at 10:02 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> Robert Cummings wrote:
>
>> On Thu, 2008-08-07 at 09:43 +1000, Ross McKay wrote:
>>
>>> On Wed, 6 Aug 2008 16:42:23 -0400, "Benjamin Darwin" wrote:
>>>
>>> [...]
I'm wondering if anybody knows of a version control sof
Perkins, Ryan wrote:
I was looking thru some of the scripts that were mentioned and I am
wondering if there is a way to write on that will delete registry entries? I
am trying to uninstall Office 97 on XP machines and there are a lot of
pieces left after the uninstall has run. I would need to loo
Viktor Popov wrote:
Hi,
Do you know where can I find more information about using the
ReflectionClass. What is it for? In which situation can I use it and so on.
Thank you in advance!
Viktor
http://php.net/language.oop5.reflection
-Shawn
--
PHP General Mailing List (http://www.php.net/)
Philip Thompson wrote:
Oops! Meant to send this to the list
On Aug 7, 2008, at 9:31 AM, Philip Thompson wrote:
On Aug 6, 2008, at 4:25 PM, Shawn McKenzie wrote:
Philip Thompson wrote:
Is it possible to grab a variable number of parameters and send the
appropriate amount to another funct
Tom wrote:
> i use ext3
> Im realy on no limit. destination ist /tmp and is fairly empty.
> The question is now, if cache full => must hypothetical swap used?
> ok, im glad to see your result.
No, high utilization of file system cache will not cause any swapping -
file system caching uses whatev
i use ext3
Im realy on no limit. destination ist /tmp and is fairly empty.
The question is now, if cache full => must hypothetical swap used?
ok, im glad to see your result.
"Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Tom wrote:
>>Ah, so it's not PHP and it'
On Thu, 2008-08-07 at 11:50 +0200, Børge Holen wrote:
> On Thursday 07 August 2008 03:57:06 you wrote:
> > On Thu, 2008-08-07 at 00:46 +0200, Børge Holen wrote:
> > > On Wednesday 06 August 2008 20:00:50 tedd wrote:
> > > > At 9:11 AM -0400 8/5/08, Daniel Brown wrote:
> > > > >On Tue, Aug 5, 2008 a
Tom wrote:
>>Ah, so it's not PHP and it's not apache using up your memory - it's
>>your
>>filesystem cache. Check how many files you have in the tmp directory
>>and the destination directory.
>
> Okay, thats light in the darkness. But i don't have any idea what i
> can do here. tmp is empty.
>
>Ah, so it's not PHP and it's not apache using up your memory - it's your
>filesystem cache. Check how many files you have in the tmp directory
>and the destination directory.
Okay, thats light in the darkness. But i don't have any idea what i can do
here. tmp is empty.
Look at the first entry,
On Thursday 07 August 2008 16:58:32 tedd wrote:
> At 4:35 PM +0200 8/7/08, Børge Holen wrote:
> >On Thursday 07 August 2008 16:28:12 tedd wrote:
> > > At 11:50 AM +0200 8/7/08, Børge Holen wrote:
> > > >> > I'm just gonna comment some here. Hell, it's a bitch to loose
> > > >> > data, but I gi
Tom wrote:
> With what linux BS have you tested?
It was an older SUSE Linux 8.2. But the OS shouldn't matter - maybe the
PHP release and maybe the apache ditto.
> No, it isn't the apaches job/problem.
> I do nothing with the file. Looking for $_FILES Varables and then
> move_uploaded_file.
Th
With what linux BS have you tested?
No, it isn't the apaches job/problem.
I do nothing with the file. Looking for $_FILES Varables and then
move_uploaded_file.
But i said it before, the problem is not at this point.
If i upload the file and watch memory with vmstat, free is going 0, cache is
goi
At 4:35 PM +0200 8/7/08, Børge Holen wrote:
On Thursday 07 August 2008 16:28:12 tedd wrote:
> At 11:50 AM +0200 8/7/08, Børge Holen wrote:
> >> > I'm just gonna comment some here. Hell, it's a bitch to loose data,
> >> > but I give you this... These "pro's" here, ain't getting things done,
On Thursday 07 August 2008 16:28:12 tedd wrote:
> At 11:50 AM +0200 8/7/08, Børge Holen wrote:
> >On Thursday 07 August 2008 03:57:06 you wrote:
> >> On Thu, 2008-08-07 at 00:46 +0200, Børge Holen wrote:
> > > > On Wednesday 06 August 2008 20:00:50 tedd wrote:
> > > > > Sure it takes a lot of ti
Oops! Meant to send this to the list
On Aug 7, 2008, at 9:31 AM, Philip Thompson wrote:
On Aug 6, 2008, at 4:25 PM, Shawn McKenzie wrote:
Philip Thompson wrote:
Is it possible to grab a variable number of parameters and send
the appropriate amount to another function?
db->prepare("SELE
Tom wrote:
> hmm, memory buying is okay, not the final solution. I think php design
> fault on this function. It's not comprehensible why php use such a
> lot main memory for an upload.
Well, PHP doesn't - the upload is apaches job. Once the file is
uploaded, PHP is invoked to process it. You d
At 11:50 AM +0200 8/7/08, Børge Holen wrote:
On Thursday 07 August 2008 03:57:06 you wrote:
On Thu, 2008-08-07 at 00:46 +0200, Børge Holen wrote:
> > On Wednesday 06 August 2008 20:00:50 tedd wrote:
> > > Sure it takes a lot of time to backup, but less than the alternative.
>
> I'm just
Tom wrote:
> But on a big website with upload enabled and 30 users upload simultan
> a 20 MB File, they lost the upload while php hold all in memory/Cache
> and swap is not used. I don't understand why php write the upload
> chunck for chunck (i can look this) in upload temp file AND holds the
>
Kudos to Richard.
If its fixed, don't break it.
Jud.
==
Per Jessen wrote:
Richard Heyes wrote:
I'm interested - why are people still using PHP4? It's been over 4
years (I think) - plenty of time to upgrade to five.
Migration issues for instance - we have quite a bit of code th
Robert Cummings wrote:
On Thu, 2008-08-07 at 09:43 +1000, Ross McKay wrote:
On Wed, 6 Aug 2008 16:42:23 -0400, "Benjamin Darwin" wrote:
[...]
I'm wondering if anybody knows of a version control software program that
may fit my needs.
Basically, I'm looking for something that runs locally, not
I was looking thru some of the scripts that were mentioned and I am
wondering if there is a way to write on that will delete registry entries? I
am trying to uninstall Office 97 on XP machines and there are a lot of
pieces left after the uninstall has run. I would need to look and see if the
entry
hmm, memory buying is okay, not the final solution. I think php design fault
on this function. It's not comprehensible why php use such a lot main
memory for an upload.
""Richard Heyes"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Well, you lost me right about... Well
Well, you lost me right about... Well when you started. But memory is
cheap...:-/
--
Richard Heyes
http://www.phpguru.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
smaller files is no problem. The error occoured, if the uploaded File is
bigger than the installed main memory.
Ok, i know that http ist not designed for big uploads. But on a big website
with upload enabled and 30 users upload simultan a 20 MB File, they lost the
upload while php hold all in m
I knew that there would be some overhead when working with objects vs
working with arrays, but I didn't expect this much. Is there some
optimization that I could do to improve the performance any? While
the script below is just a benchmark test script, it approximates
functionality that I'm going
On Aug 7, 2008, at 8:57 AM, mukesh yadav wrote:
Hi folks,
I have Given a task to make a application installation using key.
The installation file is ready I have to just add the Registration key
feature.
I have to do following task.
1. when user gives the url a installation page apears. when
Hi folks,
I have Given a task to make a application installation using key.
The installation file is ready I have to just add the Registration key
feature.
I have to do following task.
1. when user gives the url a installation page apears. when he clicks on
user agree terms,
it goes to then nex
Got same problem exactly today w/ 5.2.6 with zip archive.
Note that there has been many changes w/ pgsql extension in 5.2.6.
It seems that extension file is corrupted, or that my piece of software
(izarc) don't deal correctly with it. Looks also like daily snapshots of
5.2.6 are corrupted too.
> No Apache limit, enough diskspace, no permission problem.
> Fact is: During upload looking at main memory, goes to 0 and if 0 uploadet
> tmp File was deleted and no error occur.
>
> It was great, if anybody can test such a upload. The uploaded File musst be
> greater as main memory. While teh ulo
No Apache limit, enough diskspace, no permission problem.
Fact is: During upload looking at main memory, goes to 0 and if 0 uploadet
tmp File was deleted and no error occur.
It was great, if anybody can test such a upload. The uploaded File musst be
greater as main memory. While teh uload is run
Hi,
Do you know where can I find more information about using the
ReflectionClass. What is it for? In which situation can I use it and so on.
Thank you in advance!
Viktor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tom wrote:
> No, ist'not a php limit. The upload is written in main memory, if i
> look with vmstat, free is going to 0 and the php upload breaks at 0
> bytes free. Nothing swap used. Any other ideas?
>
Interesting problem - maybe an apache limit? Lack of diskspace?
Permissions? Which error d
Don Mak wrote:
Trying to create an articles rss feed for my site and I keep getting an
error that says:
=
A semi colon character was expected.
Line: 7 Character: 60
http://www.chirunning.com/shop/pages.php?pageid=19&id=383
=
This is an easy one: in both of the following lines
@mysql_
On Thursday 07 August 2008 03:57:06 you wrote:
> On Thu, 2008-08-07 at 00:46 +0200, Børge Holen wrote:
> > On Wednesday 06 August 2008 20:00:50 tedd wrote:
> > > At 9:11 AM -0400 8/5/08, Daniel Brown wrote:
> > > >On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius
> > > >
> > > ><[EMAIL PROTECTED]>
No, ist'not a php limit. The upload is written in main memory, if i look
with vmstat, free is going to 0 and the php upload breaks at 0 bytes free.
Nothing swap used. Any other ideas?
"Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Tom wrote:
> Hi,
>
> on a linu
Tom wrote:
> Hi,
>
> on a linux system (Suese 10.2) with 1 GB memory its not possible to
> upload via http a 1 Gb File. Thats no limit problem on my php
> config. i can look the mem stats when uploading and the growing tmp
> file. If the temp file has 900 MB, Main Memory free is 0 and the
> scr
Marcelo de Moraes Serpa wrote:
> Less manegeable becouse I would have to keep copies of the pictures on
> the disk. If I ever want to change these watermarks, I would have to
> somehow recreate them. It is more work to do than if I used the
> per-request runtime applying of watermark approach, sin
@Per Jessen
Disk-space is cheap, especially if you don't need to be worried about
backup etc. I'm not sure why you think applying watermarks in an
off-line process would any less manageable than doing it on-line.
Well, the processing will be "online" in the sense that it will be triggered
via an
I'm wondering if anyone here has experience integrating FileMaker with
PHP using either ODBC or JDBC.
--
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
73 matches
Mail list logo