e appreciated.
>
> if(($type == book) or ($type == weapon)){
^^
I could be completely wrong here, but shouldn't these values be quoted?
Even if it's not what's screwing up your code, it's probably a good idea
unless they are s
was contained by a variable called
$navigation_column, then my class would do something like:
$template_page = "./includes/site_template.inc";
str_replace("{{{NAVIGATION}}}", $navigation_column, $template_page);
This is oversimplified and wouldn't really work (you nee
.
Once you've read a bit more about it, read the PHP manual pages on OOP
and try it out.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yer..
Nope, not a PHP question.
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ovided. I haven't actually found a general PHP->XSLT reference (for
instance, the PHP man pages on a lot of the XSLT functions seem
unfinished). Do you know of a resource I can go to learn more?
Thanks,
Erik
> I do this all the time.
>
> ie: $addl_buffers['
e_sql = "UPDATE tablename SET tablename.columname = '$value'";
if (!mysql_query($update_sql, $db)) {
die("Could not process update SQL query");
}
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing Lis
On Friday, April 12, 2002, at 05:35 PM, Erik Price wrote:
>> How do I update entries in MySQL? Say for example, I checked some
>> fields to
>> a table, and decided to make update to a particular field. How do I do
>> that
>> in PHP?
>
> // $db = datab
Read the man pages
for addslashes() and stripslashes() at www.php.net for information on
their usage.
You may also be able to set the gpc_magic_quotes setting in your php.ini
on your server, but using addslashes() and stripslashes() allows you to
fine-tune your control.
Erik
Erik
ou don't need to use a string constant
('bar'), you could use another variable to make $_SESSION['foo'] refer
to the same thing, as in:
You can access this new session variable in the way you might expect, by
using $_SESSION['foo'].
Erik
Erik Pr
tes (and vice versa).
To the best of my knowledge, the following is fine XML/XHTML:
...
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
individualy.
If you refer to a POST or GET (or COOKIE or SESSION or SERVER) variable
as $_POST['variablename'] or $_GET['variablename'], then it will
automatically be global.
In PHP 4.1.x or later
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROT
put the user's input as the "value" of my
HTML form inputs. Here's an extremely simple example of such a function:
function print_simpleform()
{
$simple_form = "
\n";
return $simple_form;
}
Of course, you can get far more complex and have functions that do this
but use da
ng the
including. So, any variables that were available in your included file
are now included in your script, although they are not "returned" in the
sense that you are hoping for.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Ma
if your object is unset().
This is according to:
http://www.php.net/manual/en/language.oop.constructor.php , down at the
bottom just before the annotations.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.ph
But since the trend appears to be in moving toward Unicode, the
"official" distinction of an English character vs any other language's
character is becoming blurry -- at least in the field of information
delivery.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EM
quot;apacheuser") and under some other group (like "apachegroup"). Several
other systems run under "nobody" on most Unix systems, so you could
compromise those if "nobody" is compromised.
Erik (somebody)
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
has access to it as well. Whether or not
"nobody" has permission to change the ownership of a file to someone
else is another matter entirely.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
doing what you want.
Yes, I wouldn't give "nobody" privileges to do anything with sudo.
You're better off making "nobody" a member of the same group as the
other user, and using chgrp.
erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTE
On Monday, April 15, 2002, at 03:17 PM, Tom Beidler wrote:
> I need to calculate the date to see if it's a holiday, i.e. is today
> presidents day
No, today is Patriot's Day!
Not sure if it's celebrated outside of Massachusetts....
Erik
Erik Price
Web Dev
Basically, you don't "log on to mysql" through the internet browser.
You are using the internet browser only to request a file that is on a
web server. The web server is handing the request to PHP, and PHP is
accessing the MySQL database. PHP is accessing MySQL as whatever host
and user has
find this a bit misleading.
Yes, I did too -- but I thought that I would use the questioner's own
statement to confirm what I was saying. Simply that the privilege
tables have NOTHING to do with the browser.
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [
f you're appending a wildcard to your
search ( 'php.ini*' ).
Erik
On Friday, November 30, 2001, at 10:40 PM, Paul Warner wrote:
>> Hi,
>> How can PHP work without the php.ini file? I have tried to find the
> php.ini
>> file on a RAQ3, to no success. Looki
macs /etc/httpd/httpd.conf" if you are not logged in as root
because it is not writeable by normal users.
Erik
On Sunday, December 2, 2001, at 04:15 PM, René Fournier wrote:
> OK, that makes sense--that's what I did under WinME. The only problem
> is that I can't
I'm poor and it's pretty good (a tiny bit buggy on OS X). There's
actually an emacs for OS X that I haven't gotten around to trying yet,
maybe I'll give the compile a shot tonight.
Erik
On Tuesday, December 4, 2001, at 07:50 PM, Andrew Forgue wrote:
>
> I myse
add the "--with-mysql" configure option because
this tutorial doesn't assume that you want to install MySQL.
Any questions, email me.
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
.html
It tells you how to create a user.
Erik
PS: don't use System Preferences' "Users" to make dummy users for MySQL
and other services.
On Wednesday, December 5, 2001, at 10:04 AM, René Fournier wrote:
>>> I have to create a MySQL for my PHP scripts. How do I do
I thought that short tags were illegal in XHTML and XML.
But I could be wrong.
On Friday, December 7, 2001, at 01:53 PM, Steve Haemelinck wrote:
> Hi Guys
>
> I am developing with PHP and XML. Now I experience some problem with the
> processing instructions of xml ()
> which causes PHP to retu
f
the wget attempts I make yield any files.
I'm trying to download PHP 4.1.0 ... source tarball (intended for x86
Linux).
Thanks to any who can help.
Erik
=
Microsoft e[X]tra [P]roprietary
-- Is this where you really wanted to go today ? --
http://www.redhat.com/about/o
where
I can just wget the source?
--- Miles Thompson <[EMAIL PROTECTED]> wrote:
>
> Open up a console and use lynx.
> Miles Thompson
>
> At 06:26 PM 12/11/2001 -0800, Erik Price wrote:
> >Is there a way to download PHP without clicking the link in my
> browser?
>
OH. no one told me that it was called "links" !!! I thought it was
"Lynx". Either way, I found /usr/bin/links and have finally been
successful in the download.
On to the compile !!
Erik
PS: So the only way to get the PHP source is through the web site? I
didn
I asked this question three times this week!! :)
http://marc.theaimsgroup.com/?l=php-general&m=100817196924450&w=1
No BFD. I discovered /bin/links in the process and that worked for the
download.
-- Erik
On Wednesday, December 12, 2001, at 09:40 PM, Rasmus Lerdorf wrote:
&g
Hmm... can you point out to them that there's a similarity between using
an external style sheet and using header/footer includes? And that as a
coder, it would be your responsibility to maintain these include files,
not theirs? Personally, I think .css external style sheets are
awesome -- t
rrorism acts.
>
> Sean C. McCarthy
I couldn't agree more. If anybody wants to start a blame game flame war,
please take it off list, eh?
--
- Erik Mathy
Applications Developer
@butlerandco.com, inc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
The docs for PHP5 and dom xml is not written yet, so I tried to find
information about load and save methods on the w3c site, but I didn't
find anything.
What's is the PHP5 eqvivalent to domxml_open_mem in PHP4?
/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
See the following example:
How do I remove an element in the oObjectA array without destroying the
object? I do not want to clone any object.
If I call unset($oObjectA[3]), the object will also be destroyed.
apparently $oObjectB[3] is also destroyed?
/Erik
--
PHP General Mailing List (http
I am correcting myself...
$oObjectA = array();
$oObjectB = array();
for($i=0;$i<2;$i++) {
$oObjectA[$i] = new foo();
$oObjectB[$i] = $oObjectA[$i];
}
unset($oObjectA[1]);
var_dump($oObjectA);
var_dump($oObjectB);
?>
will output:
array(1) {
[0]=>
object(foo)#1 (0) {
}
}
array(2) {
[0]
$oObjectB[$i] = &$oObjectA[$i];
The above statement does not matter, because in PHP5 "objects are
referenced by handle, and not by value".
Look at this example:
$a = new foo();
$b = $a;
unset($a);
var_dump($b);
>?
This will output:
object(foo)#1 (0) {
}
The object is not destroyed!? How do I destr
Thanxs for the help Curt!! Thats a tricky solution, but it works...
This is almost motivating a new method in PHP5: $foo->__destroy() which
will destroy the object once and for all... :)
/Erik
Curt Zirzow wrote:
* Thus wrote Erik Franzn:
$oObjectB[$i] = &$oObjectA[$i];
The above stateme
e wrong way this is my baby
step at php)
If anybody has a better way I would appreciate it,
Thank you,
Erik Meyer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
news_split);
echo "$news_story";
}
Sorry about that..
-Original Message-
From: Erik Meyer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 1:29 PM
To: Php-General
Subject: [PHP] summarized results
I have a function loosely based on the fol
]
Sent: Wednesday, August 25, 2004 2:42 PM
To: Erik Meyer; Php-General
Subject: Re: [PHP] summarized results w/function
From: "Erik Meyer" <[EMAIL PROTECTED]>
> Here is function
>
> function shorten_news_results ($input_text, $ending_text) {
> $news_strip=s
Is it possible to determine if a property inside a object is public,
protected or private in PHP 5?
/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can anuyone describe this error?
Compile Error: E:\Source\CMAES\src\include\dom.inc.php line 67 -
Declaration of CMAES_DOM_Node_List::item() must be compatible with that
of CMAES_DOM_Node_List_Interface::item()
// {{{ interface CMAES_DOM_Node_List
/**
*
* @access public
*/
interface CMAES_DO
ling example
unsetting a will only kill a, b and c will still be "alive".
setting a to null will kill c but not b
/Erik
Torsten Roehr wrote:
"Erik franzén" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Can anuyone describe this error?
Compile Error: E:\Source
nice, but
for better understanding how to use them I am looking for detailed
information how to use them. More comprehensive documentation with
examples...?
Does it exist?
Thanks
/Erik
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
iQEVAwUBReCDFC7mbizvza/NAQKnkQf/QtYAMGJT6
xec ('echo $CONTEXTE_D_EXECUTION',$result);
$result is empty !!!
I've put the variable in /etc/environment, in /etc/profile,
in /etc/bash.bashrc but nothing worked...
Do you have any idea ?
If it is not possible, I suppose I can put a variable in php.ini ?
Thank you very much.
David.
eri
king
that variable available in you're web server user's env.
On Mar 14, 2007, at 9:52 AM, David BERCOT wrote:
Le Wed, 14 Mar 2007 09:42:13 -0500,
Erik Jones <[EMAIL PROTECTED]> a écrit :
Depending on your system and environment (platform and cli v. cgi),
they should be
asily. |
`'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
erik jones <[EMAIL PROTECTED]>
sofware developer
615-296-0838
emma(r)
web server, it runs as whomever the web
server runs as. If you execute the script from a shell (cli), it
runs as whatever user you are logged in as...
erik jones <[EMAIL PROTECTED]>
sofware developer
615-296-0838
emma(r)
On Mar 15, 2007, at 10:07 PM, Ron Croonenberg wrote:
hello all,
I am looking for some scripts/libraries etc to produce some bar
graphs etc.
Does anyone know of something "nice (that works on Linux)
There is a graphing library in PEAR called Image Graph that you could
check out.
What kind of stats are you looking for?
On Mar 16, 2007, at 10:57 AM, Ross wrote:
Can someone recommend one please?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
erik jones <[EMAIL PROTECTED]>
software developer
615-296-083
On Mar 16, 2007, at 11:11 AM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
Sorry web stats, unique hits, referers all that kind of info.
R.
- Original Message -
From: Erik Jones
To: Ross
Cc: php-general@lists.php.net
Sent: Friday, March 16, 2007 4:10 PM
Subject: Re: [
struct as opposed to using a function with the classname ?
Thanks,
JC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
erik jones <[EMAIL PROTECTED]>
software developer
615-296-0838
emma(r)
On Mar 21, 2007, at 7:14 PM, Chris wrote:
Erik Jones wrote:
That's not true, running with v. 5.2.1:
Outputs:
works
On Mar 21, 2007, at 8:06 AM, itoctopus wrote:
They're basically the same thing, however, you can only use
__construct in
PHP5.
He meant that __construct() doesn
ction server, but on the
development
server it
don't want to work. I also tried it on a windows machine but it
don't want to
work there
either.
Any suggestions/insights?
Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/
as this is a php list :)
eri
On Mar 26, 2007, at 1:18 PM, Peter Lauri wrote:
On Monday 26 March 2007 19:49:48 Erik Jones wrote:
Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/
as this is a php list :)
Thanks. This solved it for me:
http://forum.modrewrite.com/viewtopic.php?p=10796#10796
/Peter
g.log to see if PHP found the snmp libs or not.
Probably not.
Also, when you recompile, make sure you at least 'make clean'. 'make
distclean' would be good, too
erik jones <[EMAIL PROTECTED]>
software developer
615-296-0838
emma(r)
know
I am.
On the page that generates your webform:
Also, changing to using the $_SESSION superglobal array instead of
$HTTP_SESSION_VARS will save you a bit of typing.
erik jones <[EMAIL PROTECTED]>
software developer
615-296-0838
emma(r)
editor to bring up the help docs in a mini-browser
instead of having to switch to FF while I'm editing.
erik jones <[EMAIL PROTECTED]>
software developer
615-296-0838
emma(r)
NSFER twice and that my
be messing with the curl call.
erik jones <[EMAIL PROTECTED]>
software developer
615-296-0838
emma(r)
amp; $email && $username && $password)
{ // if everyting's okay.
//Register the user.
echo 'you are now register.';
} else { //Something is not TRUE.
echo 'Please go back and try again.';
}
} else {// Display the form
}
?>
Thanks for any help
Erik Gjertsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks it helps
Erik Gjertsen
"Erik Gjertsen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I shall made a registration schema to user log on. But when I fill in
> everything I still com up messages that you must go back and try again.
> Or can someone h
Thanks it help
Erik Gjertsena
"Petr U." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 6 May 2004 03:42:48 -0700
> "Erik Gjertsen" <[EMAIL PROTECTED]> wrote:
>
> > I have made a login page but I got an error on line 1.
I have write following code:
But I can not see Welcome on top of the page.
Can someone tell me why I not can see it?
Thanks
Erik Gjertsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ot;Bao Ruixian" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> Erik Gjertsen wrote:
>
> >I have write following code:
> > >$page_title = "Welcome";
> >?>
> >
> >But I can not see Welcome on top of the page.
> >
Thanks it help
Erik Gjertsen
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is it me or is the sollution here incredible simple?
>
> $page_title = "Welcome";
>
conection.
} else {
$message = 'Please try again.';
}
} // End of themail submitconditional.
//Print the error message if ther is one
if (isset($message)) {
echo '', $message, '';
}
?>
Enter your information in the form below:
User Name:
Password:
Thanks
Erik Gjertsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I forgot the error messages:
Warning: mysql_real_escape_string() expects parameter 2 to be resource, null
given in /home2/erik/gjertsen-www/Skole22/Loggin/login.php on line 28
Warning: mysql_real_escape_string() expects parameter 2 to be resource, null
given in /home2/erik/gjertsen-www/Skole22
Red Hat
Linux 9.
Erik W. Meyer
Technical Support Engineer
Ebase
www.ebaseweb.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have problem with mysql_close
I dont understand why.
Are ther someone that have any proposal?
Thank for any help
Erik Gjertsen
Here is the code
$query = "SELECT usrid FROM users WHERE username";
$result = @mysql_query ($query); //Run the query
if (mysql_num_rows($result) == 0)
rror message if ther is one
if (isset($message)) {
echo '', $message, '';
)
?>
Enter your information in the form below:
Name
Email Adress
User Name
Password
Confirm Password
but it dont work. If I take away al after mysql close to form_ac
ree
Next: four
This: 4 -> four
Next:
---
output under v5.2.4 and v5.2.5:
---
This: 0 -> zero
Next: two
This: 1 -> one
Next: three
This: 2 -> two
Next: four
This: 3 -> three
Next:
This: 4 -> four
Next:
---
Regards to All,
-Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP 5.2.5 installed on Windows Server 2003 with IIS 6
; Mail-1.1.14 mail pkg with Net_SMTP-1.2.11 pkg
--Erik
ried redirect
the page to the URL in that cookie. It worked, but not as intended,
there are some situations when it is redirecting in a loop.
Any recommendations how to do it properly?
Thanks,
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and the following PHP code:
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$query = "INSERT INTO users SET uid = :uid, login = :login, password
= :password";
$stmt = $db->prepare($query);
$uid = "";
$login = "erik";
$password = "
cept contact - there it show error. So what is the
correct way to check values in multidimensional arrays? Is it possible
with in_array() function?
Thanks,
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Oliver Block wrote:
Am Samstag, 18. November 2006 19:46 schrieb Erik Gyepes:
What exactly do you need to do? You should read the manual too, at
I would like to check if the value is really in the array, if it is not
then I would like do some other things. (so not check if it is an array
Hi folks,
my another question is how to work with URLs like below in PHP:
http://www.example.com/section/
http://www.example.com/section/subsection/
http://www.example.com/section/subsection/subsubsection/
http://www.example.com/section/subsection/subsubsection/
These URLs works very well w
Sometimes I just need a point in the right direction. So RTFM is not
so bad.
Erik
On Feb 28, 2006, at 11:26 AM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
[snip]
I love how infinitely helpful people on this mailing list are. It's a
wonder people are being
&& $email && $username && $password)
{ // if everyting's okayOK.
//Register the user.
echo 'you are now register.'
} else { //Something is not TRUE.
echo 'Please go back and try again.'
} else {
?>
Enter your information in the form b
&& $email && $username && $password)
{ // if everyting's okayOK.
//Register the user.
echo 'you are now register.'
} else { //Something is not TRUE.
echo 'Please go back and try again.'
} else {
?>
Enter your information in the form b
Thanks for help Red.
Cut and past is not always work
But I got a new problem in the last line.
I don't understand watt the problem is here
Thanks Erik Gjertsen
"Erik Gjertsen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I try to made a administrator
Thanks for help Red.
Cut and past is not always wok
But I have a new problem in the last line.
I don't understand why it's problem here
Thanks
Erik Gjertsen
http://www.w3.org/TR/html4/loose.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"&g
to be good CMS too, see the: http://nucleuscms.org/.
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to be good CMS too, see the: http://nucleuscms.org/.
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
dont get work it at home at my machine.
May I enable something in PHP? Some settings, or what?
Thanks very much.
Erik Gyepes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi.
I think you want to get the internal IP adress which computer uses? Am I
right?
If yes, that is not possible with PHP directly, but it is possible with
Java and PHP.
Erik
Philippe Reynolds wrote:
Hi all,
I would like to find a way to get my computers LAN IP address through
PHP. I
Okay.
There I have script for you: http://pokusy.depi.sk/internalip.zip. Just
download it and see the source.
You can see how it works here: http://pokusy.depi.sk/inernalip/ip.php.
Hope that helps you.
Erik
Philippe Reynolds wrote:
Yes, I would hard code my IP address but when the computer
support the RecursiveIteratorIterator Interface?
Thanxs
/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ren()
{
return new RecursiveArrayIterator($this->current());
}
}
?>
Thanxs
/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi im new in the list i dont know where to write the email so i did it here,
i am having a problem
I have a xml file and im parsing with domit 1.0 but im from mexico, and we
use " é í ó ú á ñ "
the xml acept it but when the php show the code in html, i cant see the
letters
Document->validate() or DOMDocument->validateOnParse before using
this function."
I cannot use a schema in ordet to "activate" DomDocument->getElementById()?
/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have run into this behavior on several sites:
$dom->validate('books.dtd');
But according to the docs, the method it is defined
class DOMDocument {
bool validate ( void )
}
Is the dtd (file?) parameter deprecated?
/Erik
--
PHP General Mailing List (http://www.php.net/)
T
I have run into this behavior on several sites:
$dom->validate('books.dtd');
But according to the docs, the method it is defined
class DOMDocument {
bool validate ( void )
}
Is the dtd (file?) parameter deprecated?
/Erik
Just tested, $dom->validate('books.dtd
gt;appendChild($oElement);
// Retrieve and print the document
echo $oDom->saveXML() . "\n";
echo "TagName: " . $oDom->getElementById('123')->tagName;
?>
Now the code produces the following result:
test
TagName:
Thanks
/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
apparently, that is not the case.
/Erik
James Benson wrote:
Learn DTD and how it works first then you will know :-)
A DTD is contained in an external file and not in XML, so you would
create a DTD file then link it from the XML like so,
Erik Franzén wrote:
The code below lacks the part
/GetElementById_Pitfalls have some
information about my issue, but I have not found the path to go yet.
I am using php5.05 on Win32.
/Erik
Rob wrote:
Jared Williams wrote:
There is no real standard for creating DTDs on the fly, and therefore
libxml/DOM doesn't have any methods afaik.
Th
Have tried the following code:
$oDomDtd = $oDomImp->createDocumentType('Document', '',
'D:/CMAES/Src/dbtree.dtd');
// Creates a DOMDocument instance
$oDom = $oDomImp->createDocument("", "Document", $oDomDtd);
// Set other properties
$oDom->encoding = 'iso-8859-1';
$oElement = $oDom->createEl
Sorry, I copied the wrong DTD into the post.
The DTD is the following:
Here is the code example and result again:
$oDomDtd = $oDomImp->createDocumentType('Document', '',
'D:/CMAES/Src/dbtree.dtd');
// Creates a DOMDocument instance
$oDom = $oDomImp->createDocument("", "Document", $oDomDt
I did a typo in the threads post.
The dtd is:
but it gives the warning when DomDocument::validate() is called:
Warning: Syntax of value for attribute S_iSectionId of
CMAES_Model_DbSection is not valid in
701 - 800 of 847 matches
Mail list logo