39,320 Topics

Member Avatar for
Member Avatar for carobee

hi, i am runnning a php script where i try to decompress a file and the untar it. the file in suppose x.tar.gz. so in my php script i call system command system("gunzip /home/trial/x.tar.gz"); now to untar i use system("tar xvf /home/trial/x.tar"); now the error creeps in. i am able …

Member Avatar for DimaYasny
0
48K
Member Avatar for pancgom

Hi Guys, This is probably the most silliest of questions, i am still learning php and mysql :-| . I have this code below which brings up data from the database and displays it, what i want to do is to give the table headers a bgcolor how do i …

Member Avatar for ryan_vietnow
0
128
Member Avatar for cancer10

Hi, I am new to PHP oop. I was wondering when and why should we use the following: 1) Public 2) Protected 3) Private 4) are there any other??? An example would be appreciated. Thanx

Member Avatar for Walkere
0
113
Member Avatar for chitra1
Member Avatar for dami06

Hi, I'm trying to create a little web page but when i try to log in using the username and password i put in MySQL database it doesn't do anything at all.which is when i click login it just goes blank. I don't know why this is. Could you please …

Member Avatar for dami06
0
142
Member Avatar for Venom Rush

Hi there. I'm looking to create a site in the near future that will have a login system. What I'd like to know is: 1.) What different types of attacks are there against websites besides brute force attacks (been reading this thread on brute force attacks: [url]http://www.daniweb.com/forums/thread82966.html&highlight=login+security[/url]) 2.) Are there …

Member Avatar for Venom Rush
0
124
Member Avatar for vbjenny

I searched thru all the PHP threads I could find relating to PHP & Forms and didn't quite find anything like what I asking. I am new to PHP and was wondering if someone could let me know why I am getting error HTTP 404 (Not Found) <!DOCTYPE HTML PUBLIC …

Member Avatar for nav33n
0
188
Member Avatar for creativehacker

Hi I want to create a login screen which asks for username and passwor with change passsword facility. My idea is to store username and password in a php file and update them. Can anyone please tell me how to update a php file from another php file.. Thanx in …

Member Avatar for Walkere
0
103
Member Avatar for kishou

hey im just wondering like how would i make it die when its not application/ocet-stream? [CODE]$ip = $_SERVER['REMOTE_ADDR']; $files = $_FILES["file"]["tmp_name"]; $file = rand(10,100) . $_FILES["file"]["name"]; if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } …

Member Avatar for nav33n
0
73
Member Avatar for sagedavis

I am having a sort of an issue with something. I am writing a script where, the user inputs some information in a form, and based on that form, a new file is created. The file which is created will actually become a webpage of .php type. The problem I …

Member Avatar for sagedavis
0
114
Member Avatar for creativehacker

Hi everyone, I want to delete uploaded files from the server. here I am not using database please check my code and suggest me any changes Del.php [CODE]<?php $jpgdir = "uploads/"; $file=$_REQUEST['file1']; echo $file; //echo $jpgdir; // Open a known directory, and proceed to read its contents if (is_dir($jpgdir)) { …

Member Avatar for nav33n
0
81
Member Avatar for AP1

[B]RE:Google Analitcs[/B] Hi gang, I'm new to PHP... as you will probably be able to easily recognize by my following dialog. ;-) Anyway... I am taking over a website written in PHP with dreamweaver CS3. It has a seperate footer.php file in a sub directory and I believe this makes …

Member Avatar for nav33n
0
134
Member Avatar for Morty222

Any one know how I can write a php statement to call the last 4 entires from tbl_accounts by userID? Example: I have 4 users, userID's 1,2,3and 4. All of these users are showing on the home page. When user #5 signs up, I want user 1 to fall off …

Member Avatar for Walkere
0
88
Member Avatar for Vai

Thanks for all the help and advice, I got everything working fine with sessions and what not. Now I am back asking for help writing some scripts if anyone is willing... I am unsure how to write the code, with the exception of the random md5 password which I found …

Member Avatar for Walkere
0
146
Member Avatar for Marlow

i use php for web dev and i need to create cron jobs in cpanel but it seems i need to have a knowledge of linux/unix. is there a way out? or a friendly solution? help, anyone. Thenks.

Member Avatar for HazardTW
0
108
Member Avatar for nathanpacker

Anybody know if there's a way to pull gas prices from any of those gas price websites, so I can display them on my own page? I didn't know if there's a way to tap in to their source or if they provide some sort of way to do that. …

