Search found 8 matches
- Sat Nov 23, 2013 12:23 am
- Forum: Regex
- Topic: Replacing tags..
- Replies: 4
- Views: 11252
Re: Replacing tags..
Here's what I came up with: $this->task_msg = preg_replace_callback('/\{([^{}]+)\}/', $this->function($this->matches) $this->use($this->vars) { if (isset($this->vars[$this->matches[1]])) { return $this->vars[$this->matches[1]][$this->vars[$this->vars[$this->matches[1]]]]; } else { // what if the ter...
- Fri Nov 22, 2013 3:51 pm
- Forum: Regex
- Topic: Replacing tags..
- Replies: 4
- Views: 11252
Replacing tags..
So I am writing something that's like displays text, but uses its replaces certain text with its own random text conditions. For example: The string would be: "This '{word}' is a {something} word where $var['word'] = 'booze', 'smoke', 'haha' $var['something'] = 'funny', 'not funny', 'ugly' So I...
- Sun Apr 21, 2013 10:25 pm
- Forum: The Enterprise
- Topic: Places to sell php scripts?
- Replies: 1
- Views: 24464
Places to sell php scripts?
Anyone know of some good site's to buy/sell php scripts besides codecanyon?
- Sat Apr 20, 2013 2:01 pm
- Forum: PHP - Code
- Topic: True OOP =)
- Replies: 3
- Views: 803
Re: True OOP =)
So how can I rid of passing paramaters and use extends and/or implements?
- Sat Apr 20, 2013 11:21 am
- Forum: PHP - Code
- Topic: True OOP =)
- Replies: 3
- Views: 803
True OOP =)
So many many years ago, someone once told me I could create an OOP script like this: I havn't learned any new technique's in many years with extend or implements. How can I convert these to that. My INDEX <?php session_start(); include 'includes/includes.php'; if(!empty($_GET['where'])) { if(is_file...
- Tue Feb 19, 2013 2:13 pm
- Forum: PHP - Code
- Topic: curl not sending post field's to my page.
- Replies: 6
- Views: 1899
Re: curl not sending post field's to my page.
curl must be taking the . out because it is reaching my postbacktest.php page.
the problem wasn't within that script.
it was in the postbacktest.php page. I was using $_GET's instead of $_POST's
the problem wasn't within that script.
it was in the postbacktest.php page. I was using $_GET's instead of $_POST's
- Mon Feb 18, 2013 10:02 pm
- Forum: PHP - Code
- Topic: curl not sending post field's to my page.
- Replies: 6
- Views: 1899
Re: curl not sending post field's to my page.
here is my debug.txt file * About to connect() to www.textgamemaker.com port 80 (#0) * Trying 50.22.195.155... * connected * Connected to www.textgamemaker.com (50.22.195.155) port 80 (#0) > POST /postbacktestphp HTTP/1.1 Host: www.textgamemaker.com Accept: */* Content-Length: 47 Content-Type: appli...
- Mon Feb 18, 2013 1:05 pm
- Forum: PHP - Code
- Topic: curl not sending post field's to my page.
- Replies: 6
- Views: 1899
curl not sending post field's to my page.
I am trying to make part of my script send some data to another page. It doesn't seem to be working correctly. It connects to the URL it is suppose to, but it doesn't post the fields. My code: $postvars=''; $sep=''; foreach($fields as $key=>$value) { $postvars.= $sep.urlencode($key).'='.urlencode($v...