First, I have researched this on SO and Google already. In fact, based on this, I'm pretty skeptical that what I need exists. I'm almost at the point where I might give up the next 6 months of my life to write something from scratch, since it seems obvious that everyone wants a server-side form filler native to PHP.
Okay, sorry for the ...
Is there a function that can return the name of the current function a program is executing?
...
Hi guys,
The session in my application often gets expired.
session_gc_maxlifetime is set to 24 minutes(default);
since my apps is a real time application that basically uses AJAX. Every second my ajax function calls a http request. As far as i know my session should not expire because it always called upon the ajax request.
It works ...
Hi,
I just wanted to know is there any free sms gateway for sending SMS. If there is one, how to go on to developing my free sms service/software?
Any guidelines please.
Thanks
...
My site is php based and the host disabled exec() and passthru() and system(). I have a script that needs these functions. Is there any work arounds?
The commands my script to run is simple mysqldump to backup my database. If there's no work arounds to use those functions. Is there another way to do the backup without the need to use th...
I want to remove the label "Search" in Joomla search module (default search module). I have modified the default_form.php from the directory /joomla15/components/com_search/views/search/tmpl/
and even removed the following code but it makes no difference on the site:
<label for="search_searchword">
<?php echo JText::_( 'Search K...
Along the lines of the ridicolously simple strtotime() function, Is there a simple way to parse strings such as "1 hour 30 mins", "1.5 hours", "90 mins", "an hour and a half" into an integer value representing the corresponding number of seconds?
...
$result = mysql_query("SELECT avg(r.rate) FROM rate r where ImgName='1'");
this php is not working.
Originally my code is
<?php
$con = mysql_connect("localhost","root","sql");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("photogallery", $con);
$result = mysql_query("SELECT avg(r.rate) FROM rate r ...
Hello,
I want to know if there exists php treeview with data from mysql. I haven't found a suitalbe one for my project. Do you know if there is some plugins or code samples out there?
Thanks a lot.
Edit:
jQuery Treeview's asyncronous example, link text
I found it can work, but i don't know how to get the source.php. Do you have ...
Hi,
I'm looking to achieve the effect facebook has when you put a link into a message - they scrape the title and some images from it.
I noticed they also do it extremely quickly. (they must cache some of the re-sent items?)
Does anyone have any ideas on how to approach this with PHP?
Can I somehow quickly grab the <title> block of the...
I am using the PHP OpenID library from http://openidenabled.com on my site. However, I just realised I need to support Return URL Verification. How can I do that with this class? I paged through the docs but I couldn't find anything.
Edit: forgot to mention it is a CONSUMER application.
...
About break
foreach ( $data as $k => $v ) {
if ( $k == 4 ) {
break;
}
}
every one knows.
Is there something similar in Smarty's or Dwoo's {foreach} function ?
...
Hello Everyone...
Friends i am a newbie in php and trying to learn it more and more...
I am telling you my problem what i am facing
i have a employee signinform which have one username box and one password box with signin button..Now on the action page of this signinform i have given adress of signinvarification form..which matches th...
how can I maximize the use of add code in my php, here is my code:
create.php
mysql_select_db("koro", $con);
$sql="INSERT INTO students (IDNUMBER, LNAME, FNAME, MNAME, GRADEYR, ADDRESS)
VALUES ('$_POST[INAME]', '$_POST[LName]', '$_POST[FName]', '$_POST[MName]', '$...
I am currently working on an application that needs to analyse a number of images and figure out what color they're closest to.
Therefore I found a code snippet that does exactly that:
function analyzeImageColors($im, $xCount =3, $yCount =3)
{
//get dimensions for image
$imWidth =imagesx($im);
$imHeight =imagesy($im);
...
Hello All,
i'm asking about htaccess url rewrite ( mod_rewrite )
actually i want to change below URL
http://localhost/project/cms/edit_item.php?id=MYc= ( actually this is base 64 encoded)
to
http://localhost/project/cms/edit_item.php/id/MYc=
i do it like this on .htaccess file
RewriteEngine on
RewriteRule ^([\-_0-9A-...
if ($page_title->exists()) {
//the rest of the code is in php.here i insert a javascript for the confirm box.
echo'<script type= "text/javascript" >
var b=confirm("This page already exists.would you want to edit");
if(b == true)
//here i want to assign a php variable , say for eg. $a to 1 so that i can use that value of $a...
hello , i am trying to learn eZ publish CMS , and i could not find any decent tutorials which is easy to understand and learn , plz if anybody could help me out with the links to any useful tutorials i would really appreciate it....
...
Hi there people and greetings from Sweden!
I have a really tricky problem here. I'll try to show exactly what I mean.
I'm building a modulebased CMS, and some modules inherit from a parent module. My problem is that the parent modules need to be included before the "children".
I fetch moduleinfo from a XML file and store it in an arra...
I'm trying to fetch all profiles for some Google Analytics account in PHP. I'm using HTTP_Request2 class from PEAR (with cURL adapter, but I've also tried with Socket) and I keep getting "Target feed is read-only" error when I try to fetch data from https://www.google.com/analytics/feeds/accounts/default
I'm using ClientLogin auth metho...