php

Programmatically monitor a webpage

Every project on drupal.org has its own page: http://drupal.org/project/marinelli When a new release is made, it gets added to that project's release page http://drupal.org/node/185969/release I'm trying to monitor when the page, but of course I don't want to keep checking on it manually. I need to do it programmatically with php. ...

Show errors before redirect

Hi all! When i do a redirect, no errors are shown. I use codeigniter framework and there's error_reporting(E_ALL); ini_set('display_errors', 1); in my index.php file. When something is breaking in my code(e.g.some 'undefined index' error) and i do a redirect to another page - the error isn't showing. How to avoid this - break the red...

quickest way to dynamically retrieve image dimensions

One way to improve page loading is to specify image dimesions (hieght width). In PHP this can be done with getimagesize(), however I can imagine this would be quite slow to execute if you have alot of images. What is the best way to dynamically get image dimensions of many images with minimal effect on page loading. We are talking about...

Jquery uploadify plugin

Hello, I kept one jquery uploadify plugin on page and one <img> tag besides it. Everything works fine as expected except one problem. I want to update <img> to show the new image as soon as some image is uploaded. How can i do this? I am using Php. Thanks in advance :) ...

Safe file upload without https (ssl layer)

Hello, I'm PHP developer and I know very little when it comes to https/ssl, but I would like to offer my client safest possible way of uploading file to webpage (i.e. webftp as part of client service on page). Which way should I look? Thank you in advance, I will clarify my question if needed. ...

How can i show latest product?

Hi, I am new in virtue-mart. So Please anyone say me how i can show latest product in my page by using virtue-mart. Thanks ...

cache mpeg files on page load, html + php

Hi I have a page with an ajax page prowser. On two slides an embedded player will play an mpeg or flv video file. First time the page is viewed the file will be loaded and on slow internet connections it will stop-start since is is beeing showen and loaded at the same time. Can I auto-cache the two files on page load so that the are ca...

CSS Parser in CodeIgniter

Hi guys, is there any CSS parser in the CodeIgniter Framework? If not: Where should I store my PHP file for parsing css (neat solution)? In the webroot? ...

How to exchange data between Objective-C and PHP

I am playing around with Objective-C and have been looking for a good how-to example to exchange data it and PHP. JSON? SOAP? If anyone knows of a well written example I could hack at, I would appreciate it. ...

[function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized

Hi there, [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized I am periodically getting this error, i.e it is only happening at random times, any ideas what would cause this, i have checked my php.ini and allow_url_fopen is set to true. ...

php website not showing correctly in utf-8

I have a website which has some non standard characters such as ë, Ç etc. The website uses ISO-8859-1 as it's character encoding, however at this point I want to switch it to UTF-8 for some reasons related to rss feeds. When i change the character encoding to utf-8 the mentioned characters are displayed incorrectly. I set the charset ...

siutable tool and technology for electronic health system?

hello i am going to develop an EHR (Electronic Health Record System) i am new to this field and want to discuss and get the suggestion about what tool technology i have to use for this purpose: here is my research about EHR and available tools for it 1) i am going to discuss about java as an EHR is a web based system so J2EE will be t...

SimpleXml problems accessing xml nodes

Hello Guys, i have serious problems accessing nodes of a specific xml file: http://write.fm/cqsmrf5 with print_r i get the following result: SimpleXMLElement Object ( [RecordSet] => SimpleXMLElement Object ( [@attributes] => Array ( [dataSource] => testdatabase ...

Finding the file path in drupal

Hi Iam a php developer, and iam new to drupal.I have installed a drupal site. For normal php sites. we can find the file name from the browser path, for modification for eg: browser url : www.mysite.com/test/upload.php File path :test/upload.php. for drupal:http://localhost/mydreamhouse/article/557 what is file path? for drupal :h...

PHP: How to get Day using Y-m-d ?

I am trying to get Day(Monday, Tuesday, Wednesday,...) using "Y-m-d" date format but it is not giving me exact day. For example: date("l","2014-07-26"); // Output: Thursday But output should be: Saturday Thanks ...

How to configure Zend Framework on linux machine?

How to configure Zend Framework on linux machine? ...

png image cropping problem

hello i am doing png image cropping using this function. every thing is working fine. but whenever i was uploaded .png then changing the image background color into black. here is the code.`$bgimage_attribs = getimagesize($bgim_file_name); if($filetype3=='image/gif') { $bgim_old = imagecreatefromgif(...

JQuery Tab Events Triggers

Hi! I want to see tab No. 2 when "IF Condition" will meet the requirements. Here is my code. Please advice me how can I do this. Thanks Shahid <?php //Authorization / Security session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="h...

Add custom feed to Wordpress: add_feed or do_feed

I have an existing custom feed using do_feed_* but I see there is an undocumented (and existing since 2.1) *_add_feed. Is one better than the other? I have do_feed_* working but since I upgraded to 3.0 last week, any URL with "&author=" in it redirects to the root site page. Take it out and it loads the page fine (but of course does n...

Can you make an html form to upload images from cell phones with PHP?

I have a website at which you can upload your photos from a trip, for example, and have them displayed in your profile. I am now trying to make a mobile version of this website. So my question is, what is the easiest way to make it possible for my users to upload their images from their cell phones to the website? ...