Hi all,
I'm developing a web-to-print, poster printing application.
I'm considering using PHP to crop user-uploaded images, and we will ultimately print the PHP-cropped image.
My concern is there will be a difference in 'quality' between the original user uploaded image, and image after it is cropped by PHP.
Will PHP affect the quali...
I designed a form that emails the results when submitted. The PHP script will show a thank you page upon success. Is it possible to place the the "name" field in a separate thank you page?
Here is my code for the form:
<?php
$name = $_REQUEST['name'] ;
$carenumber= $_REQUEST['carenumber'] ;
$email = $_REQUEST['email'] ;
$topic = $_RE...
hello everyone,
I want to get the length of integer values for validation in PHP.
Example:
Mobile numbers should be only 10 integer values. It should not be more than 10 or less than 10 and also it should not be included of alphabetic characters.
How can i validate this.
Sorry for my poor English.
Thanks In Advance
...
I have a routine I would like to streamline. Currently on my registration page you can either enter a key (returning user) or sign up. Once you fill out a form, the form is processed by a script on another server (includes some CRM database inserts so it has to be on the same server as the CRM) I am doing client side validation with jQue...
Hi. I am trying to customize the links that wrap each image attached to my posts. I'm currently getting something like this:
<a href="http://www.example.com/images/uploads/2010/10/image.jpg">
<img src="http://www.example.com/images/uploads/2010/10/image_thumb.jpg" alt="Test alt" title="image" width="630" height="541" class="alig...
I have tried to get an XML file to sort and have had no luck. After a day and a-half, I need some help from an expert. Thanks.
My XML File (shortened for the example):
<?xml version="1.0" encoding="iso-8859-1"?>
<deadlines>
<deadline>
<date>2010-06-01</date>
<text>Application for Summer Due</text>
</deadline>
...
I have a time stamp in my form results script, but the time stamp is ahead 1 hour. Can anyone tell how to adjust the time stamp to be accurate? or is this just on my pc?
Here is my current code:
$Body .= date("Y-m-d H:i A e");
...
Hey Guys, I'm looking for a PHP framework that, if I'm lucky, just works in nginx under FastCGI, otherwise, one that doesn't take too much tweaking.
...
I have a simple App that used to work in the old API. It's an iFrame app and I can't get the user session with the new API no matter what I try. Here is the code I have now:
<?php
error_reporting(E_ALL);
require 'facebook.php';
$facebook = new Facebook(array(
'appId' => 'xxxx',
'secret' => 'xxxx',
'cookie' => true,
));
$sessio...
Hey php gurus. I'm running into some bizarre class scope problems that clearly have to do with some quirk in php. Can anyone tell me what out-of-the-ordinary situations might give the following error...
Fatal error: Cannot access self:: when no class scope is active in MyClass.php on line 5
Now, obviously if I were to use self:: outs...
Hi All,
I have a website where an admin can login and upload photos. All the images are placed in a directory and then on another page, i am cycling through the images and displaying them. The client has asked if there is a way to move the images around and place them in any order they want.
Now looking at the site, i'm not sure what o...
I have a php login page with session control. It routes a normal user to info.php and an admin user to info_admin.php. If I login with a "normal" user it goes to info.php, however, in the address bar, I can go to info_admin.php and it doesn't kick me out, gives me access. How can I control this or prevent the user from doing this manuall...
I'm using the DebugKit component in my project but I want to turn it on only on the staging server and have it not load when running from the production server.
I know I can turn it off with the debug config value but I want to keep that value at 1 for both servers.
I tried conditionally defining a contstant 'DEBUG_KIT' in bootstrap.ph...
It is possible to generate a image (php gd) with a count of visitors of my piwik tracked site.
I want Embed a flag counter in a external site. On this page iframe or flash not allow. so i can't integrate the normal piwik widgets
...
Bare with me here. New to ajax.
What I would like to do is have a basic html form the input fields be inside php so that you can fill those fields with data and submit them to a database. Once that data exists in the database I want that data to fill the input fields. I want all this to be done in java/ajax/php so my page never refresh...
Currently, for authentication for my Facebook App, I'm doing the following in PHP:
if($_GET["code"] == null)
{
Header("Location: https://graph.facebook.com/oauth/authorize?
client_id=[MY_APP_ID]&
redirect_uri=[THIS_CURRENT_URL]&
scope=publish_stre...
It looks like when I forget to put leftJoin in my queries, Doctrine will lazy-load relations after I pick them. Ie if I do something like:
$property = PropertyTable::getInstance()->createQuery('o')
->leftJoin('o.Features f')
->execute() ;
I will still be able to access $property->Attraction , even if I didn't load them in this que...
I am fairly new to coding in php and have come accross a bit of a problem which I think is very simple. I am trying to capture the IP address of anybody that visits my website and stores that in my database. The code is as follows, I am not even sure the code will work but I do get the following error Parse error: syntax error, unexpecte...
I am working on integrating tor to my Delphi application; the whole story is explained in this link
After that I searched the internet then I found a code to switch new identity in PHP
function tor_new_identity($tor_ip='127.0.0.1', $control_port='9051', $auth_code=''){
$fp = fsockopen($tor_ip, $control_port, $errno, $errstr, 30);...
Hey all,
My current web host allows for up to 25 processes running at once. From what I can figure, Python scripts take up a spot in processes, but PHP doesn't?
I get a 500 error if more than 25 processes are running at once (unlikely, but still a hassle), so I was wondering if it would be easier on the server if I were to port my sit...