Re: [PHP] Mail Injection- Which Mail function Parameters CORRECTED

2005-11-18 Thread Curt Zirzow
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 malicious

[PHP] Version question on WAMP setup

2005-11-18 Thread MOREMAN Dave
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

Re: [PHP] SESSION expiry time setting

2005-11-18 Thread David Grant
Hi Angelo, You might want: session.cookie_lifetime = time in seconds 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

[PHP] Dynamic DB query - form display

2005-11-18 Thread Adrian Bruce
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.

Re: [PHP] Version question on WAMP setup

2005-11-18 Thread Richard Davey
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

Re: [PHP] Dynamic DB query - form display

2005-11-18 Thread David Grant
Hi Adrian, This appears to be a security hole, but since that wasn't the reason for the question, please try: echoinput type='text' value=' . htmlentities($clause, ENT_QUOTES) . '; php.net/htmlentities Cheers, David Grant Adrian Bruce wrote: Hi I am trying Dynamically creating a Query

Re: [PHP] Dynamic DB query - form display

2005-11-18 Thread Adrian Bruce
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

Re: [PHP] Dynamic DB query - form display

2005-11-18 Thread David Grant
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

Re: [PHP] Is echo tag reasonably portable?

2005-11-18 Thread Marcus Bointon
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

Re: [PHP] Set Timezone to localtime in php.ini

2005-11-18 Thread Marcus Bointon
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

[PHP] PHP 4.4.2RC1

2005-11-18 Thread Derick Rethans
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

Re: [PHP] Does anyone here use the pecl extension APC?

2005-11-18 Thread Jochem Maas
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

[PHP] another simple array question

2005-11-18 Thread cybermalandro cybermalandro
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 value

Re: [PHP] another simple array question

2005-11-18 Thread David Grant
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?

Re: [PHP] another simple array question

2005-11-18 Thread Brent Baisley
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,

[PHP] MySQL C API

2005-11-18 Thread Leonard Burton
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

[PHP] Cookie problem

2005-11-18 Thread Kristen G. Thorson
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 'a

[PHP] Sessions with IE Security Settings

2005-11-18 Thread James Whitt
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

[PHP] Regex help

2005-11-18 Thread Chris Boget
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

Re: [PHP] Regex help

2005-11-18 Thread Robert Cummings
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 double

Re: [PHP] Regex help

2005-11-18 Thread David Grant
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. Dublin' (w/o the

Re: [PHP] php related segmentation fault with Apache 2.0.55

2005-11-18 Thread kristina clair
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, minus

[PHP] Real-Time Form Updating

2005-11-18 Thread Chase
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

RE: [PHP] Real-Time Form Updating

2005-11-18 Thread Jay Blanchard
[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

Re: [PHP] Real-Time Form Updating

2005-11-18 Thread Brent Baisley
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.

[PHP] add more features on working php?

2005-11-18 Thread Bing Du
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

Re: [PHP] Real-Time Form Updating

2005-11-18 Thread David Grant
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. The

Re: [PHP] SESSION expiry time setting

2005-11-18 Thread Chris Shiflett
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

Re: [PHP] add more features on working php?

2005-11-18 Thread David Grant
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

[PHP] Re: Real-Time Form Updating

2005-11-18 Thread Chase
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 build

[PHP] testing on a local server

2005-11-18 Thread atenn
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?

RE: [PHP] Re: Real-Time Form Updating

2005-11-18 Thread Jay Blanchard
[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? --

RE: [PHP] testing on a local server

2005-11-18 Thread Jay Blanchard
[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

Re: [PHP] testing on a local server

2005-11-18 Thread David Grant
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

Re: [PHP] testing on a local server

2005-11-18 Thread atenn
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 won't

RE: [PHP] testing on a local server

2005-11-18 Thread Jay Blanchard
[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:

[PHP] Re: Real-Time Form Updating

2005-11-18 Thread Chase
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 build

Re: [PHP] add more features on working php?

2005-11-18 Thread Bing Du
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

Re: [PHP] add more features on working php?

2005-11-18 Thread Bing Du
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

Re: [PHP] add more features on working php?

2005-11-18 Thread Bing Du
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

[PHP] recursive queries-tree view implementation

2005-11-18 Thread blackwater dev
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

Re: [PHP] testing on a local server

2005-11-18 Thread atenn
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

Re: [PHP] testing on a local server

2005-11-18 Thread Dan McCullough
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

[PHP] Testing on the local server

2005-11-18 Thread Allison
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

RE: [PHP] Testing on the local server

2005-11-18 Thread Jay Blanchard
[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

RE: [PHP] Testing on the local server

2005-11-18 Thread bruce
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

[PHP] Problems with PHP5 phpMyAdmin

2005-11-18 Thread Russ F
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

Re: [PHP] Testing on the local server

2005-11-18 Thread Dan McCullough
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] Deja Vu?

[PHP] Re: recursive queries-tree view implementation

2005-11-18 Thread Roman Ivanov
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

Re: [PHP] Re: Real-Time Form Updating

2005-11-18 Thread Michael Crute
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] wrote in

RE: [PHP] recursive queries-tree view implementation

2005-11-18 Thread Jared Williams
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 children?

RE: [PHP] APC caching keys.

2005-11-18 Thread Jared Williams
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 performance

RE: [PHP] How to build a XML DTD on the fly?

2005-11-18 Thread Jared Williams
The code below lacks the part where the folling DTD attribute is created: !ATTLIST document id ID #IMPLIED How can I create the above DTD attribute in the code below? ?php // Creates an instance of the DOMImplementation class $oDomImp = new DOMImplementation; // Creates a

Re: [PHP] APC caching keys.

2005-11-18 Thread Jochem Maas
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

Re: [PHP] How to build a XML DTD on the fly?

2005-11-18 Thread Rob
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

[PHP] using ($test)?$true:$false in a string

2005-11-18 Thread Dylan
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 something

Re: [PHP] using ($test)?$true:$false in a string

2005-11-18 Thread Richard Lynch
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; and I feel

Re: [PHP] using ($test)?$true:$false in a string

2005-11-18 Thread Dylan
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)?$c:$d). rest of

RE: [PHP] How to build a XML DTD on the fly?

2005-11-18 Thread Jared Williams
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

[PHP] problem in create new diretory..

2005-11-18 Thread ganu ullu
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;

Re: [PHP] php + cURL issue

2005-11-18 Thread Nate Nielsen
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

[PHP] Variables in Variables?

2005-11-18 Thread Marquez Design
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 !-- I do the query in MySQL here -- echo $two_vars; But the what prints out is

[PHP] Re: Variables in Variables?

2005-11-18 Thread Ben
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 !-- I do the query

[PHP] Variables in variables?

2005-11-18 Thread Marquez Design
This is a little more specific: I have a template in the database which looks something like this: html title$page_title/title body Image: $image p / img src = \$image\ Main Text: $mtext br / Text2: $text2 br / Text3: $text3 br / /body html The variable name is $somecontent When I call

Re: [PHP] How to build a XML DTD on the fly?

2005-11-18 Thread Rob
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:

Re: [PHP] Re: Variables in Variables?

2005-11-18 Thread Jasper Bryant-Greene
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) {

Re: [PHP] Re: Variables in Variables?

2005-11-18 Thread Jasper Bryant-Greene
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 $value

[PHP] Re: [PHP-DB] Drag and Drop with PHP and MySQL

2005-11-18 Thread Joe Harman
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

Re: [PHP] Re: [PHP-DB] Drag and Drop with PHP and MySQL

2005-11-18 Thread Jasper Bryant-Greene
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

Re: [PHP] Re: [PHP-DB] Drag and Drop with PHP and MySQL

2005-11-18 Thread Nate Nielsen
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

Re: [PHP] APC caching keys.

2005-11-18 Thread Curt Zirzow
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)) If

