I'm trying to get the data after the URL and sent back to the home page. I have had errors in the .htaccess file on one server so I am trying it out on another server.
The links down the side of http://www.newbiemoneymakers.com/bank/ should do directly to http://www.newbiemoneymakers.com/bank/index.php where I then get the title.
My .h...
Hi,
I'm trying to pad a time (playtime of an MP3) using sprintf() in PHP.
sprintf("%02d:2d:2d", $time);
The function that returns the time gets, for example, '1:56' if the MP3 is 1 minute 56 seconds long, and that call brings back "01:56:00" (whereas it needs to be 00:01:56). How can I make this work? How can I tell sprintf to pad ...
My php application uses stripslashes() to deal with magic_quotes but I only want it to remove slashes that magic_quotes is putting in, because the user is allowed to supply a \ with his input.
...
There is a reference table that shows the execution cost of every php function?
I know that the time execution is boundet to many factors and is impossible to determinate an unique value, but im looking for a 'ideological' table.
For example,
is_dir() = cost 3
is_file() = cost 2
(take it JUST as an example ;)
If i dont remember bad...
I realize it's possible to create a PHP Web Service using SOAP, however, are there classes within PHP that make this easier than hand creating the SOAP messages?
Also, how well does this interop with ASP.NET?
...
Hello,
Recently I installed a Visual Studio 2008 extension called VS.Php, made by Jcx Software: http://www.jcxsoftware.com/vs.php
It looks brilliant; IntelliSense and debugging for PHP! A godsend!
Unfortunately, it assumes I have a white background in Visual Studio, but I have the hacker style "black terminal with green text", which m...
I am creating a UI in which users have the ability to change color values of their pages. What I would like is to take the value assigned to their background color and lighten it a certain amount. I am just looking to achieve a highlight line without having to make new images every time.
Example: The user set the background color to #E...
I need to create a view that lists out taxonomy terms and then list the top 3 recent(sort by node:date updated) nodes with that tag
example out put:
Article
Article 1
Article 2
Article 3
Podcast
Podcast 1
Podcast 2
Podcast 3
.
.
.
I created a view of type "Term" and I can get the view to output all of the terms. However, I don...
Hello,
I am looking for a encoder to encode php scripts on fly, so that i can request users url through installation file and return a encoded file locked to that url.
I found this after searching on net. http://www.codelock.co.nz/codelock_dynamic.php but it seems they havent updated it for a long time now and decoders are also availab...
I asked similar question before and got some nice code, but i'm concerned with one of comments. I asked how to create and import mysql database from sql file in php on shared hosts. One of commenters said that some hosts might not allow me to do so from php. After digging a bit on other places someone suggested that I could create databa...
I'm using PHP's "simplexml_load_file" to get some data from Flickr.
My goal is to get the photo url.
I'm able to get the following value (assigned to PHP variable):
<p><a href="http://www.flickr.com/people/19725893@N00/">codewrecker</a> posted a photo:</p>
<p><a href="http://www.flickr.com/photos/19725893@N00/2302759205/" t...
Current function to run mysql query in PHP and displays error on screen when there is one. I am trying to make it only show the qery and error message to a user with a session $_SESSION['auto_id'] == 1 and regualr users will just see a nice message saying there is an error
In the second example I attempted to do it but I am not sure ho...
How can I determine the maximum filename length on a linux box?
Preferred in PHP programming language.
...
I'm trying to download a file from an ftp server using curl and php but I can't find any documentation to help
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,"ftp://$_FTP[server]");
curl_setopt($curl, CURLOPT_FTPLISTONLY, 1);
curl_setopt($curl, CURLOPT_USERPWD, "$_FTP[username]:$_FTP[password]");
curl_setopt($curl, CURLOPT_RETURNTR...
Is it possible to reflect upon a chain of method calls to determine at what point you are in the chain of calls?
At the very least, is it possible to discern whether a method is the last call in the chain?
$instance->method1()->method2()->method3()->method4()
Is it possible to do the same using properties that return instances of obje...
So I must upload the CMS that I've been creating in the development environment to my company's server to show the client. But the software I created was built in the document root, and the company wants me to upload it to a folder on the server. Is there any way to set the document root dynamically with PHP, or to include an .htaccess o...
I am working on a PHP code for my social network, what I am planning to do is on user signup or profile update
I will take there zipcode that they enter and use yahoo to lookup there lattitude and logitude from there zipcode
I will then save these value to there user mysql table, this will be used later on to find users located within X ...
I need a JSON, JS Array parser in Java and/or PHP. Do you know any parser ?
regards,
...
I've looked around a bit and I can't seem to find the answer to this problem: in fact, this may be a stupid question and there isn't an answer.
So anyway; here's my problem.
I have a website that runs off of Drupal. So, I've also started to mess around with Adobe Flex to create a few fancy drag/drop webapps that I'd like to embed into...
Hi,
I'm getting this strange behavior when fetching a website using socket. The string returned from get_content() function below include some "extra information" that are not present on the original website.
function get_content($a, $b, $c = "00")
{
$request = "arg01=" . $a;
$request .= "&arg02=" . $b;
$request .= "&arg...