php

Reading iTunes XML File With PHP

I'm trying to read the iTunes XML file with PHP. I want to extract particular bits of information. Such as the Name, Artist and Album. How would I do this? I found this which works quite well when parsing the whole file. I thought perhaps using this to create a whole new XML file which is easier to read. But there must be a better way. ...

PHP Communicating w/ Java program

We're come across a problem here at my company and I'm trying to find the best solution. Software was recently purchased that utilizes a Java program to get the tax for a certain shipment. The site that needs this was written in PHP4. How can I communicate between the two? It was suggested to use files to communicate but that was h...

Multiple mysql INSERT statements in one query php.

Is this legal? $string1= "INSERT INTO....;"; $string1 .= "INSERT INTO....;"; $string1 .= "INSERT INTO....;"; mysql_query($string1) or die(mysql_error()); ...

Whats the best way to create templates using php?

I have a class that gathers templates and displays the final output after connecting all the templates. class Template{ $private $output = ''; public function Load_Template($template, $data = null){ ob_start(); include($template); $this->output .= ob_get_clean(); } public function Display($add_footer = true){ echo $th...

Dynamically generating a word cloud?

Ok well heres what I would like to do in PHP: http://www.wordle.net/ I know how to do all of the GD (writing to the canvas), my issue is the logic of actually keeping track of different sized word boxes and correctly placing them on a blank canvas. If anyone knows of a good site that has some resources that could lead me in the right d...

How can improve myself in web development?

I am not fully experienced web developer.I am more likely stand alone application guy experienced lots of languages like c,c++,java,c#.I have lots of ideas for web projects wtih knowladge of php and mysql but when i start to develop i give up when i come to design stage.ıt really frustrating , do you have any suggestion for that? ...

How Do I Serve a File Through JSMin PHP Script With Correct HTTP Caching (using .htaccess?)

I'm using the PHP script for JSMin to remove comments and whitespace from my javascript and css files before serving. If I set <script src="jsmin.php?file=myfile.js"> the file is not ever cached, since the Last-Modified HTTP header is never checked for a script. So in order to run the files through JSMin and (hopefully) enable cach...

show a hidden div on reload after submit_form button click

I need to show a div upon page reload after the user clicks on the submit form button. Specifically, I have a PHP contact form in a show/hide div. Clicking on contact shows and hides the contact form. Both the show/hide js and the php contact form work perfectly. When the user clicks submit -- the page reloads and the "message sent" is...

Templates using php?

Whats the best way to create my own template engine using php, to transfer html templates into actual websites, and replacing the placeholders with the actual data... well, let me solve my own question... class Template{ $private $output = ''; public function Load_Template($template){ ob_start(); include($template); $this-...

Is there any way to have persistent (regardless of how small) client-side storage via the web?

Okay, since none of you guys like my question, let me rephrase it. User logs into an HTML form. With JavaScript, their password is hashed locally (salted too). The server knows what the password + salt should be, user is already registered, blahblahblah. Now the user requests a page. The server sends a random ID to the user. When t...

How to extract data from a PDF and store in MySQL

I have a PDF document that contains data that I would like to extract and store in a MySQL database. Could anyone give me some guidance or perhaps sample PHP code? ...

How to get a part of url between 4th and 5th slashes?

Hello! Please help! I'm on PHP. I have an url: 'http://example.com/articles/123a/view', how do I get '123a' only from this string with regular expression (preg_replace, probably). Can't figure it out. Thanks in advance. ...

Filter content in Symfony 1.2.x admin generator?

I have a Symfony 1.2.7 application where 3 different sites coexist in the same database. All content has a foreign key, 'site_id', that says which site it belongs to. In my generated admin interface I want to be able to show content from the currently selected site (actually set using a filter class, based on the domain used to access t...

Website development in ASP.NET MVC in Mono or Make the break to PHP

Hi I have an idea for a website which i would like to run with. My background has always been in the microsoft products, originally coming up from a VB6/ASP to C# and ASP.Net webforms. I love the new asp.net MVC architecture but am worried if my site takes off and i have to scale it, i will be stuck with exhorbitant hosting fees. Im co...

CakePHP and Kerberos

I have a web app built upon CakePHP. Currently it is doing user authentication / Access Control with the built-in AuthComponent and the ACL functionality. Throughout our organization, we have MANY applications (web and otherwise) that all require their own user/pass combo. Our company is looking to migrate as many of our internal apps...

PHP Video Editing and Streaming

Hi, I am developing online video streaming website on PHP. I need two functionalities: Need to add title/text at bottom of the video dynamically. Need to add background music to video dynamically. Is it possible with PHP or any available open source library? Can anyone guide me or provide links to this type of library ? Thanks. ...

How can I stop PHP notices from appearing in wordpress?

I know about error_reporting(0);, and ini_set('display_errors', false);, but there is a notice appearing in wordpress: Notice: Array to string conversion in /var/www/vhosts/treethink.net/subdomains/parkridge/httpdocs/wp-includes/formatting.php on line 359 it only appears in wordpress, not in any other pages of the site. I checked ...

php make date with format mm-dd-yyyy

I have a date in the following format MM-DD-YYYY How can I convert this to UNIX time in PHP Thanks Having a small problem $date = strtotime($_POST['retDate']); print $date; //Prints nothing print $_POST['retDate']; //Prints 08-18-2009 ...

utf-8 decoding problem in php

I got a .vcf file with parts encoded as UTF-8: CATEGORIES;CHARSET=UTF-8:Straße & –dienste Now "–" should be a "-" and "Straße" should convert to "Straße". I tried utf8_decode() iconv() mb_convert_encoding() And have been playing with several output encoding options like header('content-type: text/html; charset=utf-8'); mb...

Is it possible to send mail asycronously using PHP while giving user feedback on delivery?

Is it possible to send mail asycronously using PHP while giving live user feedback on delivery? I have recenty written a small app for our company's intranet for sending formatted emails to customers. The interface is quite clean and only requires the input of a job number, it then builds and sends the mail. The mail, while being built,...