php-general Digest 12 May 2008 07:02:40 - Issue 5454
Topics (messages 274155 through 274171):
creating an xls file from mysql data
274155 by: Richard Kurth
274156 by: Andrew Johnstone
Re: How to determine if file is writable and deletable
274157 by: Al
What's the best way to pull down XML from a URL? fopen($URL), then
using xml_parse? Or should I be using XML_Parser or SimpleXML?
Thanks,
Waynn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
The host name is localhost, username: root, and the password is blank .
If you have selected the option to allow anonymous login during installation
you can even give the user name and password dboth blank. It will log you in
as an anonymous user.
Chetan Dattaram Rane
Software Engineer
2008/5/12 Waynn Lue [EMAIL PROTECTED]:
What's the best way to pull down XML from a URL? fopen($URL), then
using xml_parse? Or should I be using XML_Parser or SimpleXML?
XML parsers fall into two general camps - DOM and SAX. DOM parsers
represent an entire XML document as a tree, in-memory,
tedd wrote:
Hi gang:
This is what I did this morning:
http://webbytedd.com/bb/tribute/
It speaks for itself.
Cheers,
tedd
tedd,
Nothing to do with the subject matter, but I noticed because it is one of your
more simple pages: I get a JS urchinTracker() not defined error on your site,
Hello,
I've got a very simple PHP script that mails me a contact form of a website.
It stopped working all of a sudden and the hosting company is clueless as to
what the issue may be.
The PHP script basically picks up the input fields on the form, builds an
e-mail message and then sends it
On 12 May 2008, at 09:39, Peter Ford wrote:
tedd wrote:
Hi gang:
This is what I did this morning:
http://webbytedd.com/bb/tribute/
It speaks for itself.
Cheers,
tedd
tedd,
Nothing to do with the subject matter, but I noticed because it is
one of your more simple pages: I get a JS
So if I'm looking to parse certain attributes out of an XML tree, if I
use SAX, it seems that I would need to keep track of state internally.
E.g., if I have a tree like
head
a
b/b
/a
a
b/b
/a
/head
and say I'm interested in all that's between b underneath any a,
I'd need to have
Hi Fernando,
The first thing that I would do i send mail to local mail account eg
[EMAIL PROTECTED] and see if that mail will be delivered.
or something like [EMAIL PROTECTED] so that mail doesnt go
outside server ,
this way you can see if mail function is working properly. If this
doesnt
On Mon, May 12, 2008 at 6:31 AM, Stut [EMAIL PROTECTED] wrote:
On 12 May 2008, at 09:39, Peter Ford wrote:
tedd wrote:
Hi gang:
This is what I did this morning:
http://webbytedd.com/bb/tribute/
It speaks for itself.
Cheers,
tedd
tedd,
Nothing to do with the
Fot SImpler XMLs and not too large up to 1Mb I would use
$X = simplexml_load_file($URL);
simple xml is fairly fast and is very easy to use it accepts foreach
loops, accessing attributes via array fashion etc
On May 12, 2008, at 9:02 AM, Waynn Lue wrote:
What's the best way to pull down
Here is the very simple way ;)
?php
$XML=XMLL
head
a href='/asas'
bFirst/b
/a
a href='/bla'
b class='klas' Second/b
/a
/head
XMLL;
$X = simplexml_load_string($XML);
foreach ($X-a as $a){
echo $a-b .\n;
if( $a-b['class'] ) {
echo 'B has class -
2008/5/12 Waynn Lue [EMAIL PROTECTED]:
So if I'm looking to parse certain attributes out of an XML tree, if I
use SAX, it seems that I would need to keep track of state internally.
E.g., if I have a tree like
head
a
b/b
/a
a
b/b
/a
/head
and say I'm interested in all that's
Stut wrote:
On 12 May 2008, at 09:39, Peter Ford wrote:
tedd wrote:
Hi gang:
This is what I did this morning:
http://webbytedd.com/bb/tribute/
It speaks for itself.
Cheers,
tedd
tedd,
Nothing to do with the subject matter, but I noticed because it is one
of your more simple pages: I get a
This is a bit off-topic, but since Peter appears to have missed the
point of my post I feel I must reply. It may also be interesting to
the list.
On 12 May 2008, at 14:43, Peter Ford wrote:
Stut wrote:
On 12 May 2008, at 09:39, Peter Ford wrote:
tedd wrote:
Hi gang:
This is what I did
Hi,
is there any function that can convert the result of query to an associative
array?
what i want is the following:
$query = select * from tablename;
$result = mysql_query($query);
$arr = somefunction($result);
where $arr should be an assoiative array whose indices have the same name as
On 12 May 2008, at 15:56, It flance wrote:
is there any function that can convert the result of query to an
associative array?
what i want is the following:
$query = select * from tablename;
$result = mysql_query($query);
$arr = somefunction($result);
where $arr should be an assoiative
Hello,
I've been trying to find something nice to transform an accentuated
string into a non-accentuated string. Obviously, I'm mostly playing
inside the European languages, but any method that could transform
arabic or asian characters to plain non-accentuated characters would be
perfect.
I
maybe try iconv (http://uk.php.net/manual/en/function.iconv.php)
e.g.
echo iconv('ISO-8859-1', 'UTF-8//TRANSLIT', 'français');
--
/James
On Mon, May 12, 2008 at 4:09 PM, Yannick Warnier [EMAIL PROTECTED]
wrote:
Hello,
I've been trying to find something nice to transform an accentuated
oops wrong way round
echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT', 'français');
On Mon, May 12, 2008 at 4:27 PM, James Dempster [EMAIL PROTECTED] wrote:
maybe try iconv (http://uk.php.net/manual/en/function.iconv.php)
e.g.
echo iconv('ISO-8859-1', 'UTF-8//TRANSLIT', 'français');
--
/James
On Sat, May 10, 2008 at 9:35 AM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
This is what I did this morning:
http://webbytedd.com/bb/tribute/
It speaks for itself.
You tell Bubba we all said thanks. I may not be a Vietnam vet,
but I've served my time as well. When anyone at all
Thanks James,
That would probably work out if it wasn't too dependent on the locales
to work. I'm developing an open-source product which could end up on a
server without the locales for French but be used by some French people,
which would make (as far as I can get out of one comment from Richie
On Sun, May 11, 2008 at 9:19 PM, Craige Leeder [EMAIL PROTECTED] wrote:
You've even had to resort to using classes and other strange stuff to
program. Clearly signs of mental fatigue. :-)
:o. I think mental fatigue might be evident by one not using it. But
that's just me ;)
Depends on
2008/5/12 Yannick Warnier [EMAIL PROTECTED]:
Hello,
I've been trying to find something nice to transform an accentuated
string into a non-accentuated string. Obviously, I'm mostly playing
inside the European languages, but any method that could transform
arabic or asian characters to plain
Hi,
I'm very new to php.
One thing I noticed in order to run the php program (on a linux server) I
need to set the read permission
for Other.
In this program I'll have the MySQL credentials defined.
Are there are any security concerns when the read permission
is set like this. Wouldn't it be
Heh you are really new to Linux
permissions on linux are set per user/group/other bases
so for most secure set permissions to read only for web-server user
so
chown 'webserveruser' file.php
chmod 400 file.php
make sure you have root access at server so you can change that file
or make a group
At 11:46 AM -0400 5/12/08, Daniel Brown wrote:
On Sun, May 11, 2008 at 9:19 PM, Craige Leeder [EMAIL PROTECTED] wrote:
You've even had to resort to using classes and other strange stuff to
program. Clearly signs of mental fatigue. :-)
:o. I think mental fatigue might be evident by one not
Hi everyone,
I'm having a problem moving my code to a linux computer.
I won't post the whole code here, but an accurate example that
reproduces exactly the error.
// 1.php
?php
session_register('tree');
$_SESSION['tree'] = This is tree number one;
header(Location:
hi y'all,
is there a known issue with php_svn.dll (5.2.1.1) on Apache/2.0.63 (windows
xp sp 2 - 32bit)? i am pretty sure i did configure it well, but for some
reason apache fails to use this extension. the svn extension is usable from
the cli but not via apache. any pointers will be of great
Le lundi 12 mai 2008 à 19:07 +0300, Dotan Cohen a écrit :
2008/5/12 Yannick Warnier [EMAIL PROTECTED]:
Hello,
I've been trying to find something nice to transform an accentuated
string into a non-accentuated string. Obviously, I'm mostly playing
inside the European languages, but any
2008/5/12 Yannick Warnier [EMAIL PROTECTED]:
Why are you removing the accents? Why not store/process the data as
UTF-8, which supports all the accents in all the languages, and even
non-latin languages. You mention Arabic, which does not use accented
latin characters (Maybe you are thinking of
Gentlemen:
First, my apologies for publishing the page without checking it first
for pet-peeves.
Second, please educate me as to the statement that NoScript is
blocking UrchinTracker. Where do I have declared NoScript and why
would I want it? I have numerous sites and they all generate
On Mon, May 12, 2008 at 11:17 AM, tedd [EMAIL PROTECTED] wrote:
At 11:46 AM -0400 5/12/08, Daniel Brown wrote:
On Sun, May 11, 2008 at 9:19 PM, Craige Leeder [EMAIL PROTECTED] wrote:
You've even had to resort to using classes and other strange stuff to
program. Clearly signs of mental
more on this, i just found out that php_svn.dll does not work with the mpm
version of apache, i did a 'Apache -X' (single process mode) and php_svn.dll
works fine. how do i run it in mpm mode?
- vedanta
On Mon, May 12, 2008 at 1:55 PM, Vedanta Barooah [EMAIL PROTECTED]
wrote:
hi y'all,
is
On Mon, May 12, 2008 at 2:57 PM, tedd [EMAIL PROTECTED] wrote:
Gentlemen:
First, my apologies for publishing the page without checking it first for
pet-peeves.
Second, please educate me as to the statement that NoScript is blocking
UrchinTracker. Where do I have declared NoScript and why
Yannick:
Considering that we just had a flurry of pet-peeves on the list, I
rant on one of mine.
At 1:25 PM -0500 5/12/08, Yannick Warnier wrote:
I'm trying to give a universally-manageable directory name to an item
using a free-text title. I want to avoid every type of accentuated
character
At 3:11 PM -0400 5/12/08, Eric Butera wrote:
NoScript is a FireFox extension to protect users from malicious
scripts.
NoScript is also a tag for browsers to read and react to IF they do
not accept javascript.
http://www.w3schools.com/TAGS/tag_noscript.asp
That's an unfortunate naming
This script will create an xls file from the data that is sent to it
When I run this it only gets one recored and it is supposet to get all
the records that are past by the $_POST[selectedcontactlist]
I think I have a } in the wrong place but I can not figure it out
anybody have a suggestion
Bojan Tesanovic wrote:
Heh you are really new to Linux
permissions on linux are set per user/group/other bases
so for most secure set permissions to read only for web-server user
so
chown 'webserveruser' file.php
chmod 400 file.php
make sure you have root access at server so you can
I think flance's meaning is whether there is a build-in function that
can convert the result set to an array.
The short answer is: do it yourself.
On 5/12/08, Stut [EMAIL PROTECTED] wrote:
On 12 May 2008, at 15:56, It flance wrote:
is there any function that can convert the result of query
I guess PDOStatement::fetchAll() should work?
see http://www.php.net/manual/en/pdostatement.fetchall.php for details.
- Forcey
On Tue, May 13, 2008 at 9:55 AM, Yi Wang [EMAIL PROTECTED] wrote:
I think flance's meaning is whether there is a build-in function that
can convert the result set to
Richard Kurth wrote:
This script will create an xls file from the data that is sent to it
When I run this it only gets one recored and it is supposet to get all
the records that are past by the $_POST[selectedcontactlist]
I think I have a } in the wrong place but I can not figure it out
Chris wrote:
Richard Kurth wrote:
This script will create an xls file from the data that is sent to it
When I run this it only gets one recored and it is supposet to get all
the records that are past by the $_POST[selectedcontactlist]
I think I have a } in the wrong place but I can not figure
I have a form that will be filled in by the user, I want to have access to
the content of one of the fields in that form, in order to fill in an
another variable that is not part of the form. this variable is used by a
routine when the form is posted. Question - is the $_post[field name]
On Mon, 2008-05-12 at 14:44 -0700, milt wrote:
I have a form that will be filled in by the user, I want to have access to
the content of one of the fields in that form, in order to fill in an
another variable that is not part of the form. this variable is used by a
routine when the form
Hi all,
The fact is that I have a site that allow users to post hypertext articles.
However, I saw that sometimes, because of their careless input,
the articles is not rendered correctly.
I want to know whether there are some good HTML parsers written in PHP.
That is,
the parser checks whether
Or you can do it straight from MySQL, which is a lot faster:
With the caveat that you need extra mysql permissions to be able to do that.
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
strip_tags does the tricks.
www.php.net/manual/en/function.strip-tags.php
BTW,
Why cn2 dot php.net blocked by the mail server?
The rejected message:
This is an automatically generated Delivery Status Notification
Delivery to the following recipient failed permanently:
On Tue, 2008-05-13 at 11:34 +0800, Shelley wrote:
Hi all,
The fact is that I have a site that allow users to post hypertext articles.
However, I saw that sometimes, because of their careless input,
the articles is not rendered correctly.
I want to know whether there are some good HTML
Hi All
I am using a PHP Mailer to send mass mails.
How can I Identify how mails have bounced.
Chetan Dattaram Rane
Software Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maybe I didn't use that tidy correctly.
I don't want html, head, body things. Just parsed string.
On Tue, May 13, 2008 at 12:00 PM, Robert Cummings [EMAIL PROTECTED]
wrote:
On Tue, 2008-05-13 at 11:34 +0800, Shelley wrote:
Hi all,
The fact is that I have a site that allow users to post
You should pass the secend parm to the function. Like this:
$allowable_tags = 'patdtable';
strip_tags( $text, $allowable_tags );
On 5/13/08, Shelley [EMAIL PROTECTED] wrote:
Not that.
It will just remove all html tags, you know.
--
Regards,
Shelley
--
Regards,
Wang Yi
--
PHP
Hi,
I sent a mail to this mailling list just now. But the mailling list
rejected my mail for the mail including cn2 dot php.net. Replace '
dot ' with '.'.
Why this mirror site can't be included in the mail?
Maybe it's not in the whitelist?
--
Regards,
Wang Yi
--
PHP General Mailing List
On Tue, 2008-05-13 at 12:28 +0800, Shelley wrote:
Maybe I didn't use that tidy correctly.
I don't want html, head, body things. Just parsed string.
So strip them...
?php
// ...
tidy_parse_string( $html );
tidy_clean_repair();
$html = tidy_get_output();
$html =
On Tue, 2008-05-13 at 01:27 -0400, Robert Cummings wrote:
On Tue, 2008-05-13 at 12:28 +0800, Shelley wrote:
Maybe I didn't use that tidy correctly.
I don't want html, head, body things. Just parsed string.
So strip them...
?php
// ...
tidy_parse_string( $html );
55 matches
Mail list logo