What is the best way to store users passwords in a MySQL database using PHP. For example, md5 or is there something better? examples would be much appreciated.
Hello, im developing a program who change his background image in function of the trending topics of twitter. So i have a function who return me a word (first TT on twitter), then i need another function that give me a url of an image relative to that word, like google images when you search or flickr. Do you know how to do this? or even better, do you have a php script made?
From what I know about PHP, the following syntax is not legal:
if ($s == Yes)
It should instead be written as:
if ($s == 'Yes')
However, the first example is working just fine. Anyone know why?
I am experimenting with finding similar text between a string and an online article. I am playing with similar_text() in php that shows the percentage a string matches. But I am trying to figure out how to echo out what similar_text() is finding that is similar. Is there any way to do this?
In mod_perl i can do something like:
$ENV{REMOTE_USER} = "username";
$r->user("username");
And then the username will show up in the username section in the logs.
Is there a way to do this in php? without having to modify apache?
Hello people!
I'm a bit confused here.
I have a php array like this Array(2010,2009,2008 ...1992) and i want to create a loop to print a menu with a four year range counting down like this
2010-2006
2005-2001
2000-1996 etc..
How can i do this Everything i tried end up in an endless loop.
THnx in advance.
J.
After I select the checkbox and press the button, the result data should display in the other page.I need to know the way I do this in php. My querry is working fine in the database and It shows the results.Now I need to display those results in the other page after selecting the first page checkbox and button(relevent to that checkbox).
If i have a website running php and apache, what do i need to be able to attach a scanner to it? How do i get the scanner to fill in a value on one of the webforms on my page?
I am trying to use PHP to make a JSON file. Part of the code is as follow
$array = array("hello", "world");
$string='{"person": [
{
"name":'$array[0];',
"age":'$array[1];'
}
]
}';
The file created. However, $array[0] and $array[1] doesn't return the values "hello" and "world" but as $array[0] and $array[1]
Any idea?
Thanks
Can anyone tell me if its possible to validate a link with php? By validate, I mean check if the link is active and works not just the actual format of the link.
Hello,
I would like to set a cookie with PHP that has to expire at the end of the month.
How can I get the number of seconds until the end of the month?
Thank you.
Hi,
Can anyone please tell if there is a simple and easy to use treeview control in php which support checkboxes?
I am looking at something that can work in IE 7 please.
I should be able to get the selected values etc.
Thanks.
hi,
currently i have 2 table in mysql
structure:
messages
id | content | user_id | time
submessages
id | subcontent | msg_id | user_id | time
submessages msg_id is FK for messages id.
Now i need to query from php
$cur_user = $user->current; // current user id.
SELECT * FROM messages WHERE id > '{$_GET['id']}' // problem here
how do i query submessages that posted by others not include current user?
thank you.
What do I need to put in a php code so that the user cannot access it even if he specified the correct url for the page they are trying to access. And redirect it to the logon page. I'm really having difficulty in this matter, everytime I click back button on the browser the user can still access the page
is it possible to return findOne result as object ..or it always return an array?
i found something about mongo.objects = 1 adding to php.ini ..but did not work for me.
can some one tell me more about this?
Hi All
I just installed php 5.3.1 in my linux server and now my old work which i used to write with tags is not working at all..
Please help me out..
How can i resolve this??
hi,
what does this construct mean in PHP ? It is storing a variable called "function" with his String value in an array ?
array('function' => 'theme_select_as_checkboxes')
thanks
hello
i want to create a special php and javascript page. but i want to use it into my wordpress so i want to use the exact theme that is already there in my wordpress. how to do that?
Thanks
Hi guys.
I have :
<a href="http://abc.com">Title</a>
And :
<a href="http://xyz.com">Title</a>
I want to replace link to text "Title", but only from http://abc.com. But I don't know how ( I tried Google ), can you explain for me. I'm not good in PHP.
Thanks in advance.
hi all,
i m searching for a php script that download video from any video site( youtube,metacafe etc..) by submitting only url of that video.
is that possible by one script or i have to search different script for different site??
what is basic need to download video???
please reply ASAP.
thank for support me always.