Hi,
I have installed XAMPP on a Windows XP Machine. PHP scripts are working fine through the browser.
Initially, PHP.exe (CLI) was failing with error - can't load php_pgsql.dll
I disabled extension=php_pgsql.dll in the php.ini file and PHP.exe stopped to fail.
However, even now I am not able to run a PHP script from the CLI even thou...
I need to add a suffix of ?hl=foo to the end of all internal URLs on my site.
Im not sure of the best way to do this because of complications such as...
<a href="http://www.example.com">My Site</a>
<a target="_blank" href="http://www.example.com">My Site</a>
<a class="a-class" href="http://www.example.com">My Site</a>
...
Is it possible to load different LocalSettings.php in MediaWiki based on login.
...
Hi, everyone!
I am going to start on a new project for my school. I have to create a "question of the week" forum, where the members can post questions and their questions could then be voted by other members. The best question of that week will be discussed the week after, and the posting of the questions will take place again.
I am ...
Hello,
I want to execute a script every 30mins, but i want to use it through cron as it is my personal script which emails me updates from various sites depending on configurations.
So what should i write in Command to run in cpanel to execute my script with name check.php
...
I've been trying myself, and searching online, to write this regular expression but without success.
I need to validate that a given URL is from a specific domain and a well-formed link (in PHP). For example:
Good Domain: example.com
So good URLs from example.com:
http://example.com/so/this/is/good
http://example.com/so/this/is/good...
I am using the MySQL GROUP BY function, and want to know if there is a way to get the number of items for that group without having to a query again?
$homePointsPlayerResult = mysql_query("SELECT `player_id` FROM `conversions` WHERE `game_id` = '$game_id' AND `team_id` IS NULL GROUP BY `player_id`");
while ($players_with_points_convers...
Hi,
I use a php form processor script that works fine. Except when users submit text in a multi-line text field, any line breaks or new lines are stripped out of the resulting string variable that is passed on. This often makes it unreadable by whoever receives the form results.
I'm no php expert but am sure the answer lies in the code...
Just a quick question. Say a call a method like so
mysql_pconnect("server","tator_w","password")
or die("Unable to connect to SQL server");
Can I have the 'die' call a method rather then display a text message? If so, how?
...
I'm using Zend_Search_Lucene, the PHP port of Java Lucene. I currently have some code that will build a search query based on an array of strings, finding results for which at least one index field matches each of the strings submitted. Simplified, it looks like this:
(Note: $words is an array constructed from user input.)
$query = new...
Hi im writing a script fo a pop up window that will fetch all the users outlook/plaxo contacts.
So a window is displayed on a website, user then can choose between outlook or plaxo for their contacts to be fetched. Once fetched these contacts will be displayed in a list and the user can then send an invitation.
Here is a reference,
htt...
Hi,
I'm looking to parse some CXML in PHP...basically all I'm looking to get the value of tags and attributes within it..
how can this be done...
Thanks,
...
Hi guys,
I've been having a lot of trouble with character sets/encoding while writing a multi-lingual web app in PHP in different places such as the shell, inside PHP itself, and in the database. I want the whole application to be UTF-8 throughout, so that I won't have to worry about converting anything back and forth anymore. Does any...
I've just started working on an existing CakePHP project. I will be developing a class that does some operations on an Excel spreadsheet. Like a PEAR object, the class will be called by Cake components, but in and of itself it will not call any Cake components. Where is the best place to put the class file in the project hierarchy?
...
I'm using the built-in Joomla! breadcrumb module, but nothing shows up but "Home" on all my pages.
I looked @ the internals of the module, and inside /modules/mod_breadcrumbs/helper.php
$pathway = &$mainframe->getPathway();
$items = $pathway->getPathWay();
When I do a print_r on $items, the only thing in the array is "Home". My ...
Hi,
I'm building a basic forum where each post contains a name, a message and a date.
The forum is written in PHP and updates with AJAX to load new posts on the fly.
When new posts come in, I would like the old posts to ease down nicely (much like facebook does today when you have new updates) and to make room for the new posts.
Can any...
Hello, i'm trying to create downloadable video-files. In my site there is a list of files.
All videos are in .flv-format (flash). There is exact link to the file for the all videos.
But in all browsers after clicking content is loading to the browser`s window. I needn't in this. As i understand i should create redirect-page wich contains...
Hi,
I'm having a problem with the XML-RPC communication.
I have a XML-RPC Client made in Java with Apache XmlRpc and a XML-RPC Server made in PHP with PEAR's XML_RPC. The problem is that i get a "HTTP server returned unexpected status: Not Found" error. I tested the server with a PEAR XML-RPC Client and it works. I don't know what is th...
I'm guessing it's not a Perl compatible regular expression, since there's a special kind of grep which is specifically PCRE. What's grep most similar to?
Are there any special quirks of grep that I need to know about? (I'm used to Perl and the preg functions in PHP)
...
I have files served like so:
AJAX request handler -> Include file
I would like to retrieve the name of the include file within the include itself. Neither $_SERVER['PHP_SELF'] or $_SERVER['SCRIPT_NAME'] is suitable for this, as they return the "parent" script name.
Thanks.
...