How to link a HTML link like this - <a href="#">Click here to log out</a>
to a PHP function like - logout()
What I need to do is, when people click a link, php will run the php function.
Please advice! :D
...
In more details:
I want to build a web service to which users register and by browsing my site, users can send blog posts to their own blogs. Initially wordpress.org is discussed. However, I'll be happy to hear solutions for typepad or wordpress.com as well.
The ideal solution would be a way for my server to simply "tell" their blog wh...
Hi There,
When I try to run my site it gives error as Internal Server error, when I refresh the page I get my result properly.The error page looks like this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@te...
Hi
I am having a list box like this ,the list box is populated from the database
<td bgcolor="#FFFFCC">
<select name="listbox" id="FriendmailId" size="3" >
<option value="0">Select User From List</option>
<? foreach($searchfriend as $row)
{?>
<option value=""><?=$row['dEmailID'];?></option>
<? } ?>
</select>
</td>
The values are li...
What I want to do is replace the "[replace]" in input string with the corresponding vaule in the replace array. The total number of values will change but there will always be the same number in the replace array as in input string. I have tried doing this with preg_replace and preg_replace_callback but I can't get the pattern right for ...
I am currently doing unit testing, and use folders to organize my test cases. All cases pertaining to managing of user accounts, for example, go under \tests\accounts. Over time, there are more test cases, and I begin to seperate the cases by types, such as \tests\accounts\create, \tests\account\update and etc.
However, one annoying pro...
Currently im just using something like:
in the DB Table:
access: home,register,login
and then in each page:
if(!Functions::has_rights('content'))
{
Functions::noAccess();
}
is there more efficient way to do it, php & MySQL? i may want to gain access even to several parts a page, for example: user can read a page, but doesnt ...
Hello friends.
I have one problem regarding CURL.
I am trying send CURL request to http://whatismyipaddress.com
so..
is there any way to get curl response in array ?
because right now it display the HTML Page but i want the response in array.
here is my code...
$ipAdd = '121.101.152.170';
$ch = curl_init("http://whatismyipaddress.com...
Hello awesome people,
I want to add a custom field on Add A New Post page.
Like - if I am to make a plugin which will post links to Twitter after a new post is made, I would like to give ability to user to select if he wants to tweet that particular post's link to Twitter. I want to display a check box somewhere in the page which says ...
How to convert this date
2010-05-25 04:55:01 CST (America/Chicago)
to PST (America/Los_Angeles) timezone?
...
I want to change
<lang class='brush:xhtml'>test</lang>
to
<pre class='brush:xhtml'>test</pre>
my code like that.
<?php
$content="<lang class='brush:xhtml'>test</lang>";
$pattern=array();
$replace=array();
$pattern[0]="/<lang class=([A-Za-z='\":])* </";
$replace[0]="<pre $1>";
$pattern[1]="/<lang&...
Hi everyone,
I try to find the way to get just a part of a web source page ? I'm using php to get the all source code of the page but i don't need to get the entire page source.
Is someone can help me please ?
Joe
...
Hi guys I'm following the example code as defined on this website: http://www.ibm.com/developerworks/opensource/library/x-phpgooglecontact/index.html
I want to be able to integrate with my google apps account and play around with teh contacts. However I get this error whenever I try to run the modify contacts code:
If-Match or If-None-...
I've noticed that the first condition does not work
if (empty($ss)) {
echo "please write your search words";
}
but the second does
else if ($num < 1) {
echo "not found any like ";
full code
<?php
require_once "conf.php";
$ss= $_POST["ss"];
$sql2=("SELECT * FROM student WHERE snum = $ss");
$rs2 = mysql_query($sql2) or die(m...
Possible Duplicate:
Secure, customizeable, open-source chat engine on PHP/JavaScript for all popular browsers
Hi
I am about to do a chat function for a social networking site using php
I want to gain inputs to do it .... Can any one suggest me which is the best method to do chat function in php
...
Hi,
In my site I have a list of categories and I have to put meta keywords and description for them.I have a single page where I will retrieve the categories from the database.
Can anyone tell me how to make this much simpler to put meta tags for all the categories.
Regards,
Rekha
http://hiox.org
...
I am trying to build a website with mysql and php. This is the first site I have attempted so I want to write a little plan and get some feedback.
The site allows users to add some text in a text field as a “comment”. Once the comment has been entered into the site it is added to the database where it can be voted for by other users.
W...
I have just setup my website locally so I can test my pages more easily.
Eclipse has been configured to use an XAMPP server locally.
The problem is that I want to map my project to a certain place in my website.
ie. In my Eclipse PHP project I have a folder called
com
I want this to map to
/com
in the webstie.
I tried to do th...
Hello,
After using stackoverflow for weeks i am just addicted by its system and the "badges" system. Is it possible to create a simple Q&A board with this concept or is there any tutorials ?
...
We are doing a project – we have to develop website, that displays a list with all proxy servers and, when user clicks on particular server, it will be activated for him.
For this I am undecided on whether to use Java or PHP. Which is simpler to handle proxys?
Please help me.
...