Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~5K People Reached
Favorite Forums
Favorite Tags
Member Avatar for khr2003

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 …

Member Avatar for swatipatil05
0
210
Member Avatar for khr2003

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 …

Member Avatar for twiss
0
114
Member Avatar for phaedrusGhost

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'] …

Member Avatar for phaedrusGhost
0
130
Member Avatar for NOOR JAMALI
Member Avatar for ilyas_varol

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

Member Avatar for test2009test
0
152
Member Avatar for phplover

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 …

Member Avatar for khr2003
0
96
Member Avatar for khr2003

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' …

Member Avatar for khr2003
0
109
Member Avatar for khr2003

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 …

Member Avatar for BzzBee
0
89
Member Avatar for khr2003

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 …

Member Avatar for khr2003
0
69
Member Avatar for khr2003

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 …

Member Avatar for khr2003
0
66
Member Avatar for khr2003

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 …

Member Avatar for khr2003
0
93
Member Avatar for khr2003

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] …

Member Avatar for khr2003
0
162
Member Avatar for khr2003

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"; …

Member Avatar for khr2003
0
119
Member Avatar for khr2003

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='' …

Member Avatar for Josh Connerty
0
83
Member Avatar for khr2003

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){ …

Member Avatar for cwarn23
0
1K
Member Avatar for khr2003

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 …

Member Avatar for almostbob
0
161
Member Avatar for khr2003

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 …

Member Avatar for nav33n
0
86
Member Avatar for khr2003

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 …

Member Avatar for prawin@123
0
182
Member Avatar for khr2003

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?

Member Avatar for uncle_smith
0
55
Member Avatar for khr2003

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 …

Member Avatar for diafol
0
258
Member Avatar for khr2003

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 …

Member Avatar for khr2003
0
65
Member Avatar for khr2003

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 …

Member Avatar for khr2003
0
113
Member Avatar for khr2003

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]); …

Member Avatar for khr2003
0
122
Member Avatar for khr2003

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

Member Avatar for DiGSGRL
0
54
Member Avatar for khr2003

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 …

Member Avatar for khr2003
0
171
Member Avatar for khr2003

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?

Member Avatar for kanaku
0
61
Member Avatar for khr2003

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" …

Member Avatar for ~s.o.s~
0
148
Member Avatar for khr2003

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 …

Member Avatar for khr2003
0
71
Member Avatar for khr2003

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 …

Member Avatar for mschroeder
0
282
Member Avatar for khr2003

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 …

Member Avatar for khr2003
0
70