Hey Guys,
I'm looking for a SQLite query which will return values that are great or less than 0.014763 for the lng and 0.008830 for the lat. I'm using the following code...
$latupp = $_REQUEST['currlat'] + 0.008830;
$latlow = $_REQUEST['currlat'] - 0.008830;
$lngupp = $_REQUEST['currlng'] + 0.014763;
$lnglow = $_REQUEST['currlng']...
Dear friends,
I have written the code for getting data from the database and store it in the Excel sheet.I want to download the excel file only. But the following code give the PHP file output as my excel file content. But I need to download the Excel file which is created in the PHP file.
<?php
$start_date="01/06/2010";
...
Is it possible?
Let's say my directory structure looks like this:
/data
/data/images
/public
The document root is in the "public" directory. This won't work, of course:
<img src="/../data/images/1.png" alt="" />
But maybe it's possible to enable serving images from directory above document root somehow? I would like to know.
...
Hi every body and plz help me
i want to use search in php through list. if i select any one option from list and click on search button than find me that records which i want to search.
e.g. i've create list for two values like female and male.
...
What is the difference between the hashing methods available in php
md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256
ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,
4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20
haval128,3 haval160,3 haval192,3 haval224,3 hav...
Let's say I have a string contaning HTML markup with many img tags that look like this:
<img src="data/images/original/3.png" alt="" />
I need a regular expression that would change all images to have paths like this:
<img src="/utils/locate-image?path=data%2Fmedia%2Fimages%2Foriginal%2F3.png" alt="" />
I'm not very good with regul...
How can I count how many fields there are in this row:
$row['number']
while ($row = mysql_fetch_array($result))
{
echo '
<td class="alt">'.$row['number'].'</td>
$number = $row['number']
}
...
Hi
I have this string:
$str = '<div class="defaultClass">...</div>';
how do I append 'myClass' next to 'defaultClass' ?
...
Hi everyone,
I have several textboxes in my web application.I want them to remember history when user double click on it like autocomplete operation,but they never remember.is these textboxes remembers if they are in only form field?I couldn't do that.
Thanks in advance...
...
I am a newbie in Joomla. Can somebody please tell me what is the basic difference between the module & component in Joomla?
If possible, please tell with some examples, so that it is easily understood.
...
hi,
can anyone tell me how can i send images as main body part in newsletter. how can i add any image from backend such that when i send a newsletter to the subscribers the image i want to show goes as main body part of the mail.
actually what i am saying is i have a form in which i can enter text and that text goes well in newsletter....
Hello, I'm working on a chess site and I've implemented a rule checker in PHP and I use that on my main site at http://www.chesslords.net/, but, I'm working on an Android frontend in the meantime. However, after I've added the event and drawing correctly to my project, I would like to use my foo.php from my bar.java, calling the rulechec...
Reading through the many questions regarding session hijacking here on Stackoverflow, I've gathered that the only 'solution' to validating a users session is by checking the user agent, which is such a weak layer of protection that I don't even bother to implement it.
So, I was wondering what solutions you guys have implemented? Are you...
I'm writing this quick script to extract chatroom names from the source of a webpage. I'm grabbing the data with fopen() and fgets() and that all returns fine.
My regex is /#[a-zA-z]+/, which does seem to work. However I can not get preg_match_all() to return a concise list of data.
preg_match_all("/#[a-zA-z]+/", $contents, $foo, PREG_...
I don't do a huge amount of php work and I've never used bcompiler before but I'm migrating a php site to a new server and I can't get this working.
There seems to be a class compiled with bcompiler 'class.viewimage.php' - it contains bz compressed code 'BZh91AYiu...'
There is then a regular php file that is calling this class:
requir...
I have the following 1 db table in Database 1 and 1db table in Database 2, now the stucture of both tables are exactly the same. Now what happens is table 1 (DB1) gets new rows added daily, I need to update the table 1 (DB 1) new rows in table 1 (DB 2) so that these 2 tables remain the same. A cron will trigger a php script on midnight t...
What are useful php annotations for Netbeans code completition? I'm already familiar with @return, @param and @throws, but are there any others?
For example, can I set which keys will returned ArrayObject have? In this example, I'd like IDE to suggest me foo and bar after I type get()->. Is it even possible? If so, how?
/**
* @ ???
*...
hi,
i'm using the code from here: http://phlymail.com/en/downloads/idna/download/ and built a function like this (from the example):
function convert_to_punycode($inputstring)
{
$IDN = new idna_convert();
// The input string, if input is not UTF-8 or UCS-4, it must be converted before
$inputstringutf8 = utf8_encode($inputst...
Let's say that I've got a table, like that (id is auto-increment):
id | col1 | col2
1 | 'msg'| 'msg'
2 | 'lol'| 'lol2'
3 | 'xxx'| 'x'
Now, I want to delete row number 2 and I get something like this
id | col1 | col2
1 | 'msg'| 'msg'
3 | 'xxx'| 'x'
The thing is, what I want to get is that:
id | col1 | col2
1 | 'msg'| 'msg'
2 ...
Hi All,
I am developing one web application ( using php), I want to provide more security to application so that no one can easily break the functionality.
Brief explanation about my problem :
In one module there is one stage where I am checking the source of the request ( from where this request is coming from )
Currently, I am using...