On Sat, Nov 19, 2005 at 07:05:37AM +0100, Erik Franzn wrote:
>...
> Using the following DTD as an external file:
>
>
>
>
> The result is the following:
>
>
>
> S_iSectionId="123">test
>
>
>
> Warning: Syntax of value for attribute S_iSectionId of
> CMAES_Model_DbSection is not valid i
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
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
My real problem is that I am building a XML tree and I want to use the
getElementbyId method on the tree directly.
It would be very nice if it is possible to do it without including a
external dtd, since it takes some time to load every time.
The page http://blog.bitflux.ch/wiki/GetElementByI
I saw this example on
http://blog.bitflux.ch/wiki/GetElementById_Pitfalls and thought that I
could create the DTD in the XML file.
$xml ='
]>
';
$dom = new DomDocument();
$dom->loadXML($xml);
print $dom->getElementById('myId')->nodeName;
But apparently, that is not the case.
/E
On 11/19/05, Webmaster <[EMAIL PROTECTED]> wrote:
> You can send data to the next php file by HTTP-GET.
> Simply add a ? behind the link and then =.
> Example ./jumpto.php?to=searchProduct
Well i think it was about the code inside the search/add/edit pages
not how to reach them.
If i understood
Hi
On some linux systems where you can't jump to /
you can also write the command like this.
find / -name head.jpg
Greetings
Mirco
-Ursprüngliche Nachricht-
Von: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 19. November 2005 06:03
An: John Taylor-Johnston
Cc: PHP-G
On Sat, 2005-11-19 at 13:02, Jasper Bryant-Greene wrote:
> John Taylor-Johnston wrote:
> > Hi,
> > I want to echo the location of "head.jpg" hidden in some deep dark
> > recess of my server, unbeknownst to me.
> > Which shell command do I use? How do I echo it?
> > John
> >
>
> While this isn't
Hi,
i hope I got you right.
You can send data to the next php file by HTTP-GET.
Simply add a ? behind the link and then =.
Example ./jumpto.php?to=searchProduct
In the jumpto.php you would ask the Global Array for Get Variables for the
entry and then decide what to do.
Example:
sf($_GET["to"]
John Taylor-Johnston wrote:
Hi,
I want to echo the location of "head.jpg" hidden in some deep dark
recess of my server, unbeknownst to me.
Which shell command do I use? How do I echo it?
John
While this isn't really a PHP question...
On my machine, the following would work. I can't speak fo
On Fri, Nov 18, 2005 at 09:34:56AM -0500, Leonard Burton wrote:
> HI All,
>
> Does anyone on here use the MySQL C API? Would you mind if I asked
> you a few questions off the list?
You might want to ask someone on a related mysql list.
Curt.
--
--
PHP General Mailing List (http://www.php.ne
On Fri, Nov 18, 2005 at 06:08:16PM -0600, Nate Nielsen wrote:
> Okay, I've added the verbose output to copare exactly what is happening
> between the two versions - thanks to Curt, the verbose info shows there IS
> something different happening.
>
> To recap, the code is exactly the same, the ph
Hi,
I want to echo the location of "head.jpg" hidden in some deep dark
recess of my server, unbeknownst to me.
Which shell command do I use? How do I echo it?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I can't see my posted msgs...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm not so keen on PHP (so on English :) ) and I have a little problem:
On the left side of the page there is the following menu:
PRODUCTS
Search
Add
MEMBERS
Search
Add
ORDERS
Search
Add
Is that possible to link each "Search", "Add" to a "Search
Hi, I'm not so keen in php (so in english :) ) and I had a problem:
In left menu I have got choices like :
PRODUCTS
Search
Add
CUSTOMERS
Search
Add
ORDERS
Search
Add
I need to make links to each "Search", "Add" for the appropriate php
script pages.
Here is what you are asking for I think.. it uses Java. I did have a
complication letting the applet install.. also, it's not free, but there is
a Lite version. Hope this helps
http://www.radinks.com/upload/dnd.php
Joe
On 11/18/05, Nate Nielsen <[EMAIL PROTECTED]> wrote:
>
> You wont be able to
On Wed, Nov 16, 2005 at 04:32:29PM +0100, Jochem Maas wrote:
> I have started making use of the APC extension to cache opcodes, etc
> now I'm also trying to cache the output of some sql queries and I want to
> use a hash of the query as key to store/fetch the value e.g:
>
> apc_fetch(md5($qry))
I
You wont be able to do the drag and drop, but you can gracefully do multiple
file uploads with flash (via flash 8). It also lets you know the progress
of the file upload itself.
I've done a snazzy picture upload tool for a Flex (generates flash
applications on the fly with ActionScript and X
Joe Harman wrote:
Hi Chris,
I would think that there has to be something out there like a Javascript
that would accomplish that... that would be my first guess anyhow... there
possibly could be something done in flash that would act as a drop area for
the file... let us know what you find
Joe
Hi Chris,
I would think that there has to be something out there like a Javascript
that would accomplish that... that would be my first guess anyhow... there
possibly could be something done in flash that would act as a drop area for
the file... let us know what you find
Joe
On 11/18/05, Micah
Jasper Bryant-Greene wrote:
Ben wrote:
$dbVars=explode(',',$two_vars); // Assuming comma seperator
foreach($dbVars AS $key => $value) {
$eval="\$temp=".$value.";";
eval($eval);
echo $temp;
}
WTF do you need eval() for?!
$dbVars = explode( ',', $two_vars );
foreach( $dbVars as $va
Ben wrote:
If I understand your question properly I'd explode $two_vars with
whatever seperator you have between them and then you'll need to use
eval to get your results. Maybe something like...
$dbVars=explode(',',$two_vars); // Assuming comma seperator
foreach($dbVars AS $key => $value) {
Jared Williams wrote:
setAttributeNS('http://www.w3.org/XML/1998/namespace', 'id', 'abc') doesn’t
work either, getElementById() still fails.
It does work as long as you are using libxml2-2.6.22
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
This is a little more specific:
I have a template in the database which looks something like this:
$page_title
Image: $image
Main Text: $mtext
Text2: $text2
Text3: $text3
The variable name is $somecontent
When I call $somecontent in the PHP file, it displays exactly like it is
abov
Marquez Design said the following on 11/18/2005 04:54 PM:
Greetings.
Does anyone know how to do this?
I have,
$var
$var2
In a field called two_vars in a MySQL db.
I am calling the variables inside PHP document.
In that document I am saying:
$var = "time"
$var2 = "clock"
echo "$two_vars
Greetings.
Does anyone know how to do this?
I have,
$var
$var2
In a field called two_vars in a MySQL db.
I am calling the variables inside PHP document.
In that document I am saying:
$var = "time"
$var2 = "clock"
echo "$two_vars";
But the what prints out is
$var
$var2
not "time" an
Okay, I've added the verbose output to copare exactly what is happening
between the two versions - thanks to Curt, the verbose info shows there IS
something different happening.
To recap, the code is exactly the same, the php version is the same (same
files even), the php.ini is the same (exce
Hello all,
I have created a new dir, with php code .. which is like that
function mkDirE($dir,$dirmode=777)
{
if (!empty($dir))
{
if (!file_exists("./microsite/".$dir))
{
preg_match_all('/([^\/]*)\/?/i', $dir,$atmp);
$base="";
foreach ($atmp[0] as $key=>$val)
{
$base=$base.$val;
if(!file_exists(".
>
> Jared Williams wrote:
> >
> > There is no real standard for creating DTDs on the fly, and
> therefore libxml/DOM doesn't have any methods afaik.
> >
> > The one method DOMElement::setIDAttribute() should work I
> think, but
> > whilst PHP has the method, doesnt seem todo anything. :/
>
Richard Lynch wrote:
> On Fri, November 18, 2005 2:13 pm, Dylan wrote:
>> Is it possible to use the ($test)?$true:$false construction in a
>> (double
>> quoted) string without dropping out of the string and concatenating? I
>> have
>> many lines like:
>>
>> $var = "first part of string ".(($a==$b)
On Fri, November 18, 2005 2:13 pm, Dylan wrote:
> Is it possible to use the ($test)?$true:$false construction in a
> (double
> quoted) string without dropping out of the string and concatenating? I
> have
> many lines like:
>
> $var = "first part of string ".(($a==$b)?$c:$d)." rest of string";
>
>
Hi
Is it possible to use the ($test)?$true:$false construction in a (double
quoted) string without dropping out of the string and concatenating? I have
many lines like:
$var = "first part of string ".(($a==$b)?$c:$d)." rest of string";
and I feel it would be more elegant to be able to do somethi
Jared Williams wrote:
There is no real standard for creating DTDs on the fly, and therefore
libxml/DOM doesn't have any methods afaik.
The one method DOMElement::setIDAttribute() should work I think, but whilst PHP
has the method, doesn’t seem todo anything. :/
DocumentType nodes are read-o
Jared Williams wrote:
I have started making use of the APC extension to cache
opcodes, etc now I'm also trying to cache the output of some
sql queries and I want to use a hash of the query as key to
store/fetch the value e.g:
apc_fetch(md5($qry))
does anyone know of a good reason (including
> The code below lacks the part where the folling DTD attribute is
> created:
>
> How can I create the above DTD attribute in the code below?
>
> // Creates an instance of the DOMImplementation class
> $oDomImp = new DOMImplementation;
>
> // Creates a DOMDocumentType instance
> $oDomDtd =
> I have started making use of the APC extension to cache
> opcodes, etc now I'm also trying to cache the output of some
> sql queries and I want to use a hash of the query as key to
> store/fetch the value e.g:
>
> apc_fetch(md5($qry))
>
> does anyone know of a good reason (including perform
> Say I have an ancestry application where the users can enter
> parents, children, etc. The children have children, etc.
>
> table people
> id
> parent_id
>
> what is the best way to pull this from the db minimizing the
> number of queries to build a tree view of parents to chi
On 11/18/05, Chase <[EMAIL PROTECTED]> wrote:
> Yikes... I am dreadfully sorry to have offended everyone with my OBVIOUSLY
> non-PHP question. I will look to JavaScript for help in this matter.
>
> Please end the spiteful personal emails regarding this topic.
>
>
> ""Chase"" <[EMAIL PROTECTED]> w
blackwater dev wrote:
I am sure others have encountered this so I am just looking for ideas.
Say I have an ancestry application where the users can enter parents,
children, etc. The children have children, etc.
table people
id
parent_id
what is the best way to pull this from the d
Coincidence
On 11/18/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> I use Dreamweaver and I try to test the files on the local host, but the
> page doesn't even show up. This maybe a stupid question..but to test on a
> local server, would I just need to download PHP?
> [/snip]
>
> De
I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I still
get the same error when i try to use phpmyadmin Can not load mysql
extensions. I checked the path it is correct, the extensions exist
in /etc/php5/extensions but they do not have a .so after them. The php.ini
file and confi
allison
not familiar with dreamweaver to know if it can act as a webserver. i
strongly suspect that it's simply an editor, but not an actual server, that
can be used to interpret/display php code.
that said, you'll have to have access to a webserver. IIS is a webserver
from msoft. apache is a
[snip]
I use Dreamweaver and I try to test the files on the local host, but the
page doesn't even show up. This maybe a stupid question..but to test on a
local server, would I just need to download PHP?
[/snip]
Deja Vu?
Did you install the package on your server that I recommended?
--
PHP Gen
First of all, I'm completely new to PHP and pretty new to web
programming/management in general, so if you respond, try not to use any
really complex terms or anything that I may not understand!
right now I have an existing PHP site that I downloaded for editing. But I
am having problems viewin
Well Jay was showing you where you could pick up everything you
needed. On Windows XP the IIS server is not installed by default you
have to select it as a component to install, so I'm not sure if you
would have IIS installed either. If you want a simple and quick
solution go to the link that Jay
i'm not sure if my messages are getting through...but i'm trying to download the
PHP installer - where it asks which type of http server i want to configure,
how do i find out what i have? it would be one of the microsoft servers, but i
have no idea which...
Quoting [EMAIL PROTECTED]:
> i am new
I am sure others have encountered this so I am just looking for ideas.
Say I have an ancestry application where the users can enter parents,
children, etc. The children have children, etc.
table people
id
parent_id
what is the best way to pull this from the db minimizing the number
Bing Du wrote:
Bing Du wrote:
David Grant wrote:
Bing,
Have you checked for a php-ldap RPM?
Cheers,
David Grant
Bing Du wrote:
Hello,
PHP has already been installed through RPM. phpinfo() shows
'--with-ldap'. That's the only information about ldap. I think there
should be more than
Bing Du wrote:
David Grant wrote:
Bing,
Have you checked for a php-ldap RPM?
Cheers,
David Grant
Bing Du wrote:
Hello,
PHP has already been installed through RPM. phpinfo() shows
'--with-ldap'. That's the only information about ldap. I think there
should be more than that if php were
David Grant wrote:
Bing,
Have you checked for a php-ldap RPM?
Cheers,
David Grant
Bing Du wrote:
Hello,
PHP has already been installed through RPM. phpinfo() shows
'--with-ldap'. That's the only information about ldap. I think there
should be more than that if php were installed with ld
Yikes... I am dreadfully sorry to have offended everyone with my OBVIOUSLY
non-PHP question. I will look to JavaScript for help in this matter.
Please end the spiteful personal emails regarding this topic.
""Chase"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I am trying to
[snip]
i am using a PC with Windows XP, i don't have Apache.
i was looking at the downloads page on php.net - how do i know which one i
need?
[/snip]
Go look at this http://www.devside.net/web/server/free/suite
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
i am using a PC with Windows XP, i don't have Apache.
i was looking at the downloads page on php.net - how do i know which one i need?
> i am new to PHP and web programming/management in general...
>
> Using Dreamweaver I am trying to preview .php files on the local
> server, but the
> page wo
http://www.php.net/manual/en/tutorial.php#tutorial.requirements
[EMAIL PROTECTED] wrote:
> i am new to PHP and web programming/management in general...
>
> Using Dreamweaver I am trying to preview .php files on the local server, but
> the
> page won't show up in a web browser. This is probably a
[snip]
i am new to PHP and web programming/management in general...
Using Dreamweaver I am trying to preview .php files on the local server, but
the
page won't show up in a web browser. This is probably a stupid question, but
does that just mean I need to install PHP on my computer?
[/snip]
You n
[snip]
Yikes... I am dreadfully sorry to have offended everyone with my OBVIOUSLY
non-PHP question. I will look to JavaScript for help in this matter.
Please end the spiteful personal emails regarding this topic.
[/snip]
I saw no spiteful persoanl emails. Did folks flame you off-list?
--
PHP
i am new to PHP and web programming/management in general...
Using Dreamweaver I am trying to preview .php files on the local server, but the
page won't show up in a web browser. This is probably a stupid question, but
does that just mean I need to install PHP on my computer?
Yikes... I am dreadfully sorry to have offended everyone with my OBVIOUSLY
non-PHP question. I will look to JavaScript for help in this matter.
Please end the spiteful personal emails regarding this topic.
""Chase"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I am trying to
Bing,
Have you checked for a php-ldap RPM?
Cheers,
David Grant
Bing Du wrote:
> Hello,
>
> PHP has already been installed through RPM. phpinfo() shows
> '--with-ldap'. That's the only information about ldap. I think there
> should be more than that if php were installed with ldap support
> p
Angelo Zanetti wrote:
I've been searching for where the time is set for a session to
expire but had little luck.
I think you might be looking for the session.gc_* directives. These
control the session mechanism's garbage collection.
Hope that helps.
Chris
--
Chris Shiflett
Brain Bulb, The
I might have the wrong end of the stick, but would it not be easier to
calculate these variables in the form handling script?
Cheers,
David Grant
Chase wrote:
> I am trying to build an order form for our clients to use to order hardware
> and software, or atleast get a price quote for such. Th
Hello,
PHP has already been installed through RPM. phpinfo() shows
'--with-ldap'. That's the only information about ldap. I think there
should be more than that if php were installed with ldap support
properly. So what should I check and get ldap support added? Do I have
to download PHP s
Absolutely, but you wouldn't really be using PHP to do. Javascript
would be required to handle the real time display update. Javascript
could also to the calculations. If you want to query the server for
prices and have PHP do the calculations and spit back totals, you'll
need to use AJAX.
[snip]
That being siad, I have a field for total number of users that I would like
to calculate the total of about five variables in real-time, before the
submit button is activated. Is this possible?
[/snip]
Yes.
Google for JavaScript
--
PHP General Mailing List (http://www.php.net/)
To u
I am trying to build an order form for our clients to use to order hardware
and software, or atleast get a price quote for such. The page is done and
working using a FORM POST to a second page taht works on the variables and
generates the totals.
That being siad, I have a field for total numbe
On 11/17/05, Marco Kaiser <[EMAIL PROTECTED]> wrote:
> Hi Kristina,
>
> try to disable / remove the Zend Extension (ZendExtensionManager etc.
> [ZEND] and all below in your php.ini).
>
> try if php segfault again without the Zend Products loaded.
Hello,
After removing Zend, I get the same error,
Chris,
if (preg_match("/^[A-Za-z0-9\.]+\s*[A-Za-z0-9\.]*$/", "Co. Dublin"))
echo "TRUE";
else
echo "FALSE";
prints "TRUE" for me.
Cheers,
David Grant
Chris Boget wrote:
> Why isn't this regular expression
>
> ^[A-Za-z0-9\.]+\s*[A-Za-z0-9\.]*$
>
> allowing for this value:
>
> 'Co. Du
On Fri, 2005-11-18 at 10:55, Chris Boget wrote:
> Why isn't this regular expression
>
> ^[A-Za-z0-9\.]+\s*[A-Za-z0-9\.]*$
>
> allowing for this value:
>
> 'Co. Dublin' (w/o the single quotes)
>
> ? It's failing the regular expression match...
Do you have that expression embedded in single or
Why isn't this regular expression
^[A-Za-z0-9\.]+\s*[A-Za-z0-9\.]*$
allowing for this value:
'Co. Dublin' (w/o the single quotes)
? It's failing the regular expression match...
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm currently running into a situation where Internet Explort (IE) is
causing problems with setting the session id in cookies. Of course it works
just fine with Firefox.
Here's the code situation, we're being passed a user from a secondary server
(running windows) to an authentication page that th
I'm having problems with a customer who can't login to a wholesaler
application. To ensure the problem was that the cookie was not being
set, I sent him to this script:
if( !isset( $_REQUEST['page'] ) ) {
setcookie('VATtest','Cookie has been set.',time()+5, "/");
echo 'Test cookie.';
} e
HI All,
Does anyone on here use the MySQL C API? Would you mind if I asked
you a few questions off the list?
Thanks,
--
Leonard Burton, N9URK
[EMAIL PROTECTED]
"The prolonged evacuation would have dramatically affected the
survivability of the occupants."
--
PHP General Mailing List (http:/
You may want to use array_key_exists instead of isset. isset will
return false in the value for the array is NULL. Basically isset will
tell you if there is a value set for the array key, whereas
array_key_exists will tell you if the key exists or not, which is
what you want.
On Nov 18,
if (isset($values[4])
unset($values[4]);
Cheers,
David Grant
cybermalandro cybermalandro wrote:
> I have an array with indexes 0 to 4 and I want to delete an element of the
> array if the index is equals 4. I want to delete the variable key and value.
> What is the best way to do so?
>
> fo
I have an array with indexes 0 to 4 and I want to delete an element of the
array if the index is equals 4. I want to delete the variable key and value.
What is the best way to do so?
foreach ($values as $key => $val){
if ($key == "0") {
//
}
if ($key == "3") {
//
}
if ($key == "4") {
//delete val
Rasmus Lerdorf wrote:
Filing a bug against APC with a gdb backtrace from one of these crashes would be useful.
See http://pecl.php.net/bugs/report.php?package=APC
hi Rasmus,
I would have but I don't know how - I have just come to realise that php
actually has an idiots
guide to doing that (t
Hello!
I packed PHP 4.4.2RC1 today, which you can find here:
http://downloads.php.net/derick/ . Windows binaries will follow shortly.
Please test it carefully, and report any bugs in the bug system, but
only if you have a short reproducable test case.
If everything goes well, we can release it
On 16 Nov 2005, at 04:49, The Doctor wrote:
IS their a way to set the time to localtime instead of GMT in
the ini file?
Some users are complaining that they are seeing GMT, which this server
is set to.
If you use PHP 5.1, yes: http://www.php.net/manual/en/ref.datetime.php
Note the new date.t
On 15 Nov 2005, at 19:53, Robin Vickery wrote:
I doubt very much if they will be disabled. They are perfectly valid
SGML processing instructions.
Firstly, I didn't actually suggest they were disabled. I suggested
that they should be off by default.
Late to the party I know, but I think somet
Hi Adrian,
You can still use the text input, but you must ensure that the input is
filtered first. There is a wealth of information on SQL injection and
its prevention on the Internet. Try these for starters:
http://shiflett.org/articles/security-corner-apr2004
http://dev.mysql.com/tech-resourc
I'm aware it would be a security hole if it were available to all users,
but it's just for me at the mo, other users get a watered down version
with just check boxes. I basically want to allow flexible filtering of
a set of data but obviously this poses a few challenges, any ideas
always wec
Hi Adrian,
This appears to be a security hole, but since that wasn't the reason for
the question, please try:
echo"";
php.net/htmlentities
Cheers,
David Grant
Adrian Bruce wrote:
> Hi
>
> I am trying Dynamically creating a Query based on form input for an
> intranet, i have a text input that
Hi,
Thursday, November 17, 2005, 11:55:14 AM, you wrote:
> I just installed Apache 2.0.55 / PHP 5.0.5 and MySQL5.0.15 on WinXP.
> All seems OK, except that when I look at the PHP configuration using
> phpinfo() it reports the MySQL version as 4.1.7 .
I may well be wrong, but isn't the Client API
Hi
I am trying Dynamically creating a Query based on form input for an
intranet, i have a text input that allows a user to input part of a
where clause such as - not like '04%' - . this bit works fine but i
would like to display the clause back in the form field when the page
reloads.
$cl
Hi Angelo,
You might want:
session.cookie_lifetime =
Obviously this only has an effect if the session.use_cookies directive
is set to "1".
Cheers,
David Grant
Angelo Zanetti wrote:
> Hi guys.
>
> I've been searching for where the time is set for a session to expire
> but had little luck.
>
Hi
I just installed Apache 2.0.55 / PHP 5.0.5 and MySQL5.0.15 on WinXP. All
seems OK, except that when I look at the PHP configuration using
phpinfo() it reports the MySQL version as 4.1.7 .
Any ideas?
Otherwise all OK!
Dave
---
On Fri, Nov 18, 2005 at 05:06:36PM -0800, Ligaya Turmelle wrote:
>
> >$message - yes
> >---
> >This usually can go without any special escaping, unless you have
> >certain headers (the Boundary: header) or allow an injection into
> >the $additional_headers field. If this is the case a
88 matches
Mail list logo