Jump to content

Brandon_R

Members
  • Posts

    115
  • Joined

  • Last visited

    Never

Contact Methods

  • AIM
    brandonaddson
  • MSN
    brandon.add.on@live.com
  • ICQ
    597807890
  • Yahoo
    brandon.addon@yahoo.com

Profile Information

  • Gender
    Male
  • Location
    MD

Brandon_R's Achievements

Member

Member (2/5)

0

Reputation

  1. What are you trying to do? Are you trying to change the statement '$age = 0' in a php file to the value of age passed in the form? If so you will need to use string literals to built the query to search for ie '$age = ' and the post value to built the replace ie '$age = ' . $_POST['age']; and then search and replace it in the file and then rewite the new code in the file. $fileContents = file_get_contents('oldfile.php'); $newFile = str_replace('$age = 0;', '$age = ' . $_POST['age'], $fileContents); file_put_contents('oldfile.php', $newFile);
  2. Does OpenID work? I've been trying to get it to work to make logging in easier but it was to no avail. Usually i type in yahoo.com on other websites and it works but not here. The error is the identifier did not return the proper results.
  3. I actually want to match the entire psp code from an html page. Say we have a page with html such as title, head, meta, content etc. I want it to pull those psp codes from the page and hopefully into an array, one code per array element. It matches the code some times and other times it just doesn't get a match.
  4. I created a regex to match psp codes from full to basic #!!999999999 Monies 0x00000000 0x00000000 ;this is a comment 0x00000000 0x00000000 ; Mod this ;mod this #Hello 0x00000000 0x00000000 Here it is (#!*.+[\r\n]*(??:;.+[\r\n]*)*(?:0x[a-f0-9]{8}\s0x[a-f0-9]{1,8}(?:\s*;.+)*[\r\n]*)*)+) Can someone show me where i went wrong? Im pretty sure it's the newline as it checks for \r\n but im pertty sure on html pages its <br /> but still not positive. A Code can have one title and infinitly* many code lines followed by comment lines
  5. Sorry, did not see Flash Actionscript 3 (just showing one state) Silly me.
  6. It looks as though the state Washington is hard coded into the file. Make sure you are passing through the state when you click.
  7. We have a winner - PFMaBiSmAd's post Facebook Like as an example - if someone likes a page they will click it if not then don't say anything. Kinda iterating the old saying (If you ain't got anything nice to say then don't say nothing). I am in favor of a one sided rep system like a "Like" OR "Thanks" system and not a double sided one like ratings/thumbs up or down etc as those can cause trouble.
  8. Nope don't have an example, i just pictured it in my head lol and i thought it looked good Anyways thanks for reading my suggestion though.
  9. Take a look at the logo See how the question mark (?) looks like a P? How about we use that as the first (P) in PHP. Thanks
  10. Hello guys, i wrote a regex to capture a repeated group but instead it repeats the captured group only getting the last line matched. I wanted it to match _C0 Infinite LP (8000) _L 0x110E6938 0x00001F40 _L 0x110E6940 0x00001F40 _L 0x110E6950 0x00001F40 _L 0x1162A528 0x00001F40 With name tags so after the PHP regex has run, codeTitle would contain the stuff after _C0 and codeAddresses would be an array with all the lines on the left such as 110E6938, 110E6940 etc and codeValues would be an array with all the stuff on the right. So far i have ((?P<gameCodes>(_C0\s(?P<codeName>.+)\r\n(_L\s0x(?P<codeAddress>[a-f0-9]{8})\s0x(?P<codeValue>[a-f0-9]{8})(?:\r\n)?)+)))+ but that doesn't work. It only gets the last line and sometimes it doesn't even do that can you guys help?
  11. Didn't know PHPfreaks was made using the zend framework Any others?
  12. Could you guys share some websites built using the zend framework? Doesn't have to be opensource, i want to check out loading times, see what the zend framework is capable of etc? The websites can be a total zend framework application or just a part of it but i perfer total website built using the zend framework. In addition, some zend framework scripts could be helpful so i can see how it's used etc.
  13. It's better practice to have the function getName() to return private variables, as that name should be. Simply replace your echo with return and then it shall work. Then to place the name in an array create a variable like $person = array('name' -> $name); then it shall work. Then to add other values to the array $person['age'] = $age etc. On a side note since you are just beginning, you shouldn't head right in to OOP as it can be confusing if you don't know the basics.
  14. You need to run urldecode() on the variable.
  15. You would need to use javascript/ajax to perform the search and return the results in a div id. Assign some keywords to the catgory 1 select menu and when clicked on it searches the database for the keywords ie in your case glove, and returns the results in the div id you specify.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.