scootstah
Staff Alumni-
Posts
3,858 -
Joined
-
Last visited
-
Days Won
29
Everything posted by scootstah
-
They still rotate - at least in my JSFiddle I linked.
-
Fatal error: Call to undefined function: filter_input()
scootstah replied to keaauBoy's topic in PHP Coding Help
Who is your web host? Refer to the post that Psycho referenced to see if that applies to you as well. -
Fatal error: Call to undefined function: filter_input()
scootstah replied to keaauBoy's topic in PHP Coding Help
I would hope to hell there is not still webhosts running PHP4. But I know I'm probably wrong... -
Fatal error: Call to undefined function: filter_input()
scootstah replied to keaauBoy's topic in PHP Coding Help
Who is your webhost? You're probably going to have to bring this up in a support request. -
PHP returning D/M/Y and Time and I only want the D/M or D/M/Y
scootstah replied to bwadamcik's topic in Third Party Scripts
Why are you going in and out of PHP tags on every line? That's completely unnecessary and makes your code very hard to follow. You can do that with date(). If you just have a date/time string instead of a UNIX timestamp, you can use strtotime() or the DateTime library to create one first. -
What is failing? What does goToBusinessIndex() do? Where is it defined?
-
gzuncompress() behaves differently on 2 server.
scootstah replied to sftd's topic in PHP Coding Help
It shouldn't, but it might behave differently between versions. gzuncompress is for Zlib. You probably want gzdecode instead. EDIT: But either way the file you attached doesn't seem to be valid. The Linux gzip tools cannot view it either. -
gzuncompress() behaves differently on 2 server.
scootstah replied to sftd's topic in PHP Coding Help
The file you attached is not a valid gzip file. How did you create it? -
gzuncompress() behaves differently on 2 server.
scootstah replied to sftd's topic in PHP Coding Help
It would help if you post code and the error you're getting. -
How to send Mail from Wampserver ( localhost )
scootstah replied to cadamuro's topic in PHP Coding Help
Heyyyy you got a red badge. Is Zane drunk again? -
How to send Mail from Wampserver ( localhost )
scootstah replied to cadamuro's topic in PHP Coding Help
I'm not sure what the point of this post is, since there is clearly no question here. But for the record, I prefer to use MailCatcher for local development stuff. It's dead simple to setup and works great. All sent emails are captured in the same "inbox", which makes testing super easy. -
You need to modify this part to add additional items to $_SESSION: if (mysql_num_rows($query) == 1) { $row = mysql_fetch_assoc($query); $_SESSION['username'] = $row['username']; $_SESSION['userID'] = $row['userID']; $_SESSION['password'] = $row['password']; $_SESSION['loggedin'] = true; return true; }
-
CodeAcademy is typically well-regarded, although I've never used it personally. The key is to find resources that were created/updated within the last two years. If you find a blog article from 2007, it's not going to even be worth it to read. PHP has changed substantially over the years, as has web development as a whole.
-
You can't just make up element names. There is a formal spec of named elements that you may use. Aside from that, your two buttons are not side-by-side because they have very large margins. Fixed here: http://jsfiddle.net/LntLnky6/
-
Filtering data using filter_var_array before storing it into a DB
scootstah replied to ajoo's topic in Applications
How are they stored? As a string like that? -
Oh, bummer. You can find more by just browsing lowendbox. DigitalOcean has a $5/month package, and they are a super solid company with excellent services. Or, you can find shared hosting for around $5/month as well from most of the big players.
-
api; echo result-> browser interpretes html tags problem
scootstah replied to Jeisson's topic in PHP Coding Help
Yes. Then you'd be able to see the HTML on your screen. The other way is to write the response to a file, and then you'd have the raw response body. $results = file_get_contents($url); file_put_contents('response.txt', $results); json_decode() does not care about HTML. -
You can get webhosting for literally the price of coffee. For example here is a VPS that will run a small site for $15/year.
-
api; echo result-> browser interpretes html tags problem
scootstah replied to Jeisson's topic in PHP Coding Help
You can either write to a file or use htmlspecialchars to display the raw HTML. -
Your framework repo needs some work. You need proper directory structure and namespacing on your classes. And you definitely need dependency injection, so that you don't have to do things like this: Check out Pimple.
-
PHP 5.4 reached its end of life support this month. It will no longer receive security updates. 5.2 reached its end of life almost 5 years ago. It's time to upgrade man.
-
What does "broken" mean?