Mark Sargent wrote:
Chris wrote:
I should say check your httpd.conf file for "User" and "Group" - they
are capitalized.
Alternatively:
ps aux | grep httpd
yes, did that one and see it as starting as root, then goijg to daemon.
Now, if I add daemon to the root group, isn't that a security
Chris wrote:
I should say check your httpd.conf file for "User" and "Group" - they
are capitalized.
Alternatively:
ps aux | grep httpd
yes, did that one and see it as starting as root, then goijg to daemon.
Now, if I add daemon to the root group, isn't that a security issue?
Should I create
The PHPEditIni PHP script now supports Linux/Unix. Use this script to edit
your PHP.INI files in a browser based GUI. Visit http://phpeditini.net .
--
The PHP EditIni Project
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$sql = "INSERT INTO
BOOKS(CopyrightYear,CoverType,DatePurchased,EditionNumber,ISBNNumber,Notes,Pages,Publisher,LOCNumber)
VALUES(\"" . $_POST["copyrightyear"] . "\",\"" . $_POST["covertype"] .
"\",\"" . $_POST["datepurchased"] . "\"," . $_POST["editionnumber"] .
",\"" . $_POST["isbn"] . "\",
Mark Sargent wrote:
Jochem Maas wrote:
NO - DONT EVER DO THIS tmp/session files should not be stored in a
directory that
can be [potentially] read via http.
.htaccess directives can be used to block access to the dir BUT I
still would recommend
keeping 'tmp' outside of the web root.
ju
Mark Sargent wrote:
Jochem Maas wrote:
NO - DONT EVER DO THIS tmp/session files should not be stored in a
directory that
can be [potentially] read via http.
.htaccess directives can be used to block access to the dir BUT I
still would recommend
keeping 'tmp' outside of the web root.
ju
Jochem Maas wrote:
NO - DONT EVER DO THIS tmp/session files should not be stored in a
directory that
can be [potentially] read via http.
.htaccess directives can be used to block access to the dir BUT I
still would recommend
keeping 'tmp' outside of the web root.
just make sure 'tmp' is
> -Original Message-
> From: Robert Samuel White [mailto:[EMAIL PROTECTED]
> Sent: 17 May 2006 01:42
> To: php-general@lists.php.net
> Subject: RE: [PHP] Regex Help for URL's [ANSWER]
>
>
> > If we are talking clickable links, why not focus on the construct
> > itself? Otherwise URLs are
> If we are talking clickable links, why not focus on the construct
> itself? Otherwise URLs are just part of the page's textual content... Very
> difficult to parse that
> Disseminating an tag isn't brain-meltingly difficult with a regex if
> you put your mind to it... With or without quotes,
eate a false situation for people... So the answer may not be for
> everyone
>
> Might be wrong :)
>
> Dan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> __ NOD32 1.1542 (20060516) Infor
In my opinion, it is the most reasonable solution. I have looked all over
the web for something else, but this works perfectly for me. It's
impossible to tell where an url starts and ends if you don't have it in
quotes or single quotes. If someone really needs to find all the urls in a
page, the
On Tue, May 16, 2006 4:22 pm, Jochem Maas wrote:
> personally I would assume anyone who had been programming for 20 yrs
> would have a reasonable understanding of regexps.
Nope.
:-)
I got WAY past 20 year mark before I even began to pretend to
understand the minimal amount of regex I can do now.
> -Original Message-
> From: Robert Samuel White [mailto:[EMAIL PROTECTED]
> Sent: 17 May 2006 01:16
> To: php-general@lists.php.net
> Subject: RE: [PHP] Regex Help for URL's [ANSWER]
>
> All pages used by my content management system must be in a valid format.
>
> Old-school style pages
On Tue, May 16, 2006 3:56 pm, John Taylor-Johnston wrote:
> I get a lot of 404 errors. Is there a way in PHP to redirect them in
> such a way as it does not burn my bandwidth? Or (an Apache trick I
> learned once) to discourage them by referring them to localhost? Or
> something? Something I can em
All pages used by my content management system must be in a valid format.
Old-school style pages are never created so the solution I have come up with
is perfect for my needs.
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, May 16, 2006 4:07 pm, D. Dante Lorenso wrote:
> Richard Lynch wrote:
>> On Tue, May 16, 2006 10:34 am, D. Dante Lorenso wrote:
>>
>>> Richard Lynch wrote:
>>>
On Thu, May 11, 2006 6:02 pm, D. Dante Lorenso wrote:
>> pecl install memcache
s it possible that pecl has an --ex
On Tue, May 16, 2006 6:21 pm, Robert Cummings wrote:
> On Tue, 2006-05-16 at 18:49, Robert Samuel White wrote:
>> In case any one is looking for a solution to a similar problem as
>> me, here
> preg_match_all("#(\"|')http://(.*)(\"|')#U", $content, $matches);
And it's missing the original requirem
On Tue, 2006-05-16 at 18:49, Robert Samuel White wrote:
> In case any one is looking for a solution to a similar problem as me, here
> is the answer. I used the code from my original post as my guiding light,
> and with some experimentation, I figured it out.
>
> To get any URL, regardless of whe
In case any one is looking for a solution to a similar problem as me, here
is the answer. I used the code from my original post as my guiding light,
and with some experimentation, I figured it out.
To get any URL, regardless of where it is located, use this:
preg_match_all("#\'http://(.*)\'#U",
preg_match_all('#\[LEVEL([0-9])\](.*)\[/LEVEL[0-9]]#Uim', $arcContent,
> > $tmpMatches);
> >
> > $arcContent = preg_replace('#\[LEVEL([0-9])\](.*)\[/LEVEL[0-9]]#Uim',
> > '###URL###', $arcContent);
> >
>
> --
> PHP General Mailing
Robert Samuel White wrote:
Don't be rude. I've already don't all of that. Nothing came up. I've been
programming for 20 years (since I was 11 years old) so I'm not a slacker
when it comes to learning new things, however, I have always found regular
expressions to be extremely difficult. Someo
I am trying to get all of the urls in a web document, so that I can append
information to the urls when needed (when the url points to a domain that
resides on my server). It allows me to pass session information across the
domains of my network. Currently, I use a class I wrote to handle this, b
John Taylor-Johnston wrote:
I get a lot of 404 errors. Is there a way in PHP to redirect them in
such a way as it does not burn my bandwidth? Or (an Apache trick I
learned once) to discourage them by referring them to localhost? Or
something? Something I can embed in PHP.
IMHO unless there's
Richard Lynch wrote:
On Tue, May 16, 2006 10:34 am, D. Dante Lorenso wrote:
Richard Lynch wrote:
On Thu, May 11, 2006 6:02 pm, D. Dante Lorenso wrote:
> pecl install memcache
s it possible that pecl has an --extension-dir flag to tell it
WHERE
to install stuff, or perhaps an option
Richard Lynch wrote:
On Tue, May 16, 2006 1:41 am, Stut wrote:
it meets your requirements, but bear in mind that an email is not
required to have a text/plain part.
... unless you actually want people to read it.
HTML-only email will get nuked by spam filters and plain-text-only
email readers
Robert Samuel White wrote:
Don't be rude. I've already don't all of that. Nothing came up. I've been
programming for 20 years (since I was 11 years old) so I'm not a slacker
when it comes to learning new things, however, I have always found regular
expressions to be extremely difficult. Someo
I get a lot of 404 errors. Is there a way in PHP to redirect them in
such a way as it does not burn my bandwidth? Or (an Apache trick I
learned once) to discourage them by referring them to localhost? Or
something? Something I can embed in PHP.
John
--
PHP General Mailing List (http://www.php.
On Tue, 2006-05-16 at 16:31, Robert Samuel White wrote:
> Don't be rude. I've already don't all of that. Nothing came up. I've been
> programming for 20 years (since I was 11 years old) so I'm not a slacker
> when it comes to learning new things, however, I have always found regular
> expression
Don't be rude. I've already don't all of that. Nothing came up. I've been
programming for 20 years (since I was 11 years old) so I'm not a slacker
when it comes to learning new things, however, I have always found regular
expressions to be extremely difficult. Someone here might have the answer
Robert Samuel White wrote:
Can someone help me modify the following code?
It was designed to search for all instances of [LEVEL#]...[/LEVEL#]
I need a preg_match_all that will search for all of instances of an URL.
It should be sophisticated enough to find something as complicated as this:
ht
On Tue, May 16, 2006 10:34 am, D. Dante Lorenso wrote:
> Richard Lynch wrote:
>> On Thu, May 11, 2006 6:02 pm, D. Dante Lorenso wrote:
>>
>>> > pecl install memcache
>>>
>> Is it possible that pecl has an --extension-dir flag to tell it
>> WHERE
>> to install stuff, or perhaps an optional comma
On Mon, May 15, 2006 9:15 pm, J. King wrote:
> To further my understanding of how Jabber works I have decided I
> should
> try and write my own XMPP implementation in PHP. However, I've run
> into
> trouble rather quickly.
>
> To connect to a Jabber server, one must open a TCP socket to the
> serv
On Mon, May 15, 2006 10:48 pm, Mike Walsh wrote:
> Is there a way to both display a web page and send content to be saved
> by
> the user?
Not really really, but you can sort of hack it...
> If someone knows of an example I could look at I'd be
> greatful.
Send out the HTML for the stats, and bu
On Tue, May 16, 2006 1:41 am, Stut wrote:
[major snippage]
> it meets your requirements, but bear in mind that an email is not
> required to have a text/plain part.
... unless you actually want people to read it.
HTML-only email will get nuked by spam filters and plain-text-only
email readers.
Sounds to me like your boot scripts are using a different httpd.conf
than the one you are using when you re-start it by hand.
Once you accept that proposition, you're looking at some OTHER issue
in the by-hand httpd.conf that is screwing up the URLs, probably
mod_rewrite or messed up VirtualHosts
On Tue, May 16, 2006 6:27 am, Martin Marques wrote:
> In the first daemon all I have to do to kill it is execute a
> pkill server_name.
>
> But with the new daemon (the object orientaded one) it doesn't die.
After you pkill it, does it still work?
Or is it a zombie?
It's possible PHP's shutdown
On Tue, May 16, 2006 10:48 am, Kevin Davies wrote:
> header ("Refresh: 0;
> URL=cart.php?action=add&id=$reference&c=$cat&p=$page");
> exit;
I don't think this is a "real" header -- just some made-up crapola
from MS that "works" on most browsers, from the bully-pulpit
principle.
You'd have to read
Can someone help me modify the following code?
It was designed to search for all instances of [LEVEL#]...[/LEVEL#]
I need a preg_match_all that will search for all of instances of an URL.
It should be sophisticated enough to find something as complicated as this:
http(s)://x.y.z.domain.com/dir/
Sure if all you are writing is a "hello world" page, but if you are
writing out an application that is more complex, wouldn't the savings
and managability be beneficial enough to justify? ... code reusability
... Don't ya think?
Why is it easier to do something like this:
echo '';
echo '';
This one time, at band camp, Charlene Wroblewski <[EMAIL PROTECTED]> wrote:
> looked at Smarty and it doesn't seem to be as useful the way I'm using
> templates.
I'm not surprised, 1000 lines of code to do "hello world"
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lu
Brian Anderson wrote:
> I am being asked to find some sort of development environment for
> PHP/MySQL, if is exists, in which it has some sort of
> automation/wizzardry. What is being done is a mass of MSAccess
> interfaces, forms, reports, etc. are needing to be re-written in php and
> connected
I have been using template.inc for templates. It works very well so
that I can just work on coding and a designer can make the page look good.
But I noticed that there are several versions (some of which don't seem
to work), and its no longer in the phplib. Is there some reason not to
use it
Hi All,
I'd really appreciate your advice with this one...
I have a cart. Visitors can browse a catalogue, click 'Add to cart', and are
taken to the shopping cart with the new item added...
This is working perfectly for 99.9% of visitors, although 2 separate support
calls have reported they don
Richard Lynch wrote:
On Thu, May 11, 2006 6:02 pm, D. Dante Lorenso wrote:
> pecl install memcache
Is it possible that pecl has an --extension-dir flag to tell it WHERE
to install stuff, or perhaps an optional command line arg or ...
Cuz, really, the odds on it being where you want
On Tue, 16 May 2006, Jad madi wrote:
Martin,
I'm afraid we cannot help you without reading the code, paste it to
phpfi.com and send the url here
now the general answer is, OOP or not OOP it doesn't matter
there is problem in the code whatever and however it's written dude.
Yes (the code is re
Martin,
I'm afraid we cannot help you without reading the code, paste it to
phpfi.com and send the url here
now the general answer is, OOP or not OOP it doesn't matter
there is problem in the code whatever and however it's written dude.
--
PHP General Mailing List (http://www.php.net/)
To unsu
On Tue, 16 May 2006, M. Sokolewicz wrote:
Well, by looking into my cristal ball I think your problem lies at line 12 of
file x.php for sure!! It's probably the I_have_not_seen_any_code_at_all("so I
can't tell you anything about it") function there.
No problem. :-)
I solved it making a second
Thanks.
I will check out the links that you and Peer sent me. Qcodo and Cake
both look like promising alternatives.
I appreciate the help,
-Brian
Miles Thompson wrote:
At 02:01 PM 5/15/2006, Brian Anderson wrote:
Hello,
I am being asked to find some sort of development environment for
Well, by looking into my cristal ball I think your problem lies at line
12 of file x.php for sure!! It's probably the
I_have_not_seen_any_code_at_all("so I can't tell you anything about it")
function there.
goodluck!
- tul
Martin Marques wrote:
I've been using PHP for a while with a daemon I
On May 15, 2006, at 7:53 PM, Richard Lynch wrote:
You can't do that.
Yeah I can, sorta. Well not really as I'm having to pass a reference
to the class object around. But that works.
The whold class has to be in a single contiguous file.
Last I checked.
To be able to use $this-> in th
On Mon, 15 May 2006, J. King wrote:
To further my understanding of how Jabber works I have decided I should try
and write my own XMPP implementation in PHP. However, I've run into trouble
rather quickly.
To connect to a Jabber server, one must open a TCP socket to the server
(typically thro
I've been using PHP for a while with a daemon I made a few years ago,
which is in use, working great. I used the example that's in the docs:
http://www.php.net/manual/en/ref.sockets.php
A few months ago I started to make a new daemon for other purposes, and I
decided to build some objects to m
""Rabin Vincent"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On 5/16/06, Mike Walsh <[EMAIL PROTECTED]> wrote:
[ ... snipped ... ]
>
> Is there a way to both display a web page and send content to be saved by
> the user? If someone knows of an example I could look at I'd be gr
nicolas figaro wrote:
...
try to set it to a subdirectory of your DocumentRoot. (check httpd.conf
for the DocumentRoot).
(/www/root/default_vhost/tmp for example, if /www/root/default_vhost is
your DocumentRoot).
NO - DONT EVER DO THIS tmp/session files should not be stored in a
directo
Mark Sargent a écrit :
Hi All,
I get this,
Not Found
The requested URL /movie1.php was not found on this server.
Apache/2.2.0 (Fedora) Server at localhost Port 80
when setting session.save_path to /tmp in /usr/local/l
Hello,
I am looking for an implemantion of FIT (Framework for Integrated Test) for
PHP.
http://fit.c2.com/
https://sourceforge.net/projects/fitlibrary/
Now I am thinking about implementing it myself. But before I want to know if
anybody is already working on such an implementation or has heart
Hi All,
I get this,
Not Found
The requested URL /movie1.php was not found on this server.
Apache/2.2.0 (Fedora) Server at localhost Port 80
when setting session.save_path to /tmp in /usr/local/lib/php.ini.
Even if I ch
Mike Walsh schrieb:
I have an application which I am working on which takes a file supplied by
the user via a File Upload, peforms some processing on it, then prompts the
user to download a generated CSV file. What I would like to do is report
some processing statistics prior to the user prior
Rob Richards wrote:
> Riku Palomäki wrote:
>> Hello,
>>
>> I'm having problems with DOMElement->setAttribute() -method with my php
>> script. I stripped down the code to this:
>>
>> --
>> $doc = new DOMDocument();
>> $doc->resolveExternals = true;
>> $doc->loadXml('> "http://www
59 matches
Mail list logo