Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP

Name: Anonymous 2006-05-22 3:02

I was wondering if there was a better way of doing this so I dont look like a retard on the un-anonymous internets:

include("http//www.instructables/... .$project. "");

Thanks gurus of /prog/

Name: Anonymous 2006-05-22 3:39

>>1
Why the empty string at the end?

And no better way, but be very careful when including anything that has anything to do with a variable. For example, if it's not to be a directory or have arguments, assert so with a regex like /^\w+$/ . preg_match returns false if it won't match (regex, subject). Finally, it's generally preferred to avoid parenthesis in include and require because they are not functions but statements.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List