Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
No worries. According to DreamHost there exists a such thing as unlimited bandwidth.
-
Perhaps you haven't installed PHP properly. Do other pages get parsed?
-
The issue is with portability. It's turned off by default in PHP5+ so you risk that your script will not work in other environments.
-
To use short tags you must set short_open_tag to On. It's better to fix the code in the way dennismonsewicz said though. Edit: On Linux you can write a small shell script like this to do it quickly: #!/bin/sh grep -rl <\?= /path/to/script/root | while read filename do { sed "s/<\?=/<?php echo/g;" $filename > $filename.new mv -f $filename.new $filename rm -f $filename.new } done I didn't test it and you might want to backup your files first. Don't mind that the syntax highlighting is messed up though.
-
You need to call session_start() on the page where you wish to read the session data as well.
-
Another option is to use prepared statements: // $db is an instance of PDO $stmt = $db->prepare('INSERT INTO people (name, phone_number) VALUES(:name, :phone_number)'); $stmt->execute(array('name' => 'Daniel', 'phone_number' => 1234)); $stmt->execute(array('name' => 'John Doe', 'phone_number' => 4321)); // OR $stmt = $db->prepare('INSERT INTO people (name, phone_number) VALUES(?, ?)'); $stmt->execute(array('Daniel', 1234)); $stmt->execute(array('John Doe', 4321)); MySQLi has a syntax for this as well, but I don't use PDO.
-
That's going to be difficult. Does 01-02-2009 mean January 2 or February 1, for instance? It'll be better to enforce a particular format.
-
Note that many ISPs prohibit setting up a publicly accessible server unless you purchase a corporate subscription, which is generally more expensive.
-
Try to check this out: http://www.phpfreaks.com/tutorial/working-with-checkboxes-and-a-database
-
Oh, you're talking about the tutorials we have here. Well, I suppose you can just use your browser's bookmark feature and look it up there when/if you need it again.
-
Which training articles are you talking about?
-
School at lower levels is intended for giving you a general knowledge about a broad range of subjects. You cannot start out with high-intensity university courses that specializes on very particular areas for small children. This specialization can only come later when you've got a general understanding about many things and when you've learned to learn, so to speak.
-
http://www.majgaj.com/codeframe/project/documentation/views The global keyword is a no-go in a good application design.
-
What are you having trouble understanding?
-
Wow... completely simultaneous.
-
Yes, so unless a mod or admin approves it without checking it shouldn't be a problem.
-
How much would you charge for a MySQL/PHP web site?
Daniel0 replied to benphp's topic in Miscellaneous
This works the other way around too. If it takes you longer than you expect you can't turn around and charge for more hours. No, of course not. Not if you gave a fixed price anyway. Some people think they can just keep adding more and more features after you've begun development and agreed on a fixed price though. In that case the price should be renegotiated. -
How much would you charge for a MySQL/PHP web site?
Daniel0 replied to benphp's topic in Miscellaneous
Just remember that the quote you give is for what you agreed on. If they ask for more then they need to pay more. Make sure you make that clear. -
[tex]x^n = y \Leftrightarrow \sqrt[n]{x^n} = x = \sqrt[n]{y}[/tex], no? It's because [tex]\sqrt{a} \cdot \sqrt{b} = \sqrt{a \cdot b}[/tex] is only true for [tex]a \in \Bbb{R}^+ \cup \{0\}[/tex] and [tex]b \in \Bbb{R}^+ \cup \{0\}[/tex] or something like that. That's the "trick" or whatever... There is another "proof" that says that any integer a equals any other integer b, I just can't remember that one, but there is of course an error in that one as well.
-
My calculator says otherwise... See attachment... Stupid Texas Instruments didn't bother creating an x64 driver [attachment deleted by admin]
-
[SOLVED] Looking for Beta Testers
Daniel0 replied to Altec's topic in PHPFreaks.com Website Feedback
You may post it here. -
And you'd probably have told him to search if he created a new topic, right?
-
Yeah, that's fine but... [tex]-1 = 1[/tex] [tex]-1 = i \cdot i = \sqrt{-1} \cdot \sqrt{-1} = \sqrt{-1 \cdot -1} = \sqrt{1} = 1[/tex] I win...
-
You can assume that they've left the page if they make another request to your site or if they have been inactive for X minutes.