rubing
-
Posts
366 -
Joined
-
Last visited
Never
Posts posted by rubing
-
-
I really like the user system that Marc Wandschneider lays out in his book Core Web Application Programming with PHP and MySQL. I think he has updated source code for it on his website.
-
that's a problem with your fields dude.
-
well i make extra money by doing exotic dancing for their parties sometimes. i know it's a little bit degrading, but hell we all know that coding doesn't pay the bills anymore...with the economy crashing and all the smart poor people out there in the 3rd world willing to code just for rice and stringbeans.
-
They also like the fact that i'm hung like ron jeremy...Oh yeah baby!
-
i don't think so my mom and her friends always tell me i'm a sexy guy.
-
this was kind of like my idea to connect an infra-red or temperature sensor to my computer, so i could analyze whether my blind dates were getting hot for me and ready to shag.
-
I always wondered about the legality issue of scraping...thanks crayon!
I don't like the idea of screen scraping b/c it seems you have to be constantly monitoring a site for changes to its layout. So, that you can rewrite your regex's whenever the site changes. It seems like if you're gonna end up giving the site more traffic they would want to cooperate with you.
Just out of your curiousity what would you do if your IP was banned? I guess you could use a proxy, but it seems a lot of those are unreliable.
-
it looks like those sites already have search engines on them. If a site doesn't have an api, you would have to figure out some way to spider it and extract the info you want. I'm not sure of the legality of this though. You may want to just contact the site and see if they're interested in collaborating with you....maybe you can come to some kind of mutually beneficial arrangement
-
I don't understand...maybe b/c i'm not familiar with word press. These are blog posts you are making. And you are trying to insert info_ID, category, and info_text into your DB???
//you need to define a connection to your DB first $sql="INSERT INTO Info (info_ID, category, info_text) VALUES ("#", "category", "text") $conn->query($sql);
-
No problem.
-
Post your entire script and the exact error message
-
$two = explode(",", $mrow->mList);
-
here's what you need to do:
echo the values of $password, $salt, and $hash in your script that inserts into the DB as well as the other script. Now check that everything is consistent.
-
So, you are comparing hashes of 2 different strings.
The value in your database is a hash of the string 'password'
where as the value of $hash in your php script is a hash of the string 'passwordhashme'
-
gee...where were you when it mattered ???
-
how did you get the value for $myhash?
-
It sounds like your classes are designed in a bad way. Why don't you set up a parent class with all of the main methods (functions) that you want and then child classes, which extend from it.
you probably don't want to include a new file that's gonna overwrite some existing method.
-
I guess that answers the question.
To summarize:
1. Posting a variable with an empty string, results in NULL value
2. Setting a variable as empty string does not result in NULL value
How marvelous! What a wonderful php adventure that was. I hope you learned something folks.
-
On the php side you just need to say
print_r($POST);
and then we can try using a form like the OT and then maybe curl as well. of course this may not answer our question, but would be fairly easy.
After that we may need to use a tool like Live HTTP headers in order to see what the browser is outputting. Anyways, I have to go to the gym and then eat, so will be back later to see your result... Good luck!
-
hmmm....that's not really what i was trying to get at. The OT wanted to know why his POST variable was coming up NULL. So, he asked us (very lazy) whether php considers an empty string to be null. We proved otherwise, by simply trying it out. So, now I am wondering does the browser post an empty string as NULL? Or does php unset the empty POST variable?
It's a very esoteric question, which really has no value. Other than to help me procrastinate from writing my thesis.
-
So, justin what do you think is happening with the empty POST variable? and how could we test that?
-
good work justin! you are quite the php detective.
-
I dont' think an empty string is considered NULL. I think rather that an empty POST value as translated as NULL.
Why don't you experment and report back to us, I would like to know.
try setting a variable as empty:
$var = "";
then test if it's null:
is_null ( $var );
-
I would check to see if the session id is set using the get session id function
[SOLVED] order by not working
in PHP Coding Help
Posted
And what is being inserted?? the time of insertion, correct?