Jump to content

GRMrGecko

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Contact Methods

  • AIM
    GRMrGecko
  • MSN
    GRMrGecko@hotmail.com
  • Website URL
    http://www.programmerslife.co.cc
  • Yahoo
    GRMrGecko

Profile Information

  • Gender
    Not Telling

GRMrGecko's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No it wasn't solved yet, but this should work for me. preg_match("/\"next\"[0-9]+)/i", $json, $matches);
  2. Actually when I ran it through number_format, it came out as 1313527373619043072, which is almost the right value.
  3. Wouldn't it be easier to parse it out using perg_match and then use what was parsesed out?
  4. Problem with that is I'm getting it from twitter and I can't make them make it a string...
  5. Hello, I have the value in json that I'm parsing using json_decode($json); and it should be 1313527373619043141 but it ends up as 1.31352737362E+18. What's wrong? How can I get 1313527373619043141. Example here. $json = "{\"next\":1313527373619043141}"; $json_obj = json_decode($json); echo "json data: $json\n"; print_r($json_obj);
  6. So why do you use ~ for that? As you can tell, I'm pretty new to regular expression.
  7. Hello, I'm trying to figure out how to tell the difference between an email and a @username using perg_replace. My current code is $text = preg_replace("/(\\S+@\\S+\\.\\w+)/i", "<a href=\"mailto:$1\">$1</a>", $text); $text = preg_replace("/@([A-Za-z0-9_]+)/i", "@<a href=\"http://twitter.com/$1\" target=\"_blank\">$1</a>", $text); This doesn't work when there is actually an email as it thinks the email is the username. Any help? Thanks, Mr. Gecko
  8. Hello I can't quite figure out how to get sendmail to work each time I send an email in /var/log/mail.log i see that it finds the mx records and IP but it times out when it try's to connect. have any one got sendmail to work with mac I have postfix installed but it does the same thing happens when I send an email with mail and the settings to localhost:25. I am running mac os x 10.5.
  9. i have a mac is there a email sever for mac
  10. i don't know do you mean like sendmail?
  11. i'm on my own server i compiled and i spilled right
  12. i need help with mail i made this simple script <? if(mail("mysever@myserver.net","Test Web Server","Testing","From: My Name <mysever@myserver.net>\n")){ echo "Worked"; } else { echo "Did Not Work"; } ?> it replies worked but i don't receive any thing please help this is my php info
  13. i tried <? if(mail("mysever@myserver.net","Test Web Server","Testing","From: My Name <mysever@myserver.net>\n")){ echo "Worked"; } else { echo "Did Not Work"; } ?> and it replied with worked but i never received it
  14. i got exec to work the codec was not supported by ffmpeg but i have a the same prob with mail
×
×
  • 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.