Hi Stackers
I have a website where all requests are redirected silently (via .htaccess) to index.php and then PHP is used to show the correct page (by traversing the REQUEST_URI).
I was wondering if it's possible to submit POST data to a fake address too?
I've currently got my form like so
<form action="/whatplant/send-mail" method="...
Basically what the title says...
I need to have an image that when clicked, I call script.php for instance and in that PHP script file, I get the image coordinates where the mouse was clicked.
Is this possible?
EDIT:
After a couple of answers I realized I didn't describe my problem correctly... The thing is, I don't have total control...
I'm trying to generate my models from a schema.xml file on OSX 10.5 with the latest versions of PHP & Propel 1.3 & Phing. All the model classes actually get created, then it just dies, right at the last step. I have already tried
chmod -R 777 ./application/config
but that didn't help. I have also tried both
propel-gen ./ reve...
I have similar scripts to this running perfectly well. When i take out the while loop it runs fine (evidently) but everytime i try to get something out of the db it takes forever and then mozilla gives me a download box. I am totally flummoxed so any help would be much appreciated:
include("conn.php");
$result = mysql_query("SELECT * FR...
With Symfony's Action Security if a user has not been identified he will be forwarded to the default login action as defined in the applications settings.yml file. How would I forward the user to the originally requested action after the user is successfully authenticated?
...
Hi all,
I have problem with sending HTML mails with PHPmailer. I make Smarty template and I got all the HTML code from it but when I send mail, I got the mail witouth included CSS (it's only background-color, font or something like that). In PHPmailer I set that the mail is HTML.
Is there any way to send HTML mail with included CSS?
T...
include("conn.php");
$result = mysql_query("SELECT * FROM sggame");
while($row = mysql_fetch_assoc($result));
{
$id = $row['id'];
echo $id;
echo 'working?';
}
The above code simply doesn't return anything out of the db. The row name is correct and the loop runs, showing that there is something in the database. However the row is ju...
I have a mysql database set as utf-8, and csv data set as utf-8, delimited by semicolons and enclosed by double quotes.
The data Is seemingly imported fine, when doing a direct dump from the database.
However when attempting to display one of the fields containing html by echoing out in PHP, part of the html code is displayed instead o...
I'm having an extremely weird problem with a PHP script of mine.
I'm uploading a couple of files and having PHP put them all in one folder.
I've have trouble with random files being sent and random ones not being sent. So I debugged it and I got a very weird result from the $_FILES[] array.
I tried it with 3 files.
$_FILES["addFile"][...
Following are the PHP code lines which I am using to open a PDF file:
$pdf_generartor = new PDFlib();
$doc = $pdf_generartor -> open_pdi_document("Report.pdf", "") or die ("ERROR: " . $pdf_generartor -> get_errmsg());
Though the file is at required location, every time I receive following error:
ERROR: Couldn't open PDF file 'Report...
I am currently developing a (somewhat large) site for a magazine, the site mainly consists of sections like : news (for various categories), members, and some 'other stuff' (like shoutbox, polls, previous covers, photo galleries that can be tagged, and ad banners system).
Now, since most part of the site is a typical blog style (single-...
Hi guys.
I'm writing code to generate character-based pagination. I have articles in my site that I want to split up based on length.
The code I have so far is working albeit two issues:
It's splitting pages in the middle of words and HTML tags; I want it to
only split after a complete word, tag, or a punctuation mark.
In the pagina...
How can I detect which request type was used(GET, POST, PUT or DELETE) in php?
...
I'm trying to refactor a large, old project and one thing I've noticed is a range of different Iterator implementations:
while($iterator->moveNext()) {
$item = $iterator->current();
// do something with $item;
}
for($iterator = getIterator(), $iterator->HasNext()) {
$item = $iterator->Next();
// do something with $it...
I have a method which prints out the order of a set of images...I need to submit this to a new php page.
I have a form which currently prints out the order to the same page.
<form action="mainpage.php" method="post">
<div style="clear:both;padding-bottom:10px">
<input type="Button" style="width:100px" value="Show order" onclick="s...
Hello,
I have the following javascript code, which loads without error, however the update function does not actually seem functional, as get_Records.php is never loaded. I can not test if get_auction.php is loaded as it is loaded from within get_records.php
One of my main concerns is that I am doing the wrong thing by having update() ...
I have a mysql table that relies on the unix epoch time stamp equivalent of the date of the entry to sort and filter in various parts of the website. I'm trying to implement a date picker that will enter the date into the form field in the mm/dd/yyyy format. I've been struggling with converting that date into the unix epoch format to add...
As our PHP5 OO application grew (in both size and traffic), we decided to revisit the __autoload() strategy.
We always name the file by the class definition it contains, so class Customer would be contained within Customer.php. We used to list the directories in which a file can potentially exist, until the right .php file was found.
T...
I used this code to upload the picture. I got this code from stackoverflow. I am still unable to upload the image. I changed the db connection settings in table settings 2. I made the table but I am not sure whether the properties of the table I created are correct.
<html>
<head><title>Store Some Binary File to a DB</title></head>
<body...
Has anyone attempted this? Is it possible, and if so, what kind of problems will I run into if I try to accomplish it?
...