Member Avatar

I'm trying to write a web application that will allow me to synchronize a folder in my PC with a folder in my website. Can I do this with PHP alone? Is there a script out there that can do this? Can you give me some pointers in how to do this? THanks.

Member Avatar
+0 forum 1
Member Avatar

Sorry very new to PHP I am currently working through a book and I am working on connect to a DB I use this command: $db = new mysqli('localhost', 'bookorama', 'bookorama123', 'books'); and I get this error Fatal error: Class 'mysqli' not found in c:\Inetpub\wwwroot\mystuff\chap11\results.php on line 26 from what i understand mysqli is a comman command so i would of though the clas would be standard. I presume my config is wrong. please can someone help me where have I gone wrong

Member Avatar
+0 forum 1
Member Avatar

is there a way to auto increment a value in a MySQL with PHP without having to lookup the value for instance: UPDATE SomeTable SET cell=cell++ WHERE row='some_row'

Member Avatar
+0 forum 1
Member Avatar

i have created this web page with html and php where i need to set cookies to block users voting more then once i have used something like this code: if (isset($_COOKIE["x"])) { echo "You've already voted once!<br><br>"; } but it doesnt work can any one help plz :) :) :)

Member Avatar
+0 forum 1
Member Avatar

I'm looking for a small script that I can use to limit the number of downloads per day for a specified file, or limit the bandwidth for said file per day. Any Ideas? :D

Member Avatar
+0 forum 3
Member Avatar

Hi all, The problem: index.php downloads instead of actually executing the script. I used to have my machine setup with php/apache/mysql/WinXP and it worked. I downloaded the newest release of php 4 and now it won't work. What happened? Setup: ------ Windows XP SP 1 PHP 4.3.10 Apache 1.3.33 mySQL 4.1.8 Any and all help is appreciated. -Derek Parnell

Member Avatar
+0 forum 3
Member Avatar

hello I have created a website where voters vote for their favourite website. I have used radiobox. does anyone know how to count the votes in terms of percentage after the user has voted. The result should come up in a new webpage. Also the website should not allow a voter to vote more than once. thank you all :cry: :cry: :cry: :cry:

Member Avatar
+0 forum 5
Member Avatar

Today is my first day learning php so be gentle :-| In vb6 102 Xor 49 = 87 I can't get this result in php. I think the php xor can only be 0 (well a blank string) or 1 so i don't understand what to do. Any ideas? Thanks in advance.

Member Avatar
+0 forum 1
Member Avatar

