TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05-22-2009, 03:30 AM   #1 (permalink)
The Contributor
 
Join Date: Oct 2008
Posts: 75
Thanks: 4
9three is on a distinguished road
Default Wrong output

Hey,

I'm trying to output only whats within the quotes ""

PHP Code:
$this->pc file_get_contents('http://www.url.com'FALSENULL0140);
preg_match('~currentPage="(.+?)"~is'$this->pc$this->pc_start);
$PcStart str_replace('~currentPage="(.+?)"~is''(.+?)'$this->pc_start[0]);
    
echo 
$PcStart
When I echo it, it shows currentPage="1". It should only show the integer(int can be anywhere from 1 - 4,000). I'm not good with reg ex though.

Any help? thanks :)
9three is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in PHP?/Unknown output? Y.P.Y Advanced PHP Programming 10 04-25-2009 06:44 PM
Save output from foreach into an array Sam Granger Absolute Beginners 2 01-15-2009 02:07 AM
Unexpected characters in output Killswitch Absolute Beginners 2 12-20-2008 04:29 AM
PHP Security: Escape Output nuweb General 4 11-24-2008 08:00 PM
Smarty output buffering? Aaron Libraries & Extensions 4 08-13-2008 09:35 AM


All times are GMT. The time now is 12:21 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design