php

Installing Recaptcha in Joomla 1.5 user registration

I am trying to install ReCaptcha into the user registration of Joomla 1.5. This may just be an issue with Joomla but when i hit register nothing happens. I think it's doing some JavaScript form validation but there is nothing telling the user what went wrong. if, God forbid, they do fill out the form correctly Joomla will redirect the us...

imageshack api problems. Will not upload my image

Hi all, I was just wondering if anyone has used the imageshack api as i am trying to use it and i am having some issues as it just fails and will no upload my image. the php library for image shack can be found here http://elliottback.com/wp/using-the-imageshack-xml-api/ i pass the for file element to the upload function but it just d...

Paypal Payments Pro - randomly fails

I am having an horrendous time implementing a Payments Pro gateway to Paypal and I wonder if anyone has had similar issues that may provide me with some insight? We're using PHP and have been attempting to interface via the paypalfunctions.php code generated at their own integrationwizard.x.com website. The original had an (acknowledge...

Forcing the Browser Back a Page

Hi there, I was wondering if there was any way through php or javascript I could tell the browser to go back to the page it came from, or even better not load the page at all (the later being probably impossible). The reason for this is that I have written a small php script that will take parameters from the url and post a tweet for me...

On Windows, can you use UNC like paths to files in PHP, for functions like file_get_contents(), etc?

(Assuming the network folders/permissions are correctly set up and working in Windows, and a 'default' PHP setup...) Is it possible to use UNC network paths [like \\ServerName\Folder\file.txt] in PHP's functions like file_get_contents(), fopen(), etc? And/or, what special cases allow/disallow this? ...

How do I compile an extension for PHP 5.3 for windows as a DLL?

I'm currently rewriting a PHP Extension that was originally written for PHP 4.2.2. My issue is having the build/compile process generate a DLL instead of compiling the extension into the PHP core. The environment is windows server 2003. I'm using Visual Studio 2008. I used the EXT_SKEL script to generate the framework, and I can succ...

PHP Sessions/cookies not storing correctly when using IE6/IE7

Hi guys, We have a local intranet site that everyone on the network uses, maybe 5% (or even less) of the users that use the site have problems where the session isn't stored properly. I've tried defining a path manually (C:/Coookieess) and checking to see what's going on, and whereas most users sessions are created and remain just fine...

Outer Cross Join?

I'm trying to avoid using queries in while loops. Therefore I've come to the conclusion that I should use a cross join. Take this example: SELECT * FROM products CROSS JOIN images USING (imgId) CROSS JOIN productcolors ON colorsId = colorId WHERE productId = 1 should return two rows (table structure below): imgId | productId | colo...

Zend Mail Gmail SMTP

Hi I'm trying to send some emails via gmail from the Zend_Mail module. This is my code: $config = array( 'ssl' => 'tls', 'port' => 587, 'auth' => 'login', 'username' => '[email protected]', 'password' => 'password' ); $smtpConnection = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config); Error: Warning: ...

allow logins from multiple domains in phpbb?

Hi all, I've read a bunch of different things, none of which seem to be my situation. I have a site which uses a phpbb forum, and we also have multiple wordpress blogs which can use the database of phpbb via a plugin named wp-phpbb (can't post another hyperlink, but its at simplicitypoint dot com) . It works great for something that is...

Zend Framework - Passing a variable within a controller for an ajax call

Hi out there in Stackland! Here's my problem: I want to use my Zend controller to load an array from a database, and then pass it to javascript. I've decided the best way to do this is to use ajax to ask the controller for it's array, encode it in json, and then pass it down. However, I don't know how to pass the variable I loaded in...

What happens during a file upload?

I upload a file to my server (Server A) using a PHP script. With this same PHP script I again upload using CURL from my site to another server (Server B) using what was just uploaded like this: $file = $_FILES['file']['tmp_name']; My question is this: Does this script wait for the file to be completely uploaded to Server A before cont...

PHP - Get page from external server.

I want to pass a function a string, which takes that string tacks it onto url. Then goes to that url and then returns the page to my server so I can manipulate it with JS. Any Ideas would be much appreciated. cheers. ...

How to support "AddType x-mapp-php5 .php" on my development machine

My ISP requires me to put the following in my .htaccess files: AddType x-mapp-php5 .php But that breaks my development machine. I don't really understand what that directive is for, but I'm sick of commenting it out for dev, and uncommenting it whenever I need to upload a new version. Is there some way of supporting it in dev? ...

Slashes within echo of input type html

I do not want to display all the slashes when displaying the html What I have is echo "<input type=\"text\" name=\"myname\" value=\"myvalue\""; What I want to do is: echo '<input type="text" name="myname" value="myvalue">'; I am looking to save myself from typing all the slashes. Is there a way around that? ...

How to use rapidshare API to get Account Details ?? PHP question

I get a long string like this : accountid=*** type=prem servertime=1247000294 addtime=****** validuntil=**** username=8 directstart=1 protectfiles=0 ... how to get values from it using php ?? i mean how to set accountid's value to a variable ?? like $username = VALUE OF ACCOUNTID ? i tried strpos , but.. i dont know how to get it .. pl...

How to SET GLOBAL group_concat_max_len

What is the php code please to SET GLOBAL group_concat_max_len=15000 in MySql ? or SET SESSION group_concat_max_len=15000 ...

Use DLL in PHP?

I'm not going to lie. I'm not all the familiar with Windows and COM objects. That's why i'm here. First of all is it possible to access a DLL from within a PHP script running out of Apache? In my journey around the internets i believe that i have 2 options: compile the dll as an extension for PHP. (i didn't make this dll) access the DL...

How can I send a html entities text via GET method in PHP ?

hi I sent a text via GET method to decode html entities ( &#119; = w ) > ?text=&#119;&type=htmldecode&format=text I got errors in the $text variable then I tried to set it in the last of the link ?format=text&type=htmldecode&text=&#119; and I got the same errors how I can fix that ? ...

How to set the function to make user click the table header to change sorting order

I want to let user click the table header to sort the table, but can just set the ascending order, can not set the descending order in the same table header. following is the function I used, just want to know how to call the function function sortDistrictNamedescend($a, $b) { if ($a->DistrictName == $b->DistrictName) { ...