I have made a form ( [url]http://www.rhstrack.com/bio.htm[/url] ) that puts the information onto another page. The problem is that it puts a back slash ( / ) before any quote marks ( " ) - which are used because the form asks for a quote. How do I get around this? Also, how might I go about allowing people to save the page they have created?

Member Avatar
+0 forum 5
Member Avatar

I already have have a members login script.... but i have to manually delete users.....what i reaaly need is to know how to make member expire after so many days with a php script. (free or very cheap) :cheesy:

Member Avatar
+0 forum 7
Member Avatar

On behalf of the Security Community I have been asked to spread the word on this threat as it is very real and growing worse as time passes. Posted on Saturday, 25 December 2004 @ 16:33:38 EST by Paul Laudanski at [url]http://castlecops.com/[/url] [quote]Folks, it seems that Santy worm has taken on a new strain. It also searches Yahoo now in addition to Google, but it looks for any PHP scripts with all possible arguments passed thru in the HTTP GET. This worm tries all arguments in your PHP script to throw in a shell commands that access a particular website, …

Member Avatar
+0 forum 1
Member Avatar

[url=http://www.go4i.net/modules.php?name=News&file=article&sid=239]View Entire Article & Overview[/url] Hardened-PHP Project [url]www.hardened-php.net[/url] -= Security Advisory =- Advisory: Multiple vulnerabilities within PHP 4/5 Release Date: 2004/12/15 Last Modified: 2004/12/15 Author: Stefan Esser [sesser@php.net] Application: PHP4 <= 4.3.9 PHP5 <= 5.0.2 Severity: Several vulnerabilities within PHP allow local and remote execution of arbitrary code Risk: Critical Vendor Status: Vendor has released bugfixed versions. References: [url]http://www.hardened-php.net/advisories/012004.txt[/url]

Member Avatar
+0 forum 1
Member Avatar

First off, I am completely new to php hello I am running vbulletin 3.0.3 and I am trying to use the [URL=http://www.vbulletin.org/forum/showthread.php?t=62164][B]How to create your own vBulletin-powered page! (uses vB templates[/B])[/URL]. The reason that I want to create this page is so that I can intergrate a glossary script that will look just like the rest of my forums. I was able to create this page just fine, but I added the index.php that is used for the glossary into a template called test in vbulletin and tired to save it, but I got this error [QUOTE]The following error occurred …

Member Avatar
+0 forum 11
Member Avatar

Here is the error I am getting: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/movethem/.panel/web/portal/73/includes/sql_layer.php on line 286 This is in correlation to a calendar that I installed. Would anyone have any idea how I can fix this? My main config file is working as I have been using Nuke for a while now. Thanks!!

Member Avatar
+0 forum 5
Member Avatar

I understand how you can make a form that when submitted will go to asite where the info is processed. Is it possible to do the same type of thing just by making a simple link? Using a href or something like that?

Member Avatar
+0 forum 2
Member Avatar

When I attempt to add a new category, it says that the new category already exists, regardless of what I put in it. Is this a common problem that is easy to fix? I apologize if the question has been asked a million times, but it is very frustrating. Thanks!

Member Avatar
+0 forum 3
Member Avatar

I run a site with PHP Nuke v. 7.5 Friday i found out my ISP disabled my forum with this message when i tried to enter a thread: "[I]Function disabled. Please upgrade your forum to a secure version[/I] " I have phpBB 2.0.10 on the NUKE site. Anyone know if there is a security breach in this version? And, what version should i upgrade to? And most important, how do i upgrade just the foum module? A friend of mine is running a forum based only on phpBB and not NUKE. Easy upgrade to phpBB 2.0.11, but im having trouble …

Member Avatar
+0 forum 1
Member Avatar

hello I have created a website where voters vote for their favourite website. I have used radiobox. does anyone know how to count the votes in terms of percentage after the user has voted. The result should come up in a new webpage. Also the website should not allow a voter to vote more than once. thank you all :mrgreen:

Member Avatar
+0 forum 1
Member Avatar

I am making (or trying to make) a mailing list form for my web site. It is supposed to write the email addresses to the file but it isnt working any help would be [B]GREATLY[/B] helpful THANKS 1} <html> <body> <form action="write1.php" method="POST"> What is your E-MAIL ADRESS <input type="text" name="mail" /> <input type="submit" /> </form> </body> </html> 2} <html> <body> <?php <script language="php"> $filename = 'test.txt'; $fp = fopen($filename, "a"); $write = fputs($fp, $_POST["mail"]); fclose($fp); </script> <strong>GOOD</strong> </body> </html>

Member Avatar
+0 forum 2
Member Avatar

this may be more of an html question but relates to php... I have a form with multipal text fields. when in any field you press the enter key the form is submitted to php, eventhou the form is not compleat. what would be a method for detecting or traping this event? is there a "hey STUPID finish the form" function? thanks much

Member Avatar
+0 forum 9
Member Avatar

Hiya, Ok, I really need help now. I want to learn Php programming. I use windows but I guess the Php scripts I write will be running on Unix/Linux since most webservers of this world are Uniz/linux. Now, my question is : Since there are 2 Php versions (one for Windows and one for Unix/Linux) then will that cause any trouble ? I mean, the tutorials out there, is there a windows tutorial version and a Unix/Linux tutorial version ? If I read the Windows tutorials and the source codes from it then will they work in webservers under Unix/Linux …

Member Avatar
+0 forum 1
Member Avatar

hi ive been workingon some For loops an While Loops and Switch statements and i need so help with this one problem if you could help me that would be grate ive tried realy hard to do this on my own but cant figure it out thanks for helping This is the frist one i need help with is how to print this uesing For loops 13579 1357 135 13 1 and this other one by useing If/Else i think I have..........10 exercise routines left for the month!

Member Avatar
+0 forum 7
Member Avatar

I dont know how to make this form work,, I want it to sen the information directly to an email account,, I muddled my way through making a basic php contact form but its not really a strong point for me so would appreciate it if somebody coulf give me a hand, Cheers [URL]http://www.dpwilliams.com/testform.php[/URL]

Member Avatar
+0 forum 1
Member Avatar

normally we read text file like this.. $filename = "D:/Point/Point.txt"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); if i want read text file on LAN computer. how to write path name of the text file??

Member Avatar
+0 forum 2
Member Avatar

Howdy All I know next to nothing about PHP, just very basic stuff. I have a PHP Mysql driven web site that I would like to change the look of. I am looking for a program that I can point at the PHP file and will show me the HTML layout of that current page and then allow me to edit that page. I like What You See Is What You Get editors such as Front Page. I have just never seen one for PHP scripts. Is there such a Program and if so what is the name of it? …

Member Avatar
+0 forum 4
Member Avatar

Well first some background, this hasn't happened before but last night I had some trouble installing a shoutbox mod so I undid all the steps I had performed I have also installed a search engine friendly mod successfuly which makes php links html links even though I know ipb supposedly has such a feature built in but this supposedly helps with getting the forum indexed in a search engine even more and this mod never caused this problem so I suspect something happened when I tried installing the shoutbox mod and I backtraced my steps undoing each one as I …

Member Avatar
+0 forum 2
Member Avatar

Alright, PHP Beginner here. I was just wondering, does anybody know of any good PHP books out there and if so, can you recommend one to me that has both help with PHP and MySQL? I know some parts of PHP, such as the opening and closing tags (<?php and ?>) and the include, require_once, require and all of them and the if statement. But thats about it. I think this could count good for a beginner: [PHP] <?php include("world.html"); // NOT A REAL CODE if ($HTTP_POST_VARS = . '2' . == This part is for the expression); { Statement …

Member Avatar
+0 forum 19
Member Avatar

Hy, I'm new on PHP world. I want to know which should be the php code for a download page? I want my web-site users download a file from my server, using a page from my site. What I have to do for this? Eg.: you can open, for example, [url]www.gograph.com[/url] and if you want to download an image from there, you just click on the DOWNLOAD tab, a window appears and ask you where you want to download the file on your local HDD. Ok, this kind of tab (Download) I want to add in my web page and, …

Member Avatar
+0 forum 1
Member Avatar

What I want to do is call the ls command in Unix and have the output piped into a file? It won't work however, can anyone tell me why or if there is another way other than the one below (that doesn't work) to do it? system ("ls -author >>tmp.txt"); Thanx Nicola :confused:

Member Avatar
+0 forum 1
Member Avatar

hi anybody out there, i need help, how do i change the value of a URL argument? Example: URL: http://localhost/main.php?name='abc'&age='24' how do i change the value of argument "name" and resend the information back to main.php without changing the age value.

Member Avatar
+0 forum 2

The End.