Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~63.1K People Reached
Favorite Tags
Member Avatar for Khav

Hi I have 3 textbox linked to an Access DB by Binding source.I am having trouble to do query. Lets me help u visualise the form The form has 3 textbox (each linked to one field of a table in Access) Another textbox allows user to enter a string and …

Member Avatar for ansumariyam88
0
1K
Member Avatar for Khav

Hello I want to extract content of a website found between some specific html tags.How can i achieve that with php. For e.g consider viewing google.com soure code.I want to extract data with <title> </title> tags and store it in a variable(its "Google" in this case) Bascially script navigates to …

Member Avatar for veedeoo
0
267
Member Avatar for Khav

I want to add a new feature in my present image upload script and that is automatic compression of images just like TinyPng.Basically i want a code snippet that detect 24bit PNG file and convert it to 8bit png file with full support for transparency and that also strip any …

Member Avatar for diafol
0
1K
Member Avatar for Khav

Hello guys , I am getting crazy with this html thing , i just don't know why its not working as expected. Basically i need to display php variable in html Let see the code.... Suppose i have this <?php for($x = 0;$x <count($_FILES['image']['name']);$x++) { $url = something; } //The …

Member Avatar for adam.adamski.96155
0
405
Member Avatar for Khav

Greetings, I have two tables named 'copyright' and 'logs'. Table : copyright Field : Copyr_md5 Table : logs Field : md5checksum Problem 1 Say i have a value stored in `$md5check` in php , now i want to check if the value stored in `$md5check` is found in field `Copyr_md5`.If …

Member Avatar for Khav
0
244
Member Avatar for Khav

Hi All I have an file upload form and i secured it pretty well...One tedious problem is double extention upload. suppose user have a file `image.png` This upload fine and is fully legit.Now suppose a malicious user upload a file like `image.php.png` This file can simiply be a php shell …

Member Avatar for Khav
0
4K
Member Avatar for Khav

