
Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
script that takes a long time to execute.
Daniel0 replied to arkleyjoe's topic in Application Design
flush -
[SOLVED] Check if array/var is directory or file
Daniel0 replied to JMair's topic in PHP Coding Help
Maybe you should check out what var_dump does -
Need to limit the character count to 140 in a text area
Daniel0 replied to tecate1's topic in PHP Coding Help
We cannot really tell. You would check the length immediately before inserting it into the database. It is probably doing some other sort of validation during the form processing. If you have absolutely no experience with programming whatsoever, you should start a simpler project though. -
[SOLVED] Check if array/var is directory or file
Daniel0 replied to JMair's topic in PHP Coding Help
The PHP documentation team can. is_dir is_file -
Need to limit the character count to 140 in a text area
Daniel0 replied to tecate1's topic in PHP Coding Help
if (strlen($string) > 140) { echo 'too long'; } Then remove the part that makes it moderated. -
Do you have error reporting on?
-
I suppose you can do this: return strpos($string, 'No <b><a href="http://dmoz.org/">Open Directory Project</a></b> results found') !== false; Then it'll return false if there is no listing for that domain.
-
You can do it on any platform. Check out the PHP manual for more information. It's got a section about the CLI.
-
That is because CLI means Command Line Interface. So PHP CLI would be using PHP from the command line.
-
I've got a VPS. A dedicated server would be overkill for my needs.
-
That's quite a surprise to me. As I said, it is something I would expect from any web host. Then again, I've never purchased shared hosting.
-
I would expect all webhosts to have that.
-
That doesn't necessarily mean you cannot write a TDD primer.
-
What do you mean with "doing .htaccess on a folder"? .htaccess files just contain Apache configuration directives. Not only does it have nothing to do with PHP whatsoever, but it can all be looked up in the Apache documentation.
-
Here is yet another alternative: http://devzone.zend.com/article/4571-Fetching-multiple-random-rows-from-a-database
-
A sub query returns a result, like all queries do, and you can use that result as a variable in your query. That's it, essentially.
-
http://web.archive.org/web/20080209154336/http://www.phpit.net/article/simple-mvc-php5/
-
A login script is essentially so simple that it's not even worth dedicating a tutorial for that. Stuff involved is essentially form processing, database access and sessions/cookies. We have a tutorial for sessions and cookies and we have one for database access and another one focusing on joins and unions. Then you have form processing, but that's fairly straightforward. You simply read from the $_GET or $_POST superglobal. You might also be interested in this blog post that talks about breaking a script/application down into logical elements the same way I just did.
-
You mean like this? http://www.phpfreaks.com/tutorial/debugging-a-beginners-guide
-
Please do not post links to download copyrighted material that you do not have the right to redistribute yourself.
-
I'll sticky this for further reference and in case other people might know books that people might find useful.
-
I can't remember when I've last used FTP. I always use SSH, SCP and SVN.
-
I've read some of SitePoint's Simply JavaScript. At the time I read it I found it pretty good.
-
[quote author=lukkyjay link=topic=119433.msg728404#msg728404 date=1193718287] I'm just now starting to learn php for a project on my own site. I don't understand how a WYSIWYG would work with php, but that would be awesome if it were actually possible. Can you get specific about the best WYSIWYG for a beginner? [/quote] WYSIWYG is for HTML only. Best is a matter of personal preference and hence the reason why this and [url=http://www.phpfreaks.com/forums/index.php/topic,54859.0.html]this[/url] topic are created.