I am customising the mediawiki for our internal portal.
I need to open a popup window on clicking a link in the wikitext. This popup would take information from the mysql database and display a movie clip or a document or something.
Anyone knows how this can be done?
...
I would like to post my script here, if I get the okay I will post it, or is there another place that I should post my script and link to it?
Please Advise
...
Hi everyone,
I'm stuck with a stupid problem of encoding.
My problem is that all my accentuated characters are displayed as weird iso characters.
Example : é is displayed %E9
I send a string to my php file :
XMLLoader.load(new URLRequest(online+"/query.php?Query=" + q));
XMLLoader.addEventListener(Event.COMPLETE,XMLLoaded);
When I...
How do I add a new method to an object "on the fly"?
$me= new stdClass;
$me->doSomething=function ()
{
echo 'I\'ve done something';
};
$me->doSomething();
//Fatal error: Call to undefined method stdClass::doSomething()
...
Hi All
I have to send mails to all users in the site when a new user joins.
My problem is the script stops execution after sending around 400 mails.
I have set the set_time_limit to 0. And also I am giving sleep(2) after sending 10 mails.
What may be the reason behind this issue.Any solution for this problem . Is there any better metho...
Possible Duplicate:
Best way to Learn PHP
I am currently learning from a PHP Steven Holzner book. Got any other way to learn?
...
print_r($pages);
print max($pages);
print min($pages);
shows me
Array ( [0] => 1 [1] => 2 [2] => 3 ) 1 2
While I was expecting the last two numbers to be 3 and 1. How come?
EDIT: further info
$pages = $v->plaintext;
var_dump($pages);
$exp = explode("|", $pages);
print_r($exp);
print max($exp);
gives
string(324) " 1 | 2 | 3 "...
For example, I have an article should be splitted according to sentence boundary such as ".", "?", "!" and ":".
But as well all know, whether preg_split or explode function, they both remove the delimiter.
Any help would be really appreciated!
EDIT:
I can only come up with the code below, it works great though.
$content=preg_repla...
Hi,
I want to use the youtube api to get the users new subscription videos with this api call:
http://gdata.youtube.com/feeds/api/users/default/newsubscriptionvideos
Without logging in I get this response:
User authentication required.
Error 401
How can I login to youtube from php?
...
What is wrong with this regexp? I need it to make $name to be letter-number only. Now it doens't seem to work at all.
if (!preg_match("/^[A-Za-z0-9]$/",$name)) {
$e[]="name must contain only letters or numbers";
}
...
I'd like to embed code from my SVN repository into my website, using PHP. The SVN has public anonymous access, so the PHP code should be fine reading it.
The code on said SVN is java, and so far I've had no luck finding a syntax-highlighter to make the code more readable. Ideally I'd like one that uses CSS classes so that I can change t...
I use Geany as text editor (windows). It shows the functions list sorted alphabetically and I would like to have the actual functions in the source code sorted in that way.
Is there any program to process the source code (php) and output the functions sorted alphabetically my name?
...
I basicly need to load the whole XML file, add a new line with content and then saving it. But I wondered which one is faster.. XMLWriter or SimpleXML? Oh, and, it's mainly large XML files, more then 10MB.
Thanks!
...
What programming languages are used to create sites for online video convertion and mp3 extraction from youtube, like this one: http://getvideo.bg ? I guess it's not written in php ...
...
I have this source code where I got it from net tutsplus. I have configured it and made it work in one PHP file. It does work by transferring the original image, but it does not generate to the thumbnails folder.
<?php
$final_width_of_image = 100;
$path_to_image_directory = "../../img/events/" . urldecode($_GET['name']) . "/";
$path_to...
Alright, PHP is throwing this error at me (in the log) when I run the code mentioned below:
Error
mysql_num_rows() expects parameter 1 to be resource, string given in (place) on line 10
Line 9-11
$queryFP = ("SELECT * FROM db");
$countFP = mysql_num_rows($queryFP);
$aID = rand(1, $countFP);
I think it has something to do with the ...
I am developing a website, where I am allowing users to upload videos, but if the members numbers keep on increasing and they keep on uploading more videos it will be expensive for me. So I want to upload the movies to youtube instead, is this possible?
By viewing some other posts here, I am thinking it is possible?
...
I'm attempting to place some embed code into a Premium WordPress Theme.
NOTE: I'm not great when it comes to php.
The embed code is produced by a video player called EasyVideoPlayer. (Basically it allows me to use Amazon S3 and gives me feedback on when people stop watching the video.)
This is the embed code I have:
<div id="evp-3f0...
I'm looking for a fast IDE for Linux that has Find&Replace. I'm currently using Geany and I've tried NetBeans, and Aptana doesn't have a PHP plugin for 2.0. I prefer one that has a sense of projects. Does anyone have any suggestions?
...
I have a website which has 2 pages , (home_page.php and action_page.php)Action page takes aprx. 2 minutes to completely load (server side takes 2 minutes) . But if user clicks to home page link while action page is loading , browser does not go to home page , until action page is completely loaded . First of all what is the reason of thi...