Hello guys For my project i am tring to compare elements of an array with string.This could help at a certain extent to prevent pornographics uploads based on the filenames Here is my snippet $banned_file_names = array('bestiality','lolita','porn','xxx','incest','cock','teenporn'); $filen = preg_replace("/\\.[^.\\s]{3,4}$/", "", $file_name); if (in_array($filen,$banned_file_names) === true) { echo 'Adult image …

Member Avatar for Khav
0
234
Member Avatar for Khav

Greetz to you all Well i have an array that contain some characters and i want to check if they form part of a string.If yes then they should be deleted How to do this via php For e.g $string = 'Dani.web'; $charRemove = array('.','-','~','#','!','(',')','+',','); I want to get a …

Member Avatar for diafol
0
2K
Member Avatar for Khav

Hi Guys , i started experimenting a little bit with javascript . I want a javascript dialog that ask user to delete a file.Buttons should be yes or no.The javascript should load as soon as page load **No button is used**. Can you please post a sample code for it …

Member Avatar for Khav
0
3K
Member Avatar for Khav

Hi I am developing my own image hosting script and i want to add api image upload.However i have no idea of how to create API support at this moment.I particularly like the tinyurl api . How can i create a similar api so that users can upload images to …

Member Avatar for pritaeas
0
213
Member Avatar for Khav

Hello guys I want to make my file upload form appear similar on all browser.I current use the code below.This will show differently depending on browser <form action="upload.php" method="POST" enctype="multipart/form-data" > <input type="file" name="image"/> <p><button name="submit" type="submit"></button></p> This is not a secret to anyone:D How can i make the following …

Member Avatar for diafol
0
252
Member Avatar for Khav

Hi I am developing an image hosting website.I want images uploaded to go to another server , not the one where the script is hosted.For e.g i want images to be uploaded to http://i1.mysite.com instead of http://mysite.com/uploads Suppose i have this code to upload file to server <form action="http://mysite.com/upload" method="post" …

Member Avatar for Khav
0
1K
Member Avatar for Khav

Hi I have a vb.net form connected to an access database using vb.net .All my other button except for the add new button If Valid = True Then CustomerBindingSource.AddNew() Me.TableAdapterManager.UpdateAll(Me.DB_ShopDataSet) End If I want this code to add a new row to the customer table.However the current code modify the …

Member Avatar for Khav
0
374
Member Avatar for Khav

Hi Guys I have a script on my linux server.However i am having an issue with php-fpm ...whatever configuration i put , the php pages take time to load.For some configuration , the php files load fast at start and over time they become slow ...after 5-9 hours its 404 …

Member Avatar for Khav
0
324
Member Avatar for Khav

Hi Guys i need help on my school project.Currently i want to validate some important data in a textbox as soon as they are entered by the user Here is my coding........ Private Sub Textbox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Textbox1_Leave Call ValidateTextbox(Textbox1.Text) - Set saved = …

Member Avatar for Khav
0
241
Member Avatar for Khav

Hi I accidently double click on the toolbar and now ALL button on toolbar are gone. I want to reset it to default and get my buttons back. How to do that I tried to write click on Toolbar then Reset toobar , still no good I even tried reinstall …

0
135
Member Avatar for Ithz

Hi guys, I've been getting sporadic bsods without any identifiable cause, and would like to know if anyone could help me identify the problem. It used to hang sometimes while playing games, which I attributed to the games themselves, but recently bsods have been happening while the computer's idle. I'm …

Member Avatar for Ithz
0
334
Member Avatar for Khav

Hi I want to have a server without any control panel(as they will install apache and other modules).I have install php and nginx successfully.However how to add my domain dns zone via ssh Also by default nginx document root is `/usr/share/nginx/html/` . I have no problem with that as i …

Member Avatar for Khav
0
194
Member Avatar for Khav

Hi Guys I am having a very serious problem here and i don't know who to fix this.Before my site was running on apache and everything was perfect.However to make server more efficient i decided to install nginx as a backend. What is the problem? All files downloaded from my …

Member Avatar for Khav
0
813
Member Avatar for Khav

Hi Guys I have a text area(in php) that contain some text.I want a javascript that select the text and copy to clipboard automatically.Then it display "Link copied to clipboard alongside the text area Can anyone of you suggest me a good javascript ?

Member Avatar for Troy III
0
145
Member Avatar for Khav

Hello Guys In some part of my coding i want to obtain the width and height of an image in terms of PIXELs I tried the following //the rest above aren't important $path = $_SERVER[DOCUMENT_ROOT].'/images/'.$image; $imgdata = getimagesize($path); $imgdata[0] = $width; $imgdata[1] = $height; If ($width > 800 || $height …

Member Avatar for Khav
0
181
Member Avatar for Khav

Hello , Can anybody tell me that is wrong in this statement `$data = mysql_query("SELECT Column1 FROM '$tbl_name' WHERE Column2 = '$image'");` I then tried `echo $data; ` - But no result Basically i want to retrieve the value of Column1 where the value of Column2 is equal to the …

Member Avatar for Khav
0
123
Member Avatar for Khav

Greetings, i am doing a school project which basically deals with forms and an access database.I have various textboxes in a form.I want some textboxes to be filled automatically with a value when another textbox has been filled. For e.g , if the user fills in the 'Cost' textbox , …

Member Avatar for Khav
0
861
Member Avatar for Khav

Hi all I want to change the swappiness of my linux server.Its running nginx as front alongside with cpanel Based from tutorials i added `vm.swappiness=90`(to change default value from 60 to 90) in sysctl.conf and i reboot the server However when after reboot is done i did `cat /proc/sys/vm/swappiness`and the …

Member Avatar for Khav
0
704
Member Avatar for Khav

I am having kind of stupid problem:P <?php echo $url; // In my php files $url contain multiple values ?> This works fine The different values of url get displays properly For e.g http://www.google.com http://www.daniweb.com That's perfect Now when i tried to echo the variable in some html <?php $url …

Member Avatar for jasonsarino
-1
43K
Member Avatar for Khav

Hi Guys I have been extracting zip files and uploading them successfully with PclZip Library.However i want to rename the extracted files using some random string generator on the fly before placing them in my 'images' folder On the site they said that a callback function can be used to …

Member Avatar for Khav
0
718
Member Avatar for Khav

P.S i know title sucks but i couldn't think of an appropriate title to explain this:( Well i tried to think over this matter for days but couldn't found the logic of how it is done, so i guess only you guys can help me understand this some of you …

Member Avatar for Khav
0
318
Member Avatar for Khav

Hi Guys I am currently working on an image upload script. i want to log user upload and record their ips. I worked on a script(its works) but i am not sure if it will be 100% reliable. Here is code that i though of <?php $ip = $_SERVER['REMOTE_ADDR']; $filename …

Member Avatar for pritaeas
0
168
Member Avatar for Khav

Hello Guys , I want to create a script that convert a text file or Nfo file to an image(format is .PNG). What it does is simply load the txt and output it as an image Here is my code: <?php if(isset($_FILES['image'])){ $errors = array(); $allowed_ext = array('txt'); $file_name = …

Member Avatar for Khav
0
309
Member Avatar for Khav

Hi Guys First of all i would like to state that i am new in php so my question might appear stupid for the geeks here. I want to create an image downloader in php , that is i need a textbox and a submit button. The user enter each …

Member Avatar for Khav
0
656