Search found 10 matches
- Mon Oct 02, 2006 4:43 pm
- Forum: PHP - Code
- Topic: page timing
- Replies: 2
- Views: 466
I would recommend using the time() function and use unix time stamps, then if you need to add time to it, you can use this formula: $initialtime = time(); $threedays = $initialtime + (3 * 24 * 60 * 60);// 3 days x 24 hours x 60 min x 60 sec What this will do is add 3 days to your time stamp. Just ch...
- Mon Oct 02, 2006 4:35 pm
- Forum: PHP - Code
- Topic: creating a file on a remote server
- Replies: 4
- Views: 485
Just use $handle = fopen($filename, 'a'); fwrite($handle, $content); It will try to write to a file, or create it if it doens't exist. I don't know if you can give the file a username/password, but you could create a sub-folder for each user that is named after their user ID or some other identifier.
- Wed Sep 20, 2006 9:34 am
- Forum: Regex
- Topic: [SOLVED] Regular expression throwing error
- Replies: 3
- Views: 1877
- Wed Sep 20, 2006 9:21 am
- Forum: Regex
- Topic: [SOLVED] Regular expression throwing error
- Replies: 3
- Views: 1877
[SOLVED] Regular expression throwing error
Hey all, I am using a regular expression to break down links in the <a href> tag. I am using the regular expression below: preg_match_all("<a[\s]+[^>]*?href[\s]?=[\s\"\']*(.*?)[\"\']*.*?>([^<]+|.*?)?<\/a>",$data,$title_matches); but it causes this error: Warning: preg_match_all()...
- Tue Sep 12, 2006 11:14 am
- Forum: PHP - Code
- Topic: [SOLVED] PEAR::SOAP
- Replies: 13
- Views: 1186
[SOLVED] PEAR::SOAP
Excellent! That helped me get at least a temporary solution. Hopefully PEAR::SOAP finalizes a release and we get some better docs on the net. I wish I had the capacity to read the technical docs and figure it all out and be able to write a tut, but that is just not me. Thanks again!
- Mon Sep 11, 2006 3:57 pm
- Forum: PHP - Code
- Topic: [SOLVED] PEAR::SOAP
- Replies: 13
- Views: 1186
I am using php 4. Does anyone have any ideas for parsing in php 4? Here is the xml I need to parse: <result><success>True</success><message>Call was successful</message><data><Listings><Listing><id>6509880</id><AreaName>UT: Ogden (All)</AreaName><AreaId>157</AreaId><Street>3075 Polk</Street><City>Og...
- Fri Sep 08, 2006 9:40 am
- Forum: PHP - Code
- Topic: [SOLVED] PEAR::SOAP
- Replies: 13
- Views: 1186
Re: PEAR::SOAP
The problem is I don't know how to parse that data into a usable php array. I need to be able to manipulate and format that data to display it on a website. That was the intent of the original post. I don't know how to pass it to a parser. Does PEAR::SOAP have a parser, or are there some other func...
- Thu Sep 07, 2006 4:25 pm
- Forum: PHP - Code
- Topic: [SOLVED] PEAR::SOAP
- Replies: 13
- Views: 1186
- Thu Sep 07, 2006 12:16 pm
- Forum: PHP - Code
- Topic: [SOLVED] PEAR::SOAP
- Replies: 13
- Views: 1186
- Wed Sep 06, 2006 10:52 am
- Forum: PHP - Code
- Topic: [SOLVED] PEAR::SOAP
- Replies: 13
- Views: 1186
[SOLVED] PEAR::SOAP
I need some help really bad. I am using pear::soap to connect to a webservice. I am connecting fine and receiving a proper response. The problem is I don't know how to parse that data into a usable php array. I need to be able to manipulate and format that data to display it on a website. I am not d...