Difference between <?php and <?
I am new to php and would like to know if there are any differences between these server tags : <?php ?> and <? ?> ...
I am new to php and would like to know if there are any differences between these server tags : <?php ?> and <? ?> ...
This is becoming a very frustrating issue. I am trying to do a clean install of apache 2.2 and PHP 5.2.11. Everything seems to be configured correctly but the php modules aren't starting... PHP Warning: PHP Startup: Unable to load dynamic library '.;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/php_mcrypt.dll' - T...
I've wrote a parser in PHP that converts a string representation of an equation to RPN based on feedback from an earlier question. Whilst testing it I found two different equations that parse to the same thing in RPN. Because they end up as the same thing in RPN when you solve them you get the same answer. 3 + 4 * 8 / (1 -5) 3 + 4 * 8 ...
public/images/portfolio/i-vis/1.jpg How could i remove all the path regardless of what the filename is using php? ...
Does anybody know a good PHP library for basic image postprocessing functions like hue / lightness / contrast using pure GD? ...
Hiya, I've created a function to overlay text onto images, but I'm scratching my head to find a way of outputting the image in a way in which it can be utilised within another script or outputted to the screen. I can call this function from a php script, passing it the image and the text to use, but when the function returns the data ...
Hi, I'm planning on putting a store's inventory on a Drupal site and I'm wondering if it's possible to create a script (maybe in python/php?) to enter the data automatically to Drupal with CCK? Thanks in advance! ...
I am using the code below to print from an array but its printing too many of the columns because i am using a foreach loop... How can i print just 1 col1 and 1 col2 but keeping the right strings being printed which is working? <div class="feature-text"> <?php //Now print the associated cms_page_parts $qpp = $conn->query("SELECT * FRO...
I'm trying to upload data with POST to my webserver but sometimes cURL just stalls and causes PHP to use 100% CPU indefinitely. I'm using the code below. $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $URL); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($curl, CURLOPT_POSTFIELD...
I have this array which gets the last table from a database. However the index contains an object and not just a string. I need to implement some string manipulation from below to get only the part table15 Array ( [0] => stdClass Object ( [table_name] => table15 [create_time] => 2009-11-24 13:10:04 ) ) ...
I am wondering what the best way (for a lone developer) is to develop a project that depends on code of other projects deploy the resulting project to the server I am planning to put my code in svn, and have shared code as a separate project. There are problems with svn:externals which I cannot fully estimate. I've read subversi...
I tried $sftp->chmod('0755', "file.zip"); and $sftp->chmod('0755', "file.zip"); But in both cases the permission has been set to 363 instead ...
I have a Flash movie that is embeded in a PHP page. The PHP page displays a value to the user (the number of images they have uploaded). When the user uploads a new image I want the value on the PHP page to reflect the change without refreshing the page. This value is retrieved from database using MySQL. So heres what Ive done so far - ...
At my workplace we're planning a major refactor on our core product, a web application with several 'modules'. I quoted that because that's one of our main concerns: modules are not really modules, the whole thing is monolithic. The application is written in PHP with smarty templating and using Pear for accessing a MySQL database. We're ...
OK a little background story. I am redesigning one of my old websites and I want to use Myriad Pro for the title on the page. This will be dynamic with PHP, etc. At first I thought I should just use CSS styles and define Myriad as the main font. But after using typetester.org, I found that Myriad and let's say Arial are different height...
I am trying to decide on the best way to store my applications configuration settings. There are so many options. The majority of applications I have seen have used a simple require and a PHP file that contains variables. There seem to be far more advanced techniques out there. What have you used? What is most efficient? What is most ...
I want to use a function to recursively scan a folder, and assign the contents of each scan to an array. It's simple enough to recurse through each successive index in the array using either next() or foreach - but how to dynamically add a layer of depth to the array (without hard coding it into the function) is giving me problems. Her...
If you use a custom error handler in PHP, you can see the context of an error (the value of all variables at the place where it occurred). Is there any way to do this for exceptions? I mean getting the context, not setting an exception handler. ...
The organization I currently work for uses SVN for developing PHP applications. Our development cycle started out simple, doing a commit updates the web root using the post-commit hook in order to see changes right away. Than we ran into an issue with development features getting in the way of bug fixes and holding up the fixed files f...
Hi, I am trying to change the wording "Special Price" and "Regular Price" in Magento. I've already tried editing the Mage_Catalogue.csv, reuploading and clearing the cache to no avail. I've also done a giant Dreamweaver search within the entire site for the text "Regular" and "Special" and haven't found anything. I can only conclude t...