Search found 11 matches
- Wed Mar 09, 2011 3:18 am
- Forum: PHP - Code
- Topic: regex with preg_replace()function
- Replies: 4
- Views: 689
Re: regex with preg_replace()function
Thanks. it works. But could you explain me what´s the meaning of $1. here is web page I searched for regex http://www.webcheatsheet.com/php/regular_expressions.php and it saids dollar sign ($) is used to match strings that end with the given pattern. What´s 1 means? Now i have to update your code, a...
- Tue Mar 08, 2011 8:23 am
- Forum: PHP - Code
- Topic: regex with preg_replace()function
- Replies: 4
- Views: 689
regex with preg_replace()function
Hello, I need to modify a string. The original string is like $string1="34.5 333.5 34.3 456.4 667.5 456.8 "; I want to add comma(,) to every second white space so the string will look like $string2="34.5 333.5,34.3 456.4,667.5 456.8" ; So far i think preg_replace()function could ...
- Sat Jan 01, 2011 4:14 am
- Forum: PHP - Code
- Topic: how to print dom xml document
- Replies: 3
- Views: 84
Re: how to print dom xml document
Hello,
It works with firefox browser but not internet explorer. Why?
It works with firefox browser but not internet explorer. Why?
- Fri Dec 31, 2010 11:06 am
- Forum: PHP - Code
- Topic: how to print dom xml document
- Replies: 3
- Views: 84
Re: how to print dom xml document
Hello, Thanks. I put the code header ("Content-Type:text/xml"); before the echo statement, but it still gives the error: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. Invalid at the ...
- Thu Dec 30, 2010 9:04 am
- Forum: PHP - Code
- Topic: how to print dom xml document
- Replies: 3
- Views: 84
how to print dom xml document
Hello, I have a xml file created by using php domdocument. I want to display the xml file in webpage. I google it, and find the following help: http://www.phpbuilder.com/manual/en/function.dom-domdocument-savexml.php In this web page the following code <?php $doc = new DOMDocument('1.0'); // we want...
- Tue Dec 14, 2010 3:56 am
- Forum: PHP - Code
- Topic: write command line code in php
- Replies: 1
- Views: 203
write command line code in php
Hello, I have windows and apache server installed in my computer. I want to execute command line code with php. for instance, if I type this code in command line window shp2qgsql buildings.shp > bui.sql it will convert shape file to sql table in certain file directory.Now I want to develope an appli...
- Mon Nov 22, 2010 5:27 am
- Forum: PHP - Code
- Topic: read http requst
- Replies: 1
- Views: 81
read http requst
Hi, Which method can I use to read http request that sent by client. I have server(Apache) installed in my computer, and the client will send me a file by using http request POST. I want to write an php code which can listen the http request and read the file that client send me. I have been searchi...
- Sun Nov 14, 2010 3:12 am
- Forum: PHP - Theory and Design
- Topic: client and server file exchange
- Replies: 5
- Views: 2414
Re: client and server file exchange
hello, thanks. I think the link that your give me is really useful. In the post method upload method web page, it saids : " Files will, by default be stored in the server's default temporary directory, unless another location has been given with the upload_tmp_dir directive in php.ini. The serv...
- Thu Nov 11, 2010 6:40 am
- Forum: PHP - Theory and Design
- Topic: client and server file exchange
- Replies: 5
- Views: 2414
Re: client and server file exchange
hello, The xml file will be send to me(server) by http post method. If I want to read the xml file and save its element to php variable , should I use $http_post_vars[] http://in.php.net/manual/en/reserved.variables.post.php I found the link about http post request http://ruturajv.wordpress.com/2005...
- Thu Nov 11, 2010 1:37 am
- Forum: PHP - Theory and Design
- Topic: client and server file exchange
- Replies: 5
- Views: 2414
Re: client and server file exchange
Hello, Thank you very much. I do have server installed in my computer. My first task is to get the xml file from client. The person who act as client will submits data to server by using POST. she also mentioned that he will use the command curl -v -d @parameters.xml http://localhost:.... I have to ...
- Wed Nov 10, 2010 5:37 am
- Forum: PHP - Theory and Design
- Topic: client and server file exchange
- Replies: 5
- Views: 2414
client and server file exchange
Hello, I have problem in client and server file exchange. I have server installed in my computer. I have php file which is used to connect and query the database. Another person which is client will send me an xml file and I have to write piece of server software to read the xml file and save the xm...