I tried using a free script that I found on the Internet but it is giving me problems with Windows users (even though they are using IE 8, so it's not an option for me to ask them to upgrade their browsers.) Here's the requirements:
I have a bunch of Microsoft Word and pdf files that need to be protected so that only authorized users c...
Hi,
I'm quite new to Zend and the database classes from it. I'm having problems mapping a Zend_Db_Table_Row_Abstract to my rows.
The problem is that whenever I try to map it to a class (Job) that extends the Zend_Db_Table_Row_Abstract class, the database data is not receivable anymore. I'm not getting any errors, trying to get data simp...
I'm currently in need of a (preferably open-source) free push server, that supports both linux and windows. I need something similar to the Ajax Push Engine, but that project unfortunatelly does not work on windows (I could use a virtual machine, but that's not what I'm looking for).
I need to be able to push information to/from a pytho...
Can someone point me towards a resource or show me an example of a good way of writing sql statements in php.
Most statements seem so ugly and unreadable.
...
How do you prevent malicious input in WYSIWYG editors like TinyMCE?
I have a system with users who are not "tech savvy" (so no WMD) and need a rich text editor that posts its content into a database.
I'm worried about scripting attacks and malicious input code.
...
Hi any idea what this is matching
thanks
preg_match('/^[1-8](0|5)$/', $myValue)
...
I don't think i fully understand character sets so i was wondering if anyone would be kind enough to explain it in layman's terms with examples ( for Dummies).I know there is utf8, latin1(ISO 8859-1), ascii ect
The more answers the better really.
Thank you in advance;-)
...
I've been using indexes on my mysql databases for a while now but never properly learnt about them. Generally I put an index on any fields that i will be searching or selecting using a WHERE clause but sometimes it doesn't seem so black and white.
What are the best practises for mysql indexes?
example situations/dilemas:
If a table...
Hallo,
I would like to have ckfinder upload files in a private folder based on user_id. Is there any way to accomplish this? How can i call the config.php file to change the settings dynamically for each ckeditor.replace() ....
Greetings
David
...
Hello,
I need to write a proxy script to log into secure servers without ever revealing an administrative password.
Can someone recommend some proxy scripts (written in PHP preferably) that I can look into?
Thanks!
Edit: I would be most interested in well documented scripts... if that matters.
...
I need to have a button that calls a php function to resort displayed data from the db. How the heck do I do this? I just found out that because php is server side this sucks. So any help please?
...
I am using Symfony + SwiftMailer and getting the following error from SwiftMailer:
500 | Internal Server Error | Swift_TransportException
Expected response code 220 but got code "", with message ""
and can't figure out why. I am using hMailServer on my local machine, and have setup my factories.yml file (as I'm using Symfony) as follo...
Everyone else social networks have a simple method to share anything content. I need create a share button using php/javascript. Can someone help me?
...
I am using jquery to sort through a group of paragraph tags (kudos to Aaron Harun). It pulls the value "letter" (a letter) from the url string and displays only paragraphs that start with that letter. It hides all others and also consolidates the list so that there are no duplicates showing.
See the code:
var letter = '<?php echo(st...
Hi All, is there a way to retrieve only the immediate children found by a call to DOMElement::getElementsByTagName? For example, I have an XML document that has a category element. That category element has sub category elements (which have the same structure), like:
<category>
<id>1</id>
<name>Top Level Category Name</name>
...
when i upload images using ckfinder in the ckeditor the image displays nicely using css width & height. i would like images to have default width and height attributes. How can i accoumplish that?
greetings
David
...
I'm using a simple thumbnailing script I wrote and it's pretty standard:
$imgbuffer = imagecreatetruecolor($thumbwidth, $thumbheight);
switch($type) {
case 1: $image = imagecreatefromgif($img); break;
case 2: $image = imagecreatefromjpeg($img); break;
case 3: $image = imagecreatefrompng($img); break;
case 6: $image = imagecreate...
I'm learning to use the PHP interactive shell, but I'm having trouble with multi-line code.
Using backslashes like in the UNIX shells doesn't seem to work. What am I doing wrong ?
php > function test(){\
php { echo "test";\
php { }\
php > test();
PHP Parse error: syntax error, unexpected T_ECHO, expecting T_STRING in php shell code on...
Hello,
I'm setting a PHP session variable with a success message for a HTML form that I'm submitting. If there are no form errors, I redirect to the same page (using header()) and display the message from the session variable. Everything is fine until here, but if I access that page again after submission, the message is still there. Is...
Hello I have something like this:
if(isset($_POST['btnProm'])){
$idads = mysql_real_escape_string($_POST['idAds']);
require_once("adPromFrm.php");
}
When a button is pressed, a form will appear....
When i refresh the page, the form doesn't disappear, but when i click a link with a query string (thisPage.php?lang=fr...), the...