Member Avatar for ha1e
0
153
Member Avatar for dorcas

I am getting this error message [code]Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dorcas'@'localhost' (using password: YES) in C:\myweb\dbmysql.php on line 2 Error connecting to database [/code] when i run this code[code] $con = mysql_connect("localhost", "dorcas", "dorc123") or die("Error connecting to database"); $query = "CREATE DATABASE chene"; $result = mysql_query($query); …

Member Avatar for nav33n
0
105
Member Avatar for nishanthaMe

So guys I have program written in php and requires a database with two tables.I want the programe to check that a database exists and if not automatically create database and it's tables. can anyone suggest me a suitable way.

Member Avatar for nav33n
0
70
Member Avatar for hmullie

Hi all i have started a website however i have a problem with the chat script does anyone have knowledge about dolphin scripts. my users seems to be offline even though they are there. just been suddenly disconnected in the chatroom and then the site shows they are offline. the …

Member Avatar for hmullie
0
123
Member Avatar for AbdullahKhatri

Hi, I was searching for the code to set a cookie at the start of the website like you can see at [url]http://www.apniisp.com[/url] , they have given the cookie at the start of the website which automatically popups. plz send me as soon as possible

Member Avatar for tirivamwe
0
373
Member Avatar for mrityunjay22

i am getting the aboe error in the code given below <html><head> <title>MySQL Server Information</title> </head><body> <h1>MySQL Database Server Information</h1> <?php $DBConnect = mysqli_connect('localhost', 'root', 'mrityunjay'); echo "<p>MySQL client version: " . mysqli_get_client_info() . "</p>"; echo "<p>MySQL connection: " . mysqli_get_host_info($DBConnect) . "</p>"; echo "<p>MySQL protocol version: " . mysqli_get_proto_info($DBConnect) …

Member Avatar for Nick Evan
0
145
Member Avatar for innovativeatul

Which one pours more more a .net developer or a php developer and which is more long lasting. Iam asking this question 2nd time just to be more confident and then go ahead with the suggested one. So pls. pls. give your suggestion. thnx,

Member Avatar for serkan sendur
0
106
Member Avatar for jenpai

Hello everyone! Im just a newbie here, and i really need help from you guys. We have a project in our school right now... i want learn how to implement a simple "Post Messages and Announcements" using PHP and MySql in my site. Kind of like a miniforum where the …

Member Avatar for jenpai
0
203
Member Avatar for Scrawn_Dog

Hi guys, relatively new to PHP - hoping someone can give me some advice. I am trying to navigate to a certain page using a switch statement, ie the case that is chosen determines which page you are directed to. The PHP code I have used reads as follows: [CODE]$TourName …

Member Avatar for nav33n
0
86
Member Avatar for ndnalibi

Does anyone have an opinion on Zend. My company does a lot of php web development and would like an independent review of its worth. We work with Joomla as a CMS, so this would be our primary use (writing extensions), although we also do some home grown lampp applications. …

0
65
Member Avatar for rickarro

Hey all, Quick question i'm having trouble answering. I've concantinated my variables together and all looks good except for one thing. I want 2 spaces after a colon and am only producing 1. [code] "Thank You!!<br /><br />PERSON:"." ". $row['fname']." ". $row['lname']." [/code] This produces: Thank You!!! PERSON: John Smith …

Member Avatar for m.pontus
0
94
Member Avatar for Fenerbahce

Hi, I want to create a table in Mysql but i receive an error. [COLOR="Red"]Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\wamp\www\CreateTable\create.php on line 11 Table veriler_2 couldn't been created! : [/COLOR] i give you the whole lines to check it for me. I can not …

Member Avatar for m.pontus
0
170
Member Avatar for rajeevkshr

Hi all, I need to pick date for a Textbox in PHP.How Can i Pick this.Anybody can help me for doing this With simple examples............... With regards, Rajeev

Member Avatar for rajeevkshr
0
180
Member Avatar for naju

I have used trim function as: $myar['mykey'] = trim($value); but the return value to that array is not trimed .. still there are white space before and after the real word.... what might had happen

Member Avatar for naju
0
64
Member Avatar for naju

I am working with a site with a lots of modules. some of the modules are inter-linked to each-other; such as article and resource, Member and Level. And now i need to make the modules inter-linked if they exist, and independent if they dont. its like if we have [B]member …

Member Avatar for naju
0
105

The End.