Search found 6 matches

by smstromb
Thu Mar 11, 2010 8:56 pm
Forum: PHP - Code
Topic: Can't spot the error in mysql querry
Replies: 1
Views: 157

Can't spot the error in mysql querry

mysql_query("INSERT INTO Documents (id, name, photo, location, tags) VALUES(1, 'Credit Report', 'credit_report.png', 'Drawer: Credit', 'Name-0.1034-0.1373-0.1269-0.0167-Date-0.5475-0.1029-0.0740-0.0133')"); Can anyone spot the error(s)? I've been staring at it for awhile but can't find an...
by smstromb
Thu Nov 19, 2009 8:40 pm
Forum: PHP - Code
Topic: Youtube Video Downloader Script
Replies: 2
Views: 313

Re: Youtube Video Downloader Script

I've discovered the issue and it appears to be youtube related. Apparently the video hash corresponds to the IP address that requests it, so using the link on another machine with a different IP won't work. This is why it only works on my localhost machine and not my servers, and why the url generat...
by smstromb
Thu Nov 19, 2009 5:52 pm
Forum: PHP - Code
Topic: Youtube Video Downloader Script
Replies: 2
Views: 313

Youtube Video Downloader Script

I'm writing a php function that when given a url to a youtube video, returns a new url to download the video in mp4 format. For those of you who don't know how youtube videos work you can access the mp4 version of a youtube video with the following URL format: Given the url: http://www.youtube.com/w...
by smstromb
Thu May 21, 2009 2:24 pm
Forum: PHP - Code
Topic: Scheduled Events
Replies: 2
Views: 55

Re: Scheduled Events

I can't do this. The posts are being sent to twitter using their API so when they are sent they are displayed on twitter immediately. I want to be able to give the user the choice of setting a delay on their post.
by smstromb
Thu May 21, 2009 1:54 pm
Forum: PHP - Code
Topic: Help with a simple function?
Replies: 3
Views: 86

Re: Help with a simple function?

Unless that array is global, you're going to have scope issues. Try passing the array to the function as a parameter.
by smstromb
Thu May 21, 2009 1:47 pm
Forum: PHP - Code
Topic: Scheduled Events
Replies: 2
Views: 55

Scheduled Events

I'm trying to create a website that allows users to blog information but they can set a time delay on it before it's posted. So for example if a user writes a story and set's a time delay of 30 minutes on it, it would wait 30 minutes before it would be posted. How do I set up scheduled events in PhP...