Description:
PHP, server side scripting.
|
|
|
Redirect Back Button
|
| |
Hi, I'm looking to change the location of where the page goes when someone hits the back button. I have a page which the user fills out a form, hits SUBMIT. It does it's PHP thing, sends me the info, and then puts up a confirmation page with a link to another page. At that point, if the user hits the... more »
|
|
Command line scripting broken since version 5.2.10 of php
|
| |
Php can be used not only with web servers but also for stand alone command line scripts. However, this functionality seems broken since version 5.2.10. Maybe my problem in part or fully depends on my installed platform which is Slackware 12.0. Maybe the problem is not php itself but how php was built. However, if the error lies within Slackware or how the... more »
|
|
Yahoo Web hosting doesn't allow php classes?
|
| |
Hi There- I've created a script that includes a class. It works in xampp but not in my yahoo webspace. Does this have anything to do with 'register_globals' being turned off? My code is very simple and not specific to php 4 or 5, I am just creating and using a class. view code: [link]... more »
|
|
problem sending email with PHPMailer
|
| |
Hello, I wrote a program using PHPMailer. The problem is that email is not sent. In include folder I put two packages: class.phpmailer.php and class.smtp.php. require_once '../include/class.phpmailer.ph p'; ... function sendEmailFromOferty($fullAnnou ncementNo, $announcement, $recipients) { global $db, $websiteRoot;... more »
|
|
A question about header()?
|
| |
All of the examples I've seen use header to relad the current page or an entirely new page. Can it be used in a frame environment to cause a page to be loaded into a different frame? If so, how do I specify the particular frame as well as page? (The particular application I have in mind has the user chase down a... more »
|
|
A regex using word boundaries (\b) is driving me nuts ... any takers?
|
| |
Hi, The following code outputs nothing, and after reading all the docs I can still don't understand why. Can anyone explain why word boundaries before the $ don't seem to be matching? Cheers, Jo <?php $applePrice = '$5 per bunch'; $orangePrice = 'One bag $2'; $pattern = '/\b\\$/is'; if (preg_match($pattern, $applePrice))... more »
|
|
Programmatic approach to string construction
|
| |
Hello I am looking for some opinions or practical approach to constructing a string programmatically. What I am doing is taking a boat load of post variables and assembling an sql statement for insert(replace). The needed post variables have the following data. $_POST['id-(integer of item matching DB id)'] = (value to insert)... more »
|
|
Anyone Have Experience with IPV6, Apache, and PHP
|
| |
What format is the IP address in as Apache passes it to PHP? I'm writing a web-based application that will do some basic IP security checks (to be sure that the session hasn't shifted IP too badly), etc., but hard to plan for IPV6 if I don't know what a typical string will be like. With IPV4, it is just n.n.n.n.... more »
|
|
"10.98" from MySQL shows up as "10.9799995422" in PHP - why?
|
| |
Hi, This is the first time I am facing this problem and can't figure out WHY is it when I pull data from MySQL, instead of 10.98 from a certain cell, PHP shows "10.9799995422". The cell stores data as a "float" in MySQL. Here is what I do...: $stmt = mysqli_prepare($mysql_db, "SELECT `products`.`price`............ ..........<blah blah>")... more »
|
|
|