I would want to print tickets in pdf. I was already able to retrieve the ticket details like customer name, order id, order items, and total bill. I would want to put this details in the .pdf file ready for printing. I'm using html and php tags in retrieving these ticket details from the database. How can I convert to .pdf all items echo...
Hi, I should to display datas from a rss file from another server.
When the rss file is on my server, I can read it, but when I try to read the same file on another server, I obtain this :
Warning:
simplexml_load_file(rssfile)
[function.simplexml-load-file]: failed
to open stream: Connection timed out
in
index.php
on lin...
i wonder which installation to use for my php? i will be using apache. i read that thread safe is faster with apache and non thread safe for IIS? isit true (good to know if i intend to use iis later)?
...
Hi guys,
I'm pretty new to programming and html design and would like to ask a question some might consider silly.
Here goes:
I have a registration form that is validated with jQuery validation plugin. Within this form, there is an email and password input which will be used as login credentials.
What I would like to do here is che...
May be it's a stupid question, but i didn't find unswer. I use a web-hosting startlogic.com. i asked employee about cron. They told me that they only have a feature in the control panel called "Schedule jobs" where i can manually put job.
But i need to do this from my web-application. For example, when i push button, i will receive a em...
Hi there
I am busy getting values on a form using jQuery to send to my PHP script. Well, most of my checkboxes have a name in the form of name="input[]" and so when I alert the value that gets returned in my form's submit() handler, it only returns the value of the first checkbox with that name. How can I return the values in array form...
Possible Duplicate:
PHP: How To Disable Dangerous Functions
Hi, this is my situation: I must let my clients enter PHP code, but only safe functions like string function, date function etc. So I need the danger PHP functions list to remove them by using string replace before save to PHP file. Any suggestion?
...
How can I get the cross street names of one particular street?
Lets say I am on a street name B and I want to get two street either side of street B. I also have co-ordinates for the street B.
I think this can be achieved using calculation over co-ordinates. How?
If B street has Lon: 40.4325342 and Lat: -72.5346344, can I get the near...
if(!isset($_POST['JoinFaction'])) {
echo '<form method="post" action="'.$page_name.'"><dl id="sample" class="dropdown" align="left">'
.'<dt><a href="#"><span>Recruiting Factions ['.$numrows.']</span>'
.'</a></dt><dd><ul>';
while($faction_re = mysql_fetch_array($sql)){
echo '<li><a href="#">'.$faction_re['f_name'].''
.'<span...
Hello,
I am parsing the source code of a web page like this:
private function readPage() {
header("Content-type: text/plain");
$this->pageSource = @readfile ($this->page);
}
But it seems as if I can't assign the content into the "pageSource" variable. Where it my mistake?
Thanks a lot for your help.
...
I have a client side code in jquery and from client side code I need to store some data on server side in form of XML files that are written using PHP. I'm done with the code for writing PHP files. However, I'm not able to pass client side code to PHP file. jQuery post is also not working. I tried query strings but as I said data is too ...
1.I have a script, that executes some update/delete operations
2.All sql operations are executed inside transaction(InnoDb tables)
3.From time to time I get "Deadlock found when trying to get lock; try restarting transaction"
There are some other jobs in this application, that perform database operations. My problem is to find which ...
Hi all. I want to know how to find the percent of color in a gradient image with library GD of php. Please help me
...
I wrote a website, with several pages, in PHP and now need it translated to a different language.
I've been searching ages for how I can just automatically extract all the strings and HTML text in my php source code, manually translate each, and then insert them back in.
I don't want multi-language support, and I've checked translation...
Hi..
i want to store image in MYsql Database using Php.getting Nsdata from uiimage,encoded this Nsdata to string.This string contains huge no of characters.when i m passing this string to PHP, url becomes nil.My PHP decoding img and ruuning perfectly.Only i m getting problem in sending string to PHP. plz guide me...
Thanks.
...
Hi,
New to PHP, would love to get to know it better. Currently working on a project around RSS + SMS gateway for users to get alerts on certain events around them.
I have a MySQL table with auto_increment ID's, assigned systematically. I'd like to create a PHP page that allows the user to go to http://mysite.com/page.php?id=Mysql_ID -...
Hello all,
I have a small question, when we set the memory_limit for PHP I understand that it will use that integer as the maximum memory allowed for a script to consume.
Does this mean if I set the maximum at 64MB and my script only needs 12MB that it will make use of the full 64MB just because its allowed?
I ask because I notice som...
What's causing this and what can I do to prevent it? I've seen a hack for solving this described here, but I'm wondering if there's a solution that actually gets to the root of the problem.
...
Hi all,
can somebody help me to write a sql select to perform a task.
So the problem is that we have a table and there are some duplicates, so i need to find where name, street and house are the same and to group somehow them.
I have almost this situation but the difference is that i would like to group them to find what is duplicate o...
I am trying to make development easy and have highly optimized output in production.
The goals of what I am trying to do is:
Make production pages fast! I would like that the Google Page Speed and YSlow return the best scores. This means:
Combine and compress JS files and CSS and position the group in the right place (bottom or top o...