Brian V Bonini wrote:
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote:
I have a block of XML that looks as follows:
<*_~_*> Røyken VGS <*_~_*>
My question is, can I in any way efficiently (i -stress- efficiently, if
anyone read my previous XML and special characters post
I have a block of XML that looks as follows:
<*_~_*> Røyken VGS <*_~_*>
Now, if I run that block of XML through htmlentities, I will get the
following:
<*_!_*> Røyken VGS <*_~_*>
XML parsers will return a problem, as there is both an unclosed tag and
an invalid tag, in two places no less
Steve Clay wrote:
Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote:
ee dee da da da? §ð <-- those that look like html entities are
the represented characters. I was mistaken, they are html entities,
Can you show us a small chunk of this XML that throws errors?
You said you
Adam Hubscher wrote:
tedd wrote:
I've been having a tough time with parsing XML files and special
characters.
-snip-
Any suggestions as to how I could get around this seemingly
impossible road block thats been placed by what seems to be the xml
engines :O..
Adam:
I believe that
tedd wrote:
I've been having a tough time with parsing XML files and special
characters.
-snip-
Any suggestions as to how I could get around this seemingly impossible
road block thats been placed by what seems to be the xml engines :O..
Adam:
I believe that these "special" character will
I've been having a tough time with parsing XML files and special characters.
I have attempted every applicable engine, last try SAX, to attempt at
parsing a (rather large, 17.8mb) xml file.
The problem I hit, is when it hits a UTF8 encoded character. I've
attempted at decoded the file before
I have a script that generates, creates, and updates dynamic banner
images for users of a service.
Recently I have run into a problem with file permissions... that has
thoroughly annoyed me. I found a solution to fix the problem, however,
it was then hit with another problem, and I'm not sure how
Matt Darby wrote:
I have an array setup as such: *$arr['generated text']='generated number';*
What would be the best way to echo the key in a loop?
Seems pretty easy but I've never attempted...
Thanks all!
Matt Darby
I'm not sure I understand the question.
You could do foreach($arr as $key =
I have a script that generates, creates, and updates dynamic banner
images for users of a service.
Recently I have run into a problem with file permissions... that has
thoroughly annoyed me. I found a solution to fix the problem, however,
it was then hit with another problem, and I'm not sure
Synopsis: I am writing a management system for a MSSql database driven
game, and I've run into an issue. The community site is located on a
remote webserver, to protect the actual server from any possible
vulnerabilities in the community application/forum application (as we
all have seen the re
Jochem Maas wrote:
Adam Hubscher wrote:
The code looks like this:
if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){
print("Couldn't Create Socket: " .
socket_strerror(socket_last_error()). "\n");
}
socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, ar
The code looks like this:
if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){
print("Couldn't Create Socket: " .
socket_strerror(socket_last_error()). "\n");
}
socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' => 1,
'usec' => 0));
$output = '';
for($i = 0; $i < count($fil
Andrew Maxwell wrote:
When you submit something, and you want to make sure that the user
inputs all of the info, is there an easier way to do it than this:
if ((!$_POST[name]) || !$_POST[pass]) || (!$_POST[blah]))
{
etc.
}
is there an easy way to check if all of the varibles have data in them?
Richard Lynch wrote:
Adam Hubscher wrote:
Warning: socket_connect() expects parameter 3 to be long, string given
in testing.php on line 21
Couldn't Create Socket: Success
PHP usually auto-converts data -- However it's possible that this
EXPERIMENTAL function (?) doesn't have the
Ok, I had made a post earlier but bout 5min later I figured out the
problem (I had spaces and returns that were in the array beside the ports).
The code looks like this:
if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){
print("Couldn't Create Socket: " .
socket_strerror(socket_last_
Warning: socket_connect() expects parameter 3 to be long, string given
in testing.php on line 21
Couldn't Create Socket: Success
It actually spits that across for every socket I'm trying to connect.
I'm doing an online status for multiple servers, which I have tested to
work when I simply do a s
Warning: socket_connect() expects parameter 3 to be long, string given
in testing.php on line 21
Couldn't Create Socket: Success
It actually spits that across for every socket I'm trying to connect.
I'm doing an online status for multiple servers, which I have tested to
work when I simply do a s
Thomas Goyne wrote:
On Thu, 13 Jan 2005 16:25:30 -0600, Adam Hubscher
<[EMAIL PROTECTED]> wrote:
1 (the preferred way): user accesses
http://www.example.org/index.php?function=Join, this loads the class
NewUser and begins its implementation. Because of the __autoload, it
in
From within the application, I use one page to include
classes/variables and so on. Is there a way (I may have been missing it
in the documentation for PHP, however I didnt see anything related) to
prevent a user from directly accessing/executing *.php by the file
making sure taht it was only i
19 matches
Mail list logo