I am running the Line Graph example in the pChart website.
http://pchart.sourceforge.net/documentation.php?topic=exemple1
The rendered png file is missing the X and Y axis labels as well as the "January" "March" "April" labels.
I ran phpInfo and verified that GD was supported. I am running with php5.
Any thoughts on why the graph ...
Is it possible to theme a Drupal 6 vocab the same way you would a node type. Having it effect every term within the vocab?
I find drupal 6's taxonomy core is lacking when it comes to theming. I want to build custom charts and user statistics based on my taxonomy terms but I can't get anywhere near it without doing some ugly dance with v...
I've been started studying PHP in my spare time, and the first code example I was given was this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>
From what I understand, this should write out "Hello World". However, all I see is ...
All the scripts I have found via Google search rely on some sort of screen that first asks the user how many files they need to upload and the upload script works based on that number.
But what if I don't want any limits, but want to allow the user to upload as many or as few as they want. How to go about this?
All I have for now is th...
Hello. I am facing a little problem.
My string is From {start} to {end} and I want to validate it using preg_match() to avoid illegal chars.
preg_match("/^[a-zA-Z\{\} ]{1,}$/",$var)
The point is the escape for { and }.
thanks :)
...
Is there a free open-source solution taking raw e-mail message (as a piece of text) and returning each header field, each attachment and the message body as separate fields?
...
When I use PHP to set the value of a HTML form input element, it works fine provided I don't have any spaces in the data.
Here's the code:
<input type="text" name="username"
<?php echo (isset($_POST['username'])) ? "value = ".$_POST["username"] : "value = \"\""; ?> />
If I enter "Jonathan" as the username, it is repeated back to me a...
Hi,
I have a PHP script that creates a zip file on the fly and forces the browser to download the zip file. The question is: could I directly write the zip file to an output stream which is connected to the user's browser rather than save it as a real file on the server first and then send the file?
Thanks in advance.
...
In PHP my string looks like this: "{{edit(3)}}".
I would like the result to be: "open3close",
using preg_replace or another method.
Any ideas?
...
Using php I need to read an image to a byte stream which has to be passed to a .NET web service. Can anyone provide me with a php code snippet to read an image to a byte array ? I am using using php 5.
thanks
...
<script type="text/javascript">
function showUser(str)
{
if (str=="")
{
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
x...
I am currently learning Zend Framework from a book called "Appress Pro Zend Framework Techniques, Build a Full CMS Project" and I am stuck at a point where after submitting a bug, the page was suppose to redirect to confirm action, but this redirection depends on the result thrown by the Model, which saves the bug to the database.
Here ...
how can i store jquery ajax result in a php variable?
i mean i want to get result of ajax jquery and store it in php variable and ECHO it later
...
I made a PHP class that dramatically simplifies sending text messages with PHP. I know this isn't really a "help me out!" type question per se, but I would like to share the code because I have found it to be tremendously useful. You're free to do whatever you'd like with the code . You can even go around telling people you made it. Just...
In PHP there are functions like unset() that support any number of parameter we throw at them?
So, I want to create a similar function that is capable of accepting any number of parameters and process them all.
Any idea, how to do this?
...
Example DB structure (download table)
id | pid | title
----------------------------------------------------
1 | 3,4,5 | Download 3, Download 4, Download 5
----------------------------------------------------
2 | 3 | Download 3
----------------------------------------------------
Here is my code
<?php
$pid = explode(",...
Hi,
I have this print statement:
print "<a href='#' onClick='document.getElementById(\"myheader\").innerHTML=\"\"'".$rowQuery['keyword']." · </a>";
Unfortunately, it prints:
<a · ="" keyword ="" onclick="document.getElementById("myheader").innerHTML=""" href="#"/>
I have no idea why, any help would be useful....
So I am trying to have a dynamic tabs kind of thing using both php and javascript. To make it much easier to understand, remember the two choices on facebook (Recent news and most recent) or something like that, when you click on one of them it just changes the content that you see in the middle without updating the page. i know how to d...
Hey all,
I've a really weird issue going on here. Am trying to migrate an installation of vBulletin 3.8.0 to a new server. Config of the new server is PHP 5.2.11 with APC, Apache 2.2.3, MySQL 5.0.84 and CentOS 5. I've transferred all the files perfectly and the error I get is:
Fatal error: Call to undefined function construct_forum_bit...
I'm making small module/plugin for my future CMS/Framework. I wanted it from begining to be with multi-language support.
I set my new database to utf8_unicode_ci (I read that it is more accurate, then utf8_general_ci)
Set my files to UTF-8 without BOM
Every page has in head Content-Type: text/html; charset=utf8
When I register new us...