i need to parse an html page for tabular data which i can then import
into mysql so i thought converting the html to xml might be a feasible
thing to do, however, other than using tidy from the command line i
can't find a way to do this from php.
does anyone know of any class (or other) that w
Thanks heavyccasey
Im not sure which comment you are referring to, perhaps this one? There
are many posts.
||
[EMAIL PROTECTED] wrote:
Look up readfile();
Make sure you read the comments.
On 9/11/07, Angelo Zanetti <[EMAIL PROTECTED]> wrote:
Hi guys.
I am linking to a file on a WA
Slith wrote:
> i need to parse an html page for tabular data which i can then import
> into mysql so i thought converting the html to xml might be a feasible
> thing to do, however, other than using tidy from the command line i
> can't find a way to do this from php.
>
> does anyone know of any c
Dear all,
I hope you can help me. I am running FreeBSD 6.2 and I decided to
upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4
and installing php5 and php5-extensions I am unable to start apache.
php -v:
PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 12 2007 08:59:52)
> Slith wrote:
>
> > i need to parse an html page for tabular data which i can then import
> > into mysql so i thought converting the html to xml might be a feasible
> > thing to do, however, other than using tidy from the command line i
> > can't find a way to do this from php.
> >
> > does any
> Dear all,
>
> I hope you can help me. I am running FreeBSD 6.2 and I decided to
> upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4
> and installing php5 and php5-extensions I am unable to start apache.
What do the Apache error logs say?
Edward
--
PHP General Mailing Li
Hello,
2007/9/12, Edward Kay <[EMAIL PROTECTED]>:
>
> > Dear all,
> >
> > I hope you can help me. I am running FreeBSD 6.2 and I decided to
> > upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4
> > and installing php5 and php5-extensions I am unable to start apache.
>
> What d
Zbigniew Szalbot wrote:
> Hello,
>
> 2007/9/12, Edward Kay <[EMAIL PROTECTED]>:
>>
>> What do the Apache error logs say?
>
> Nothing that would be of help:
>
> httpd-error.log
> [Wed Sep 12 09:04:17 2007] [notice] mod_security/1.9.4 configured
>
> A new such line is added when I try to start a
Hi there,
2007/9/12, Per Jessen <[EMAIL PROTECTED]>:
> Zbigniew Szalbot wrote:
>
> > Hello,
> >
> > 2007/9/12, Edward Kay <[EMAIL PROTECTED]>:
> >>
> >> What do the Apache error logs say?
> >
> > Nothing that would be of help:
> >
> > httpd-error.log
> > [Wed Sep 12 09:04:17 2007] [notice] mod_sec
Zbigniew Szalbot wrote:
> No, basically I just use wordpress on this site and that's all. No
> fancy or advanced scripting, etc. It is family machine for family
> issues. I can try and go back to v4 but I do think v5 should work just
> as fine. At least I hope so.
Hi Zbigniew
Maybe it's worth do
Zbigniew Szalbot wrote:
Hi there,
No, basically I just use wordpress on this site and that's all. No
fancy or advanced scripting, etc. It is family machine for family
issues. I can try and go back to v4 but I do think v5 should work just
as fine. At least I hope so.
Does phpinfo work? What doe
Per Jessen wrote:
Zbigniew Szalbot wrote:
No, basically I just use wordpress on this site and that's all. No
fancy or advanced scripting, etc. It is family machine for family
issues. I can try and go back to v4 but I do think v5 should work just
as fine. At least I hope so.
Hi Zbigniew
Maybe
Dear my friends...
I am trying to display the content of a table. Each page must content only 5
records maximum. Each page has "Previous" and "Next" buttons (made from anchor).
I dump the primary of the working table and keep it in a cookie. So than the
paging task work with the index of cookie
Stut wrote:
>> Hi Zbigniew
>>
>> Maybe it's worth doing some googling for wordpress and php5? If it's
>> not your code, it's not easy to debug. I have seen the apache core
>> dump many times, sometimes caused by obvious errors, other times by
>> something obscure and difficult to find.
>
> Com
On 9/12/07, Per Jessen <[EMAIL PROTECTED]> wrote:
> Migrating from v4 to v5 is not necessarily straight forward.
> Depending on what features you've used, you may have to rewrite some of
> your code. For instance, we used the xslt sablotron interface, which
> no longer exists in php5. Had to rewr
[snip]
Anyway, I think it's exceptionally poor show by php to cause a segfault,
probably due to user code. I know it does it every now and then, and
nobody has ever been interested in looking at the core dump.
[/snip]
The Dev team looks at core dumps all of the time to try to figure out
bugs and
On 9/12/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On 9/12/07, Per Jessen <[EMAIL PROTECTED]> wrote:
> > Migrating from v4 to v5 is not necessarily straight forward.
> > Depending on what features you've used, you may have to rewrite some of
> > your code. For instance, we used the xslt sablotr
Per Jessen wrote:
Uh, how do know you it's do with the version-number?? Did I miss that
posting?
Not necessarily to do with the version number itself - it's that PHP is
dying before having actually done anything - it never gets to any PHP code.
From the first post - the last line of what
Per Jessen wrote:
Stut wrote:
Hi Zbigniew
Maybe it's worth doing some googling for wordpress and php5? If it's
not your code, it's not easy to debug. I have seen the apache core
dump many times, sometimes caused by obvious errors, other times by
something obscure and difficult to find.
Come
Jon Anderson wrote:
If the version of PHP you're using is a binary package, you should
probably generate a backtrace from the core that was dumped and report
it as a bug to the provider of that binary. The same goes if it was
built as a FreeBSD port - they should probably know that their defaul
I have the same problem with PHP-5.2.3 on my freebsd 6.2. After commenting
recode, sockets, ming, sysvshm modules, there were no more core dumps. So,
you have to comment the sockets modules in extension.ini and everything will
work fine.
Ave,
Is it true that the PHP Installer does not work on Windows Vista? And if it
does, it only installs the CGI version?
~~~
Rahul Sitaram Johari
CEO, Twenty Four Seventy Nine Inc.
W: http://www.rahulsjohari.com
E: [EMAIL PROTECTED]
³I morti non sono piu sol
Per Jessen wrote:
Maybe it's worth doing some googling for wordpress and php5? If it's
not your code, it's not easy to debug. I have seen the apache core
dump many times, sometimes caused by obvious errors, other times by
something obscure and difficult to find.
Come on guys, use your heads. P
Rahul Sitaram Johari wrote:
Ave,
Is it true that the PHP Installer does not work on Windows Vista? And if it
does, it only installs the CGI version?
~~~
Rahul Sitaram Johari
CEO, Twenty Four Seventy Nine Inc.
W: http://www.rahulsjohari.com
E: [EMAIL PROTECTE
On 9/12/07 10:56 AM, "M. Sokolewicz" <[EMAIL PROTECTED]> wrote:
> Did you try it? Easiest way to find out...
I installed - it didn't give me any errors - but PHP is not working. Apache
starts without any errors either. The thing is, I can easily remove the
installation and install PHP manually
On Tue, 11 Sep 2007, Tom Ray [Lists] wrote:
> > Has anyone tried Nginx? The rewrite rules are a bit more clear than
> > those of the Apache mod_rewrite variety.
> >
> > http://wiki.codemongers.com/NginxHttpRewriteModule
> >
> But is it the greatest weapon system of our time? If its not then it's n
Daniel Brown wrote:
> On 9/12/07, Per Jessen <[EMAIL PROTECTED]> wrote:
>> Migrating from v4 to v5 is not necessarily straight forward.
>> Depending on what features you've used, you may have to rewrite some
>> of
>> your code. For instance, we used the xslt sablotron interface, which
>> no longe
Lester Caine wrote:
>> Anyway, I think it's exceptionally poor show by php to cause a
>> segfault,
>> probably due to user code. I know it does it every now and then, and
>> nobody has ever been interested in looking at the core dump.
>
> Zbigniew has not actually managed to get Apache started w
On 9/12/07, Per Jessen <[EMAIL PROTECTED]> wrote:
> Sorry, I have to disagree strongly here. I have seen apache core dump
> many times due to PHP user code. I've also opened bug-reports based on
> such core-dumps, but the PHP developer community is not
> interested/capable in debugging in that fa
Stut wrote:
>> Anyway, I think it's exceptionally poor show by php to cause a
>> segfault, probably due to user code. I know it does it every now and
>> then, and nobody has ever been interested in looking at the core
>> dump.
>
> This will have nothing to do with user code since no user code is
Jay Blanchard wrote:
> [snip]
> Anyway, I think it's exceptionally poor show by php to cause a
> segfault,
> probably due to user code. I know it does it every now and then, and
> nobody has ever been interested in looking at the core dump.
> [/snip]
>
> The Dev team looks at core dumps all of t
[snip]
> [snip]
> Anyway, I think it's exceptionally poor show by php to cause a
> segfault,
> probably due to user code. I know it does it every now and then, and
> nobody has ever been interested in looking at the core dump.
> [/snip]
>
> The Dev team looks at core dumps all of the time to try
Patrik Hasibuan wrote:
Dear my friends...
I am trying to display the content of a table. Each page must content
only 5 records maximum. Each page has "Previous" and "Next" buttons
(made from anchor).
I dump the primary of the working table and keep it in a cookie. So
than the paging task work w
I've searched of 21000 messages in this list and I don't quite understand how
to best protect user input.
Let's say you have a form that posts to itself just do see how messed up data
can get:
>>
if(get_magic_quotes_gpc()) {
$_POST=array_map('stripslashes',$_POST);
}
$_PO
Dear all,
2007/9/12, Lester Caine <[EMAIL PROTECTED]>:
> Per Jessen wrote:
> >>> Maybe it's worth doing some googling for wordpress and php5? If it's
> >>> not your code, it's not easy to debug. I have seen the apache core
> >>> dump many times, sometimes caused by obvious errors, other times by
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> There's only one problem left to be solved. After the upgrade php
> scripts behave as if they were not recognized. I made a test and put a
> standard index.html file in a directory, called a browser and the page
> was displayed properly. I t
On 9/12/07, Slith <[EMAIL PROTECTED]> wrote:
> i need to parse an html page for tabular data which i can then import
> into mysql so i thought converting the html to xml might be a feasible
> thing to do, however, other than using tidy from the command line i
> can't find a way to do this from php.
2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > There's only one problem left to be solved. After the upgrade php
> > scripts behave as if they were not recognized. I made a test and put a
> > standard index.html file in a directory, called
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > > There's only one problem left to be solved. After the upgrade php
> > > scripts behave as if they were not recognized. I made a te
Hello,
2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > > > There's only one problem left to be solved. After the upgrade php
> >
On 9/12/07, Patrik Hasibuan <[EMAIL PROTECTED]> wrote:
> Dear my friends...
>
> I am trying to display the content of a table. Each page must content only 5
> records maximum. Each page has "Previous" and "Next" buttons (made from
> anchor).
>
> I dump the primary of the working table and keep it
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> Hello,
>
> 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > > > >
On 9/12/07, Eric Wood <[EMAIL PROTECTED]> wrote:
> I've searched of 21000 messages in this list and I don't quite understand how
> to best protect user input.
>
> Let's say you have a form that posts to itself just do see how messed up data
> can get:
http://php.net/filter has great easy to use
can i ask why you have anything to do with mod_php3 there?
and if you don't plan on trying to use php4 and php5, then remove any
looking for php4 too.
> >
> >
> >
> > DirectoryIndex index.php index.php3 index.html
> >
> >
> > DirectoryIndex
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> Hello,
>
> 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > > > >
Hello again,
2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > >
> > > >
> > > >
> > > > DirectoryIndex index.php index.php3 index.html
> > > >
> > > >
> > > > DirectoryIndex index.php index.php3 index.html
> > > >
> > > >
Hi all,
In PHP 5, I'm counting the number of lines in a text file using the
following code:
$myfile = file ( '/path/to/myfile.txt');
$count = count ($myfile);
However, sometimes it fails with the following error:
PHP Fatal error: Allowed memory size of bytes exhaus
$command= escapeshellcmd("cat {$file} | wc -l");
// Run command and capture results
$count = exec($command);
"Frank J. Schima" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
> In PHP 5, I'm counting the number of lines in a text file using the
> following code:
> $myfil
On 9/12/07, Frank J. Schima <[EMAIL PROTECTED]> wrote:
> In PHP 5, I'm counting the number of lines in a text file using the
> following code:
> $myfile = file ( '/path/to/myfile.txt');
> $count = count ($myfile);
>
> However, sometimes it fails with the following error:
>
On 9/12/07, Wolf <[EMAIL PROTECTED]> wrote:
>
> $command= escapeshellcmd("cat {$file} | wc -l");
> // Run command and capture results
> $count = exec($command);
that would work on *nix, but not windows.
"Frank J. Schima" <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> >
> > In PHP
On Sep 12, 2007, at 1:46 PM, Nathan Nobbe wrote:
On 9/12/07, Wolf <[EMAIL PROTECTED]> wrote:
$command= escapeshellcmd("cat {$file} | wc -l");
// Run command and capture results
$count = exec($command);
that would work on *nix, but not windows.
Since I am developing and deploying
We all know REAL servers are *nix...
:)
And his path is *nix based...
:)
Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On 9/12/07, Wolf <[EMAIL PROTECTED]> wrote:
> >
> > $command= escapeshellcmd("cat {$file} | wc -l");
> > // Run command and capture results
> > $count = exec($com
hey...
if you're going to do the system approach, go ahead and use awk/cut...
wc -l foo.txt | awk -F' ' '{print $1}'
should work assuming you're on linux.
-Original Message-
From: mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 12, 2007 12:46 PM
To: Frank J. Schima
Cc: p
Novel approach... But mine's less typing. :)
never thought of using awk for it though. Good one! :)
bruce <[EMAIL PROTECTED]> wrote:
> hey...
>
> if you're going to do the system approach, go ahead and use awk/cut...
>
> wc -l foo.txt | awk -F' ' '{print $1}'
>
> should work assuming
personally i try to use as little shell commands as possible,
especially stacked on top of each other in exec().
i'd just use explode, str_split, substr/strpos, etc. after i got it back.
On 9/12/07, Wolf <[EMAIL PROTECTED]> wrote:
> Novel approach... But mine's less typing. :)
>
> never thought
Frank J. Schima wrote:
> In PHP 5, I'm counting the number of lines in a text file using the
> following code:
> $myfile = file ( '/path/to/myfile.txt');
> $count = count ($myfile);
>
> However, sometimes it fails with the following error:
> PHP Fatal error: Allowed memory size of bytes exh
Hello,
2007/9/12, Zbigniew Szalbot <[EMAIL PROTECTED]>:
> Hello again,
>
> 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > > >
> > > > >
> > > > >
> > > > > DirectoryIndex index.php index.php3 index.html
> > > > >
> > > > >
> > > > > Dire
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> Hello,
>
> 2007/9/12, Zbigniew Szalbot <[EMAIL PROTECTED]>:
> > Hello again,
> >
> > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > > > >
> > > > > >
> > > > > >
> > > > > > DirectoryIndex index.php index.php3
Hi Gang,
On Sep 12, 2007, at 1:58 PM, bruce wrote:
if you're going to do the system approach, go ahead and use awk/cut...
wc -l foo.txt | awk -F' ' '{print $1}'
should work assuming you're on linux.
I have solved the problem with this approach. Thanks for all the
suggestions.
FYI,
Frank J. Schima wrote:
Hi all,
In PHP 5, I'm counting the number of lines in a text file using the
following code:
$myfile = file ( '/path/to/myfile.txt');
$count = count ($myfile);
However, sometimes it fails with the following error:
PHP Fatal error: Allowed memory size of
Dear Daniel and all!
2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > DirectoryIndex index.php index.php3 index.html
> > > > > > >
> > > > > > >
> > > > > > > DirectoryIndex index.php index
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> Dear Daniel and all!
>
> 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > DirectoryIndex index.php index.php3 index.html
> > > > > > > >
> > > >
Hello,
2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> No problem at all.
Your help was very much appreciated!
>
> Now my guess at explaining it
>
> Notice how `IfModule mod_php5.c` if only mentioned when nested
> inside of the `IfModule mod_php3.c` container. If you want to have
Zbigniew Szalbot wrote:
> It is clearly problem with indexes but how and where that is an issue
> for me. there is a solution which I could live with. That is I can
> create an index.html page which will simply redirect to index.php and
> so index-wise everything will work but I would really prefe
Jay Blanchard wrote:
>> Whenever I've reported a core-dump (which I've stopped doing),
>> nothing's been done about it unless I've been able to produce a short
>> script to reproduce.
>> [/snip]
>
> That is to be expected and is standard operating procedure for any
> development team.
I beg to
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> Hello,
>
> 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > No problem at all.
>
> Your help was very much appreciated!
>
> >
> > Now my guess at explaining it
> >
> > Notice how `IfModule mod_php5.c` if only mentioned when n
Zbigniew Szalbot wrote:
> Problem solved! Daniel - this really helped. I do not even know how to
> thank you but surely, this is amazing. This thing actually works! :)
Amazing indeed. PHP does good work for me, but I'm not impressed.
/Per Jessen, Zürich
--
PHP General Mailing List (http://ww
On 9/12/07, Greg Donald <[EMAIL PROTECTED]> wrote:
> Why? Shell commands are a lot less likely to change than the
> current PHP function names.
>
> I'm aware the PHP function naming algorithm currently remains a
> secret, but without a doubt, someday someone _will_ crack it. I
> personally hope t
On Wed, 12 Sep 2007, mike wrote:
> personally i try to use as little shell commands as possible,
> especially stacked on top of each other in exec().
Why? Shell commands are a lot less likely to change than the
current PHP function names.
I'm aware the PHP function naming algorithm currently rem
Per Jessen wrote:
Stut wrote:
Anyway, I think it's exceptionally poor show by php to cause a
segfault, probably due to user code. I know it does it every now and
then, and nobody has ever been interested in looking at the core
dump.
This will have nothing to do with user code since no user co
Hey guys,
Actually I'm still looking for a way to block for example the exec()
function without throwing an error!
Since there seems to be no way to do this, without hacking the code of
php, it seems like that is what I'll have to do...
Do you people think it would be a good way to just look
greg...
while you are correct in your assertion that the shell cmds provided are
specific to linux, your assertion/statement that the functions might be 'turned
off' are fud... basic bash functions are inherently part of the shell
and yes, you are correct in your statement that php is relat
bruce wrote:
greg...
while you are correct in your assertion that the shell cmds provided are
specific to linux, your assertion/statement that the functions might be 'turned
off' are fud... basic bash functions are inherently part of the shell
Sure they can - enable safe-mode and it caus
Samuel Vogel wrote:
Hey guys,
Actually I'm still looking for a way to block for example the exec()
function without throwing an error!
Since there seems to be no way to do this, without hacking the code of
php, it seems like that is what I'll have to do...
Why do you have to do this and not
We are running Novell SUSE Linux Enterprise Server 10 sp1. It has php
5.1.2. We are using a standard out of the box install, and for some
reason the hash functions only work using the cli interface, and fails
to work with apache giving the following error:
PHP Fatal error: Call to undefined fun
i dont know why you wouldnt just use the
disable_functions directive in php.ini
disable_functions = "exec"
this will indeed raise an error, well a warning rather, from my test
[12-Sep-2007 19:22:24] PHP Warning: exec() has been disabled for security
reasons
but i always suppress warnings and er
On 9/12/07, Chris <[EMAIL PROTECTED]> wrote:
> bruce wrote:
> > greg...
actually, i was the one that said this.
> Sure they can - enable safe-mode and it causes all sorts of weirdness
> with running exec or system calls.
not to mention shell commands expect to be in PATH, and if you
hardcode in
Aaron Axelsen wrote:
> We are running Novell SUSE Linux Enterprise Server 10 sp1. It has php
> 5.1.2. We are using a standard out of the box install, and for some
> reason the hash functions only work using the cli interface, and fails
> to work with apache giving the following error:
>
> PHP F
78 matches
Mail list logo