Re: [PHP] Re: [PHP-DB] Drag and Drop with PHP and MySQL

2005-11-18 Thread Joe Harman
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 do

[PHP] how can I CALL a PHP script page from a TEXT LINK?

2005-11-18 Thread xkorakidis
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. In

[PHP] how can I CALL a PHP script from different TEXT LINKS with different PARAMETERS?

2005-11-18 Thread xkorakidis
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.php

[PHP] I can't see my msgs...

2005-11-18 Thread xkorakidis
I can't see my posted msgs... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] shell command

2005-11-18 Thread John Taylor-Johnston
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

Re: [PHP] php + cURL issue

2005-11-18 Thread Curt Zirzow
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 php

Re: [PHP] MySQL C API

2005-11-18 Thread Curt Zirzow
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.net/)

Re: [PHP] shell command

2005-11-18 Thread Jasper Bryant-Greene
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 for

AW: [PHP] how can I CALL a PHP script from different TEXT LINKS with differentPARAMETERS?

2005-11-18 Thread Webmaster
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 variablename=value. 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.

Re: [PHP] shell command

2005-11-18 Thread Robert Cummings
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 really a PHP

AW: [PHP] shell command

2005-11-18 Thread Mirco Blitz
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:

Re: [PHP] how can I CALL a PHP script from different TEXT LINKS with differentPARAMETERS?

2005-11-18 Thread ahmed
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 variablename=value. 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

[PHP] Re: How to build a XML DTD on the fly?

2005-11-18 Thread Erik Franzén
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 ='?xml version=1.0? !DOCTYPE foo [ !ATTLIST bar id ID #IMPLIED ] foo bar id=myId/ /foo'; $dom = new DomDocument(); $dom-loadXML($xml);

[PHP] Re: How to build a XML DTD on the fly?

2005-11-18 Thread Erik Franzén
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

[PHP] DomDocument::GetElementById - a workaround with external DTD

2005-11-18 Thread Erik Franzén
Have tried the following code: ?php // Creates an instance of the DOMImplementation class $oDomImp = new DOMImplementation; // Creates a DOMDocumentType instance $oDomDtd = $oDomImp-createDocumentType('Document', '', 'D:/CMAES/Src/dbtree.dtd'); // Creates a DOMDocument instance $oDom =

[PHP] Sorry, I copied the wrong the DTD in the code:

2005-11-18 Thread Erik Franzén
Sorry, I copied the wrong DTD into the post. The DTD is the following: !ELEMENT Document ANY !ELEMENT CMAES_Model_DbSection ANY !ATTLIST CMAES_Model_DbSection S_iSectionId ID #IMPLIED Here is the code example and result again: ?php // Creates an instance of the DOMImplementation class

Re: [PHP] DomDocument::GetElementById - a workaround with external DTD

2005-11-18 Thread Curt Zirzow
On Sat, Nov 19, 2005 at 07:05:37AM +0100, Erik Franzn wrote: ... Using the following DTD as an external file: !ELEMENT Document ANY !ELEMENT CMAES_Model_DbSection ANY !ATTLIST CMAES_Model_DbEntry E_iEntryId ID #REQUIRED The result is the following: ?xml version=1.0 encoding=iso-8859-1?