I have a folder of images, from 10 to 200, a webpage, a jquery fade and a php script that read folder full of images
Is there any way to make the php script scan a folder, get a list of image (in an array ?) and pass it to jquery script ? (first question)
Now, i can make a xml file from the result php list of files found or make a html...
It's possible I'm not properly deleting PHP sessions when the user signs out. I've noticed that if I sign out and sign back in without closing the browser, the session ID doesn't change but if I sign out, close the browser window, open a new one and sign in, the session ID will be different. Do I need to be doing something different or i...
Before we start, strip_tags() doesn't work.
now,
I've got some data that needs to be parsed, the problem is, I need to get rid of all the HTML that has been formated very strangely.
the tags look like this:
(notice the spaces)
< p > blah blah blah < / p > < a href= " link.html " > blah blah blah < /a >
All the regexs I've been tr...
I am working on a building a gallery and the goal is a low barrier of entry. My user is someone who takes pictures using their digital camera so file size would be between 200 - 400 KB per image.
The problem I am running into using the GD library is that each image when resized and uploaded use about 90MB of memory+ when the server h...
Hi Guys,
Had a bit of spare time to learn some OOP in PHP this evening and hit a brick wall. I am creating a little book library app to keep track of my book collection and thought I would use OOP for practice.
I have a main php file called library.php that contains 2 main classes so far.
class database (connects to mysql, database ...
I have a BUNCH of $_POST variables being sent in via a long form and instead of hard coding each one with a mysql_escape_string() is it ok for me to do the following? I don't know if this is actually safe and/or viable code.
foreach ($_POST as &$post_item){
$post_item = mysql_escape_string($post_item);
}
I'm fairly certain that be...
I have debian server.
My phpmyadmin & mysql through command line was earlier working well.
But suddenly i am getting this error while accessing phpmyadmin.
http://myserver/phpmyadmin
2003 - The server is not responding
And when i try to access through command line
mysql -u userid -p
Enter password:
ERROR 1045 (28000): Access de...
currently the moodle that we are using doesn't have a video plug-in.i have developed a video plug-in for moodle.I would like to add the plug-in to the Moodle software that is being used in our institution.I am new to open source. How to include the plug-in .how do i go about with the integration ,so that i am able to use the video plug-...
What regular expression can identify double quotes outside of HTML tags (which already will be validated) to escape them to "?
...
I am developing an application in php. I need to display a notification message on windows taskbar. So please help me...How to do it using php.
...
Hello!
In my project, I'm using HTML_ToPDF PHP class, which uses html2ps script to convert from HTML to PDF file.
Recently I upgrated my production server to Debian 5 (lenny) and, after that, HTML_ToPDF is no longer working:
convert() method from HTML_ToPDF class is returning this error:
Error: there was a problem running the html2ps...
When accessing my site from a number of machines $_SERVER['REMOTE_ADDR'] always resolves to an empty string. What can be the cause of this?
Additional info:
One of the machines is running the site on localhost. Shouldn't a machine on localhost always resolve to 127.0.0.1?
My set up is LAMP. One dev. machine that runs the site localhost...
I need to calculate modulus with large number like :
<?php
$largenum = 95635000009453274121700;
echo $largenum % 97;
?>
It's not working... beacause $largenum is too big for an int in PHP.
Any idea how to do this ?
...
Is there a smart way to check whether output has already been sent to the browser and sending a header would generate a PHP_WARNING?
Obviously there's the alternative of using an output buffer, but that's not always an option.
...
I've created a PHP script that takes the contents of an array and stuffs them into a variable called $body:
foreach($_POST as $var => $value)
{
if (($var != "Submit") && ($value != "")) {
$body .= $var .': '.filter_var($value, FILTER_SANITIZE_STRING) . '<br>';}
}
This $body then forms the body of an HTML email. All is fine until ...
I'm working with the Fusion Chart Free API for PHP. The docs state that you can generate a chart from any type of database query, but when I attempt to pass a result other than an mySQL result. However when I try this:
$FC->addDataFromDatabase($result, "SALES", "ITEM");
Where $result is a valid DB2 result set, I get this error.
"mysql_...
I am getting the following error while trying to run a PHP page
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
The page was working fine earlier.Then i made some changes to the page for formating of the content(Added some more rows to the HTMLtable and gave some styles for it)
Can anyone tell...
Hi,
I'm looking for a good publishing platform with a good media gallery. I'll need to show several sorts of video and images, so a good media gallery is a must. I've tried drupal, but I don't like the node organization structure. I'm searching for a simple URL scheme, because in the future I may want to migrate my static html site to t...
What's the best PHP Social Networking Framework (opensource) ASAP (Working prototype in 4 hours!)? I'm looking at something that can handle profiles, where each profile can make multiple posts, and each post can be rated by the community?
I'm looking at BuddyPress with WP MU? Is it possible? Should I go with CakePHP or CodeIgniter? Any...
Hi
I've got a confusing difference between my localhost (xampp windows) and my domain (FC7 linux). I have a page with a lot of database driven select lists. On update these values are passed to a page that updates databases and confirms this to the user. (I'm monitoring my db's directly and this is happening correctly)
There's a menu ...