Hi I have a query that I have run with MySql and I need to chart the data. I would be grateful if someone can tell me how I can format the output using php and feed it to Google in the right way and with the syntax - I have tried everything but no joy.
A code sample would be really useful if possible. Ideally I would like a line chart t...
I want to generate a list of numbers with a 0.25 difference between them, e.g
0
0.25
0.50
0.75
1
1.25
.....
9.75
10
How can this be done?
...
Is it possible for PHP to take a URL, wait for the redirects to go through, and then fetch the url of the page it's on?
...
I'm aware of the benefits of using a PHP framework (not first hand though, just by reading SO, etc.) But what I don't hear about is the amount of "unlearning" a framework requires. When using a framework, you hand control to the new framework and you have to "unlearn" many things and re-learn them the new way as your new framework requir...
Is there some *nix tool or perl/php library that will let you easily create directory tree visualizations that look like the following?
www
|-- private
| |-- app
| | |-- php
| | | |-- classes
| | | +-- scripts
| | |-- settings
| | +-- sql
| +-- lib
| +-- ZendFramework-HEAD
+-- public
|...
This phpinfo() demonstrates the problem.
I'm passing the URL a query string of:
?qwerty=asdfg
As a result, I'm expecting it to list these two PHP variables:
_REQUEST["qwerty"] asdfg
_GET["qwerty"] asdfg
And also this query string:
_SERVER["QUERY_STRING"] qwerty=asdfg
However, it's not working. None of these variables seem to be...
Hi,
I am new to php and wondering if I can have something like this:
<?php
...
magicFunctionStart();
?>
<html>
<head>...</head>
<body>...</body>
</html>
<?php
$variable = magicFunctionEnd();
...
?>
What I have to use right now is
<?php
...
$variable = "<html><head>...</head><body>...</body></html>"
?>
Which is annoyi...
How much more safer is this than just md5? I've just started look into password security. Im pretty new with php.
$salt = 'csdnfgksdgojnmfnb';
$password = md5($salt.$_POST['password']);
$result = mysql_query("SELECT id FROM users
WHERE username = '".mysql_real_escape_string($_POST['username'])."'
...
how can we include php file into html file
i know we can do this with
<AddType application/x-httpd-php .html>
but i don't have access to server... any other solution which i can include in my website folder or file.
Thanks
...
Hi,
How can I produce a regular expressions pattern that returns the filename from any one of these lines? (I will search one line at a time).
drwxrwxrwx 4 apache apache 4096 Oct 14 09:40 .
drwxrwxrwx 11 apache apache 4096 Oct 13 11:33 ..
-rwxrwxrwx 1 apache apache 16507 Oct 17 10:16 .bash_history
-rwx...
I've been trying to access google maps webservices or even yahoo maps using PHP. When i run it, i get nothing. All the html and prints come out but absolutely nothing from Google service.
When i gave the code to my friend to run it on his local pc, it showed up fine and was working showing the map. But it seems i have trouble here at un...
I am using the below code to select a fields text with JavaScript but it doesn't quite work:
//auto select that fields text for easy COPY
var content = parent.document.getElementById('share_field_<?php echo $id; ?>');
content.focus();
content.select();
Field to select:
//share field
echo '<div class="name" style="display: none" id=...
What is the X?
Thanks
...
I am using Dope-openid library in my website but while logging in with a yahoo account users get a message above Click "Agree" to sign into www.mywebsitename.com using your Yahoo! ID.
Warning: This website does not meet Yahoo!'s requirements for a website address. Do not share any personal information with this website unless you are cer...
I want to search through files and create images from jpg files. There's the code:
$dir2 = opendir($direction2);
$dir = opendir($direction);
function create_fcat($direction, $width, $direction2, $dir) {
while(false !== ($fn = readdir($dir))) {
$n_dir = $direction.'/'.$fn;
if (is_dir($n_dir) && $fn != '.' && $fn != '..') {
...
Hi, I'm creating a web page that is built using "modules", in other words the page is put together using other php files.
On one side of my page there is a div container with some links next to it, this div container will be used to hold certain information. The information is held within separate php files that I wont to be able to loa...
I'm working on a simple voting system, using php and sqlite. I prebuild a whole scenario and tested it in the sqlite commandline, where it worked nicely.
But one query, which should return all possible answers of a poll and the users that voted for it, doesn't work anymore...
Tables:
CREATE TABLE polls (
question CHAR(200)
);
CREATE ...
So I'm storing a hidden-field time() call with each entry to my DB. The only problem is, they all come out as:
16777215
which is from 1970. I can't tell why that number, because it's not the beginning or end of the current timestamp, and it's the same for every entry. It's going into a mediumint(50) MySQL column, and the field looks as...
For some reason I'm struggling with this.
I have the following 2 arrays and I need to take the array values from the $img array and insert them in order into the $text array, appending/replacing the %img_ tags, like so:
$text = array(
0 => "Bunch of text %img_ %img_: Some more text blabla %img_",
1 => "More text %img_ blabla %i...
i am using JQUERY plug in for paging
http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html
its working fine on page.
but when i call page via JQUERY load method, paging not showing
$('#divbody').load('abc.php?q='+pid, null, function(){
});
and code on abc.php is
<script type="text/javascript" language="javascript">
$(docu...