|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 25 Nov 2005 21:22:01 -0000 Issue 3815
php-general-digest-help
lists.php.net
Date: Fri Nov 25 2005 - 15:22:01 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 25 Nov 2005 21:22:01 -0000 Issue 3815
Topics (messages 226421 through 226430):
Re: Can't execute external program
226421 by: n.g.
What is <?=
226422 by: Wolf
226423 by: David Grant
226424 by: Al Hafoudh
226425 by: Jochem Maas
226426 by: David Grant
php scripts that communicated with Windows Media Server
226427 by: Graham Anderson
Passing objects between pages
226428 by: Matt Monaco
Any performance experiences to offer?
226429 by: Tim Meader
array woes
226430 by: blackwater dev
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
or `sample1.new' was created in some other directory, for exampe, the
cwd of apache server process.
do a search to find it , or use full path in your commandh line.
On 11/25/05, n.g. <nyvsld
gmail.com> wrote:
> sorry , i have made mistake.
>
> `option +exec' is not required, and there is no such apache option.
>
> maybe you're running php in safe_mode ?
>
>
> On 11/24/05, n.g. <nyvsld
gmail.com> wrote:
> > put the executable into another directory rather than DOC_ROOT,
> > maybe you have reached apache security settings.
> > or try add `option +exec' to your apache conf, but be aware this maybe
> > a security problem to your site to do so.
> >
> > On 11/24/05, Henry Castillo <henryperu
gmail.com> wrote:
> > > Hi
> > > Still desperate
> > > DOCUMENT_ROOT is /var/www/html
> > > Check all settings at http://provi.voicenetworx.net:8080/t.php
> > > From the command line it runs perfectly:
> > > [root
hnick html]# /var/www/html/myprog -E 123456789098.dat sample1.txt
> > > sample1.new
> > > (no output, it just creates the file .new)
> > >
> > > Here is the php I've created, fairly simple:
> > > <?php
> > > exec("/var/www/html/myprog -E 123456789098.dat sample1.txt
> > > sample1.new");
> > > phpinfo();
> > > ?>
> > >
> > >
> > >
> > > On 11/22/05, n.g. <nyvsld
gmail.com> wrote:
> > > >
> > > > is /var/www/html your web root dir ?
> > > > maybe its the plobrem.
> > > >
> > > > On 11/23/05, Henry Castillo <henryperu
gmail.com> wrote:
> > > > > That was on of the first things I checked:
> > > > > safe mode is set to off
> > > > > Any ideas...
> > > > > Henry
> > > > > Voip tech said the following on 11/20/2005 10:31 PM:
> > > > > > Hello,
> > > > > > I cannot get exec(), system() or passthru() to run an extenal
> > > program.
> > > > > > From the command line it runs perfectly:
> > > > >
> > > > > <snip>
> > > > >
> > > > > > I'm getting frustrated, Any help will be deeply appreciated
> > > > > > Henry
> > > > >
> > > > > The answer is probably in your php.ini. Look into whether you are
> > > > > running in safe mode or not, and if you are whether you have your
> > > > > program in the safe_mode_exec_dir or not. Also check
> > disable_functions
> > > > > to see if any of the ones you are having trouble with are listed.
> > > > >
> > > > > - Ben
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Tomorrow will be a good day :-)
> > > >
> > >
> > >
> >
> >
> > --
> > Tomorrow will be a good day :-)
> >
>
>
> --
> Tomorrow will be a good day :-)
>
--
Tomorrow will be a good day :-)
attached mail follows:
I have some scripts that I downloaded and am trying to make compliant
with my server. They have <?= placed throughout and I am not sure what
they are and how to fix them at this point.
Stupid question, I know, but...
Thanks,
Robert
attached mail follows:
Robert,
<?= is short for <?php echo
Cheers,
David Grant
Wolf wrote:
> I have some scripts that I downloaded and am trying to make compliant
> with my server. They have <?= placed throughout and I am not sure what
> they are and how to fix them at this point.
>
> Stupid question, I know, but...
>
> Thanks,
> Robert
>
attached mail follows:
Its same as <? echo .... ?> or <?php echo ... ?>
Wolf wrote:
>I have some scripts that I downloaded and am trying to make compliant
>with my server. They have <?= placed throughout and I am not sure what
>they are and how to fix them at this point.
>
>Stupid question, I know, but...
>
>Thanks,
>Robert
>
>
>
attached mail follows:
Wolf wrote:
> I have some scripts that I downloaded and am trying to make compliant
> with my server. They have <?= placed throughout and I am not sure what
> they are and how to fix them at this point.
>
> Stupid question, I know, but...
not stupid, although a 'google' might have helped, regardless you have
already had the answer.
I find it funny that you say 'fix them' - one of the things [some of] the core
developers are looking to get rid of is this shorthand syntax
(according to posts on internals
lists.php.net) ... something
to do with XML compatibility ... for now its valid php syntax though :-).
>
> Thanks,
> Robert
>
attached mail follows:
<? is how XML specifies a processing instruction for the XML parser, for
example:
<?xml version="1.0"?>
Tells the parser that the XML it is parsing is version 1.
Jochem Maas wrote:
> Wolf wrote:
>> I have some scripts that I downloaded and am trying to make compliant
>> with my server. They have <?= placed throughout and I am not sure what
>> they are and how to fix them at this point.
>>
>> Stupid question, I know, but...
>
> not stupid, although a 'google' might have helped, regardless you have
> already had the answer.
>
> I find it funny that you say 'fix them' - one of the things [some of]
> the core
> developers are looking to get rid of is this shorthand syntax
> (according to posts on internals
lists.php.net) ... something
> to do with XML compatibility ... for now its valid php syntax though :-).
>
>>
>> Thanks,
>> Robert
>>
>
attached mail follows:
Does anyone know if there are any repositories of php scripts that
communicate with Windows Media Server...
I am looking for stuff like getting the number of connected users,
and etc
I have seen perl scripts that do this...but not php
anyone know ?
g
attached mail follows:
What is the best way to pass an object between pages? Currently I am
first
serializing, then doing a base64_encode, this doesn't seem entirely
efficient. (Especially the encode).
I am however using the encode because I have the serialized object as the
value of a hidden form element. I can only have alphanumerics here.
attached mail follows:
Are there any benchmarks that people are aware of comparing
PHP4|PHP5|PHP5.1 as far as performance is concerned? I mean, it's easy
to say that performance is improved... but what's the baseline?
Was PHP5 faster than PHP4 for identical code? Thus making PHP5.1 even
faster? Or was it a case of PHP5 being a bit more bulky than PHP4, thus
PHP5.1 bringing it more inline with the old performance. I'm looking to
upgrade of PHP 4.4.1 installs, but I'm holding off on PHP5.1 until
eaccelerator (open source PHP accelerator) becomes compatible. As it is,
PHP5.0.5 is the last supported version. But if 5.0.5 is slower than
4.4.1, I'll hold off.
Thanks in advance.
attached mail follows:
Hello all,
I have some array code driving me nuts.
I am pulling from a db:
select id, vehicle, has_quotes from cars where active=1
I then loop through these and build an array that contains the id's and cars.
while($res){
$cars[$res[id]]=$res[vehicle];
//here is the problem, when has_quotes is 1, I call another function
to grab the quotes
if ($res[has_quotes]>1){
$cars[$res[id]]=grabQuotes($res[id]);
}
}
The grabQuotes function returns an array and works fine. THe problem
is when I go to display these, I cycle through the car array printing
id and vehicle name. I do a check so if vehicle name is an array, I
print out the quotes from the inner array, problem is I have lost the
vehicle name! How can I fix this?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]