hi
some thoughts on session cookies...
when setting the domain for the cookie, u could use
$_SERVER['HTTP_HOST'] which would be 'example.com' or
'www.example.com' i.e.
session_set_cookie_params(30*60, '/', $_SERVER['HTTP_HOST'], false);
(assuming u don't want to set it for subdomains)
if the webse
Andy Pieters wrote:
>
> Err.. why NOT use character classes? What is easier [0-9] or \d or maybe
> [a-zA-Z] or [\w], ... ?
>
Well, first of all the square brackets in [\w] aren't needed, \w already
means 'any "word" character'.
Secondly, [a-zA-Z] is not the same as \w:
" A "word" character i
> > Here is the php I've created, fairly simple:
> > > exec("/var/www/html/myprog -E 123456789098.dat sample1.txt
> > sample1.new");
> > phpinfo();
> > ?>
> > From the command line it runs perfectly
A PHP script runs with the permissions of the user that Apache
runs as, usually "nobody". When
Thanks all for your contributions. Seems like the missing link was the
delimiter.
On Thursday 24 November 2005 18:23, Frank Armitage wrote:
>
> And why do you use all those character
> classes?
>
Err.. why NOT use character classes? What is easier [0-9] or \d or maybe
[a-zA-Z] or [\w], ... ?
Hi List
When I what to build PHP5 in Win32:
Where is the "utypes.h" .
===
C:\work\php5\win32>msdev php4ts.dsp /MAKE "php4ts - Win32 Debug_TS"
php4ts.dsp
File not found.
Please verify that the path and file name are correct.
Error: no projec
Are there any great examples/tutorials of building advanced ASX
files with PHP ?
I have built a lot of playlists with Quicktime/ PHP/MYSQL...but I am
a windows media noob
any resources and/or examples are appreciated :)
g
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
Kristen G. Thorson wrote:
I am a regex retard.
good for you ;-)
why not take the easy route and simply strip out all HTML comments
(and whatever maybe inside them) from the string(s) before you do the
search for the 'bbcode'?
I am trying to pull keywords out of this crazy bbcode-like file, b
Andy Pieters wrote:
Hi list
I still fail to understand why regular expressions are causing me such a hard
time.
er, because they are hard? hey you failed! we have a club :-)
I used and tested my regexp in kregexpeditor (comes with Quanta [kdewebdev])
but when I put it in the php script it
Andy Pieters wrote:
> Hi list
>
> I still fail to understand why regular expressions are causing me such a hard
> time.
>
>
Hi!
Why don't you use 'preg_match'? And why do you use all those character
classes?
This:
$subject = 'Nov 22 06:51:36';
$pattern = '/^(\w{3})\s(\d{2}
Andy,
Try preg_match instead of ereg.
Cheers,
David Grant
Andy Pieters wrote:
> Hi list
>
> I still fail to understand why regular expressions are causing me such a hard
> time.
>
> I used and tested my regexp in kregexpeditor (comes with Quanta [kdewebdev])
> but when I put it in the php s
Hi list
I still fail to understand why regular expressions are causing me such a hard
time.
I used and tested my regexp in kregexpeditor (comes with Quanta [kdewebdev])
but when I put it in the php script it fails.
ereg('^([\w]{3,3})[\s]([\d]{2,2})[\s]([\d]{2,2})[:]([\d]{2,2})[:]([\d]{2,2})'
On 24 November 2005 10:24, Gregory Machin wrote:
> I have a test script..
> What i'm trying to achieve is once the user has clicked on
> link1 the value
> of item must equal x and if the user clicks on link2 the
> value of items must
> stay equal to x while setting action equal to y ..
>
> sess
lookbehind assertion require fixed length string as its parameter.
but you intend to put arbitary length string between `)/U'
>
> Which matches
>
> [!keyword::crazy bbcode!]
>
> and not
>
>
>
> That's a step in the right direction. But it includes in the match
> keywords within phrases like this:
Gregory
Gregory Machin wrote:
> My test code is for test.php which is intended to call it's self, and
> starts with sesstion_start().
> buy does not disply x after link2 is clicked on, but only y..
>
> what am I missing ?
"x" wouldn't display because it depends on $_GET['item'] being set,
which
My test code is for test.php which is intended to call it's self, and starts
with sesstion_start().
buy does not disply x after link2 is clicked on, but only y..
what am I missing ?
Thanks
On 11/24/05, David Grant <[EMAIL PROTECTED]> wrote:
>
> Gregory,
>
> Values in the $_SESSION superglobal wil
Gregory,
Values in the $_SESSION superglobal will persist over pages so long as
session_start() is called on each page.
Cheers,
David Grant
Gregory Machin wrote:
> I have a test script..
> What i'm trying to achieve is once the user has clicked on link1 the
> value of item must equal x and if
I have a test script..
What i'm trying to achieve is once the user has clicked on link1 the value
of item must equal x and if the user clicks on link2 the value of items must
stay equal to x while setting action equal to y ..
link1
link2
thanks
On 11/24/05, David Grant <[EMAIL PROTECTED]> wrot
Hi Richard,
Please ensure that the "allow_url_fopen" directive is set to "On" in
your php.ini file.
Cheers,
David Grant
Richard K. Miller wrote:
> I compiled PHP from source on Fedora Core 4, but I must have left
> something out because readfile and get_file_contents aren't working. If
> I try
Gregory,
Are you always setting $_SESSION['menu'] to the contents of
$_GET['menu']? If so, the second link will set $_SESSION['menu'] to
null. You need to check the contents of $_GET['menu'] first before
setting, i.e.
if (isset($_GET['menu']))
$_SESSION['menu'] = $_GET['menu'];
Cheers,
Da
Try verifying the following:
- does the web server user (apache/nobody) have a shell?
- can the web server user/group execute the file? (x permission)
I believe this is your problem, the exec option for the apache would be
useful if you need to run an executable from the apache service, not from
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 <[EMAIL PROTECTED]> wrote:
> Hi
> Still desp
21 matches
Mail list logo