![]()
I need a script that does this: Lets say I have form with options...you surely know what that is... [code]<form name="form2" method="post" action="race.php?action=race"> <table border="1"><td>Who do you wanna race?</td></table> <select size=5 name="bike"> <option value="Derbi Senda 50">Derbi Senda 50</option> <option value="Honda NS 50 R">Honda NS 50 R</option
![]()
Php: Creating A Password Protected Area
Note: link to me if you wanna use this script, or pm me about pro plan. easy! make a simple pass protected area! Step 1: [url="http://www.mediafire.com/?dcp99el7x10frfg"]Click Here[/url] to download the latest version step 1.2: unzip the package step 1.5: read "readme.txt" Step 2: open up login2.php and change the var "p" to the password Step 3: open up auth.php and change var "p" to the passoword Step 4: open up index.php edit as you want, this is you pass
![]()
Need To Debug Free Sms Way2Sms And 160By2 Php Api
hello php geeks... just waiting you guys to help me out of this... the old php api for WAY2SMS and 160BY2 free smsing service isnt working.... can any 1 help me out with the new1 which is working..... I need it very urgently...
![]()
How To Disable The Enter Key Of An Input Text Box
Hi everybody, i don't know if this is the correct place to post this topic so in case it is not please mods move it to the correct place, thanks. I have a page with a FORM that contains one or more INPUT TEXT boxes, a standard SELECT box, a standard SUBMIT button, a standard BUTTON button, and some hidden TEXT boxes, that will be used to Edit or to Add a record from a MySql database as usual, in Edit mode this form will get all the information from the database and in Add mode simply will f
![]()
Integrating Functions Into The Server
I am creating a game and for simplicity i am making every possible query a function, ex instead of [code]$result=mysql_query("SELECT* FROM tablename WHERE columnname=$variable"); if($result=mysql_fetch_array($result)) { commands } else { commands }[/code] i make a function and it becomes [code]$x=getinfo($variable) if($x) { commands } else {commands}[/code] A lot easier to debug for errors and more eye
![]()
How Do I Send SMS To Mobiles Through My Site
I want to send sms to my users through my website ,is there any way to do it with php or any other sofware, what i want is to help my users get their private message alerts on their cell phones, is there anyway to do it without tieing up with the smm providers on the web ,like they tell to pay you few cents per sms ,is there anyway i can do it free, like cani become a provider just like them ,or make a way like, if a user agrees to pay for alerts ,than whenever an alert goes the amount gets dedu
![]()
So this tutorial is designed for people who want to start creating their own modules for the Praetorian Game Engine. It assumes you have a basic knowledge of PHP, MySQL, HTML and CSS. PGE isn't just about using the engine to create yourself a game limited by the modules that are available for you to download from the project site, but about giving you a platform to easily develop your own additions to your game easily and professionally and with little effort. This tutorial will cover the
![]()
Hi, You can use frontpage to preview HTML files, but how can I edit and preview PHP files offline. I'm not well-known with PHP and I see more and more using this script to manage their site.
![]()
Capturing The IP Address During A Form Submit
I was wondering how to add a (hidden) field to my submit form that will collect the IP address that someone is submitting from? (I'd like to see if my spams are from the same source.)
![]()
I was coding one of my php page today, when I realized that I had to add multiple values to a variable (now that I think of it, a solution with arrays is possible too). But, the problem is that I have to add them in different parts of the code, so the new line that defines the variable will cover up the previous one. I played around with the code, and I finally got this solution: $message = "test1"; $message .= "test2"; $message .= "test3"; echo
![]()
How To Reset The Server Variable Php_auth_user
Hi, i'm developing a web application which obviously requires a log in/log out script that i just implementing but i dont know why the log out script dont work fine. The problem is related with the server variable $_SERVER['PHP_AUTH_USER'] which remains set even when in the log out script i unset it with the unset() function. Does someone knows how can i reset or clear the server variable $_SERVER['PHP_AUTH_USER']??? Best regards,
![]()
Make It Impossible To View Page Source
Hi! I was just wondering if it is possible to make username unable to view the page source.. I know that you can disable right click, but still, they can go to the page source from the navigation menu on the top of the browser.. if possible, I would really like a code that works on all browsers. Or if you know different codes that works on different browsers.. Thanks //Feelay
![]()
Just had a thought for tracking copies of my php game engine online ina hidden way. Basically I've already had people taking PGE and intending to convert the source code in to a premium game instead which requires a license to do. I need a way to track all copies of my engine online. I don't really want to have some form of online database used to operate the engine because that would cost me a lot in bandwidth. My thoughts were to conceal certain data in the page headers and source c
![]()
Add this to the page you want to count the visitors on: [code]<?php $logfile="counter.txt"; $returnpage = htmlentities($_GET['count']); if (! @$file = fopen($logfile,"r+")) { $count="1"; } else { $count = @fread($file, filesize($logfile)) or $count=0; fclose($file); $count++; } $file = fopen($logfile,"w+"); fputs
![]()
ok so the basis for my site is you see a list of people if you don't see the person you're looking for you can create a page for them. I know user login, reg, profiles but I can't seem to figure out how to do that. I've ben messing around with user profile pages but that's not what i want. Ideally I don't even want users to have to login but I feel that's the only way to keep the new pages in check. Where to go from here. If I didn't make it clear as to what I
![]()
Php Script To Download File From Another Site
hi i need a php or java script code for downloading files from other sites to my site for example: [url="http://download.com/file.zip"]http://download.com/file.zip[/url] to [url="http://mysite.com/file.zip"]http://mysite.com/file.zip[/url] thanks
![]()
Permission Denied In Creating A Directory
[quote]Warning: mkdir(/home/whistle/public_html/see/seeto): Permission denied in /home/whistle/public_html/see/config.php on line 56[/quote] My web hosting is on the astahost. The absolute path of my php script is "(/home/whistle/public_html/see". When I try to create a directory named "seeto", the error message about permission denied is displayed. The same script I tried on another web hosting server "Lycos", it works perfectly. Can anyone tell me what is wrong
![]()
How To: Make A Simple Php Forum System
Hello, One of my first ever projects I embarked on when I began to understand PHP well was a forum system. I've decided to begin writing a tutorial to help people start one of their own. The code for this project is based on that of OakumBoard/cBoard, my own forum software which can be seen running at www.sonicxtremegm.co.cc Anyways, time to start off, you must run this SQL query on an SQL database with a name of your choice: [code]s CREATE TABLE `forums` ( `id` int
![]()
I have wrote a PHP program for the command line. Currently it is using STDIN for input, but in this case I need it to read from a file. How do I pass the file onto the program in an argument if I'm using the command line? Currently I execute my programs using: php -f ./myprogram.php
![]()
New Here...where Should I Begin?
Hi looks cool and nice Where should i start reading? thanks
![]()
Online HTML/PHP Editor: Edit File In Browser!
Im wondering how you can load a file into a text area and edit it. Lets say i have a php file called test.php and id like this file to be loaded into a textarea and the user should be able to edit this file and store it. Is this posible? Im also wondering how you make it so the html dosnt get encoded by the browser, lets say i need to explain on my website how you use html. [code]Just testing something, maybe i can get this from the source. <b></b>[/code]
![]()
Who Knows How Web-based Chat Works? And How To Do It?
I like to know how to create a web-based chat ... like YM or in facebook chat box ... in PHP and javascript
![]()
Using The Php Mail() Function For Images Or Attachments
I read the one mail() tutorial that was posted in the tutorial section and to my horror found that he had quoted almost verbatim from the PHP Manual off php.net, and made a comment about it, and also found that if you were new to PHP or the Manual that it was informative but not indepth enough for my tastes. This is not a tutorial although with the code that will be posted it might look like one, that is not its intent or purpose. I have searched and found many so called tutorials about MIME m
![]()
Change The Appearance Of Link That Links To Current Page
I have a <ul> of links right at the top of my website that display links to the main pages of my website. I want to change the appearance of the link that is linking to currently open page so that it gets a little bolder and no more remains a link. For example I have 3 links "Page1, Page2, Page3" in the <ul>. Now when someone clicks on link "Page1" and Page number 1 opens, then the link "page1" should become a little bolder and not remain a link, What ph
![]()
Making The Ads Appear In The Center Of A Post In Wordpress Based Website
According to google, the hottest spot for ads to be places in in between the content of the page. I as wondering that how can I make my post divide into two parts so that about 1/4 of it appears above and 3/4 appears below the ads placed within. Is that possible. One method is to manually enter the code of the ads in every post at position where you like but I don't want to do that. I just want these ads to appear in only single post pages automatically in the center of the content. Is it po
![]()
Making A Value In A Textbox Stay
Hey! I know it is possible, but I don't know how to do it. Anyone who know how I can make the following: When a user type a message, and press Send, he will come to a page that will check the message. If an Error occur, the user must press a button, that will take him back to the message, and fix the error. but The problem is, that when the user press the button, his message is gone, and he must write it again. bad luck, if the message was long. Hope You undertsand what I want Thank
![]()
I had a static HTML website made in front page and I had placed a google custom search on it. A good friend of mine ("Starscream") on this astahost forum suggested to go to the CMS based website instead of the Static HTML website so I went for it. Now I am very happy with the way things are going in the new interface. It is really easy to add new content and modify old content and there is not much problem with the SEO. I have faced a problem while I am in the last steps of finalizing
![]()
Hello guys! I need some help...I don't know how to insert the captcha in this [url="http://phpforms.net/php-forms.html"]php form[/url]
![]()
Hi all in other post you may know i use notepad++ i was wondering who else uses it and what plugins have you got as i have no plugins dunno what i should get i am a PHP/mysql/HTML Scripter nothing else really so any plugins?
![]()
Hello, I am using CPanel: 11 Accerated 2. I am trying to pipe email to a php script allowing me to run my site via email. I am getting a PHP related issue right now, but my issues with it have been changing. My error message is: <br /> <b>Parse error</b>: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in <b>/home/dbank/piped.php</b> on line <b>3</b><br /> My code follows: [code]#!/usr/bin/php -q <?php $fd = fopen("p
![]()
What Is It With Php And Security?
sometime back, when i was learning html, one of my friends suggested that i skip to learning php and start coding in php directly. however i continued to learn html and then proceeded to looking into the basics of php. along the way i've seen many people warning beginners about using php codes directly online, without testing them for security. for html there was no danger of security because its all static. but php brings in dynamic programming and i kept seeing people telling each other to
![]()
What Program do you use to write your scripts in? I tend to use notepad ++ as its quite handy in that if you select which scripting language your using it color codes to show if your doing it right i know there are many scripting programs out there im justing wondering what ones do you use but i find notepad++ a breeze its so easy to use and easy to spot errors as i could not stand notepad normal because you don't know if you typed a error or not and just have to hope. I have heard of Jed
![]()
If you need the link to download xampp here they are [url="http://www.apachefriends.org/download.php?xampp-linux-1.7.3a.tar.gz"]Linux XAMPP[/url] [url="http://www.apachefriends.org/download.php?xampp-win32-1.7.3.exe"]Window's XAMPP[/url] [url="http://www.apachefriends.org/download.php?xampp-macosx-1.7.3.dmg"]Mac OS XAMPP[/url] [url="http://www.apachefriends.org/download.php?xampp-solaris-0.9.sh"]Solaris XAMPP[/url] After the download has finished it should automatic come up with its setup i
![]()
Bennet's Multifolder Random Image
[quote name='8ennett' post='147920' date='Aug 16 2010, 03:24 PM']Something rather annoying about this post being stretched out like this, but never mind lol Ok I'm going to write a function below for you so you can select a random image from a random folder each time the function is called. What I have done is basically taken the coding example from [url="http://www.weberdev.com/get_example-4181.html"]here[/url] (so the credit really goes to that person) and just added a bit of extra fu
![]()
I am writing I script to generate RTF files. But the problem is that as soon as I hit the open button, my texteditor occurs an error. Can someone please fix my code? Here it is: [code]<div class="page" style="background:white;"> <form action="?" method="post"> <select name="font"> <option value="Arial">Arial</option> <option value="Times">Times New Roman</option> </select&
![]()
which is better? create a function for your login page or create a static login page?
![]()
I have a script that goes to a social networking site that I am creating. I am having some difficultys using this script to post data on the users page for others to see the users thoughts. Just in case you need more information, I have plenty more in log files I write to in the script. I hope you can help me get the script working. By the way, don't blame me because I'm not using MySQL because you won't get me to switch. [code]<?php // Init session_start(); if(!s
![]()
I was trying to figure out how to make random texts for random passwords and stuff, and I found someone who created this code. [quote]<? //author: polmme $codelenght = 10; while($newcode_length < $codelenght) { $x=1; $y=3; $part = rand($x,$y); if($part==1){$a=48;$b=57;} // Numbers if($part==2){$a=65;$b=90;} // UpperCase if($part==3){$a=97;$b=122;} // LowerCase $code_part=chr(rand($
![]()
Need Help With My Login Script
Can someone look this script over?? ever time i put something in any of inputs,it sends me back to /index.php?invalid=invalid+username/password which can be found in validate.php [url="http://blacktraffic.netai.net/"]HERE is link to the site so you can try entering anything[/url] I created user manually username:Administrator password:astahost so you can try logging in too this is index.php [code] require 'require.inc.php'; // Unset all of the session variables. @session_un
![]()
Register Script - I Need Help With It
I get errors when I execute the following script: [code]<?php $link = mysql_connect('localhost','root','root'); if(!$link) { die('Error, Whoops: ' . mysql_error()); } $sql = "INSERT INTO `accounts`.`info` (`username`, `password`, `email`, `level`) VALUES (\". $_POST['username'] . "\, \". $_P
![]()
How To Check Email Adress And Name Validity?
Hello there! I'm learning php and MySQL these days... Here I've got a little script I'm playing with... [code]<?php if ($submit == "click"){ $connection = mysql_connect (localhost, username, password); if ($connection == false){ echo mysql_errno().": ".mysql_error()."<BR>"; exit; } $query = "insert into email_inf
![]()
I'm looking for a plug-in for wordpress that will allow me to make a quiz and insert it into a post. The plugin should require that people register before taking the quiz, also when they take the test and when they submit their answers the plugin grades the test and shows them their result...... Does anyone know were I can find something like this? If you can help me out thanks, JohnNitro
![]()
Right, haven't got time to finish debugging this query because it's late and need sleep, coding is not a good idea when tired lol Basically I want this query to pull a maximum of 10 records from the database where either the user column OR the other column equals the users id (stored in $_SESSION['dm']['id'] obviously) but it appears to pull 10 records where the user column contains the data and then a seperate 10 from the other column as well. It's part of a pag
![]()
Help With Php (and Mysql): Get Method (semi-advanced Question)
Ok...If I could find the right terminology, I might be able to figure this out on my own, but I can't seem to find anywhere how to make this very popular method work? I've only just started using PHP (the concept wasn't hard to learn, it was figuring out how to make it run on my computer). Anyways...so what I want to do is understand how websites use [url="http://www.something.com/index.php?id=randomidcode"]http://www.something.com/index.php?id=randomidcode[/url]. I know that ASP(X)
![]()
how can i display data from mysql with php, just that on one page i want to display only the first 10 things and the next page the next 20 ...etc.. how can i do that?
![]()
Important: Basics Of Using PHP And MySQL
I generally notice confusion with new users to PHP and or MySQL and first of all I believe that unlike HTML which is automatically associated with a IE browser in a Microsoft system. HTML is automatically rendered with whatever browser is the default browser, be it Internet Expolrer Firefox Netscape or any other browser that has been set. PHP is a different matter to view the output of a PHP file it must be run on a webserver, and if you do not have one set up on your local PC it simply will no
![]()
I have a problem with send e-mail form! First it was designed only for name,email,subject and message entries! Now I need to add organisation and phone to be sent to my email! When I click the send button, it gives me that "mail" suposed to have 5 variables, and the message dont arrive! please help! here is a piece of code where is the error! ====== function SendEmailToUs(){ //------------------------------- // Initialize variables //-----------------------
![]()
Php Send Mail Through Phpmailer
Can anyone here please tell me how to send mail through [font="Georgia"][size=5]PHPMailer[/size][/font] in php I have search in many source code on web and cant find anything...please help me... i am also unsuccessful in sending mail through SMTP in windows platform.... because i dont know weather there is requirement of any smtp server software in windows platform or not... if require then how to configure that..what will be free software please help me i am new to PHP...
![]()
Update Form Only If Field Is Empty
If we make our robots.txt file, we can change the Search Bots' behaviours, and we can tell them where to search and publish and where to not. Imagine we have privacy folders in our website, for example a folder or a file which includes e-mail addresses so we don't want them get published, then we can avoid them get seen by the Search robots by a few simple commands on the robots.txt file. Here we go. We use the /robots.txt file to give instructions about our site to web robots; this is
![]()
Send Php Variable To Javascript
Right i had a look across the internet as well as a search on here but you cannot search for anything less than 3 characters. But this is a really quick question. Would the following code allow me to send a php variable to a javascript? [code]<?php $color = "green"; ?> <script language="JavaScript"> BackColor= "<?php echo($color);?>"; </script>[/code]
![]()
How Do U Make Members Only Web-site
how do u make it that only a member of that site can view that page?
![]()
Can anyone here tell me how to send mail through SMTP server with php I have search in many source code on web and cant find anything
![]()
How To Disable Safe Mode In Direct Admin.
Please anyone know how to disable safe mode in direct admin control panel.
![]()
Hello, I have a moderate question; it may includes some API's My question is that I want to create a webpage/website that gives me multiple services at once. The services I want to use in my webpage/website are SkyDrive (skydrive.live.com), Gmail (mail.google.com), and a text editor that saves on the server. I have an login page which I can pass in the variable "redirect" with the URL for the redirect URL. I know you are probally thinking that "why can't you just use ifr
![]()
Hello, I have a PHP script for a login. It is a standard script I've written. My problem is that I can't get the redirect variable into the echo statment. This doesn't work: [code]<?php $redirctURL = "http://google.com"; echo ' <form action=" ' . $redirctURL . ' " method="post"> Username: <input type="text" name="username"> <br /> Password: <input type="password" name=
![]()
I have a couple of questions: 1) Now if I download XAMPP or WAMPP and install them can I make my own servers to host my own website on? 2)Now if you can host a server that way how do you do it to get it on the internet? 3) How do you set up all the databases and that?
![]()
Connecting Ms Access To Php Using Odbc
Dear Friends I have been trying to connect Ms Access using PHP for couples of days. Finally I have done it. It was dome using Open DataBase Connectivity, popularly known as ODBC (pronounced as separate letters). With an ODBC connection, you can connect to any database, on any computer in your network, as long as an ODBC connection is available. Here is how to create an ODBC connection to a MS Access Database: Open the Administrative Tools icon in your Control Panel. Double-click on the Data
![]()
While trying to make password recovery script for "bhupinunder" i run into a problem... i made this: [code]<?php $dbh = mysql_connect('localhost','jaskaran_gc','gc') or die ("Cannot Connect: " . mysql_error()); mysql_select_db('jaskaran_gc',$dbh); ?> <form method=post action=restore.php?recover=answer> <?php print"Email:</td><td><input type=text name=ema
![]()
Need MySQL Alternative To The Syntax "or die()"
Hello again I'm facing a problem with PHP and MySQL... I want, when a MySQL error occurs, to let the script continue. Here's the script: [code] $query = "SELECT * FROM menus ORDER BY id ASC"; $menus_result = mysql_query($query) or die("Error!"); while( $menu=mysql_fetch_array($menus_result) ) { echo $menu['name']."<br />"; } [/code] Now if the table "menus" d
![]()
A Simple Checking & Validation PHP Script
Hi, there is sometimes that you need to password protect a directory in your site but you dont have access to a database or you dont need it because only a few users will access this directory, well the following script i develop will help in this situation. With only 2 files you can implement a basic security, the first file is a simple txt file where you store your users information and the second file is the php script. You can name the files whatever you want and can be used in any site wit
![]()
Hi guys, i just want to share about php framework that i used to develop a site. i use symfony. why symfony? 1. easy & free 2. PHP 5 3. MVC (Model-view-controller[b])[/b] 4. Intregating with Ajax (using prototype). 5. full documentation. 6. admin generator 7. It is compatible with many relational database management systems good luck
![]()
Hey guys, I'm trying to set up a dummy server on a virtual machine. PHP, HTML, MySQL are all working. However, I ran into a slight PHP error as shown below: [img]http://img247.imageshack.us/img247/1664/peteknexenta3dy6.png[/img] Nexenta Core 1.0.1 (OpenSolaris 20080311, b85) PHP 5.1.2 MySQL 5.0.22 Quicksilver Forums 1.4.2 Any help will be appreciated. xboxrulz
![]()
Hi.. I'm new to making website from html and xhtml and i have a question. What is PHP and Mysql? What do they do? and where can i learn to use them?
![]()
As of right now when a user replys on my forums I store the date/time in the thread table/row for display so users know when the last reply was made. This looked ok for me on my computer for local testing using WAMP5 because of course my computer is set to my timezone, but I reliased after I had updated my site last night with the new feature and checked the site dismorning that it is using the timezone for Asta's server. Iv'e done some searching and found this default_timezone_set() f
![]()
Hi im using xampp to view my php files ( [url="http://localhost/test.php)"]http://localhost/test.php)[/url]. Now i want others to access my xampp folder. Means to view the php file from another machine by typing this (http://[ip]/test.php). how can i do that? tnx
![]()
[b]Problem:[/b] Upload a file to the AstaHost account (that I have been granted here) throught the webpage I would like to know, how should I proceed on this particular problem. I know this has been done through cPanel, but I want to write a PHP functionality. The cPanel is accessed through the 2082 port, and most of the places I access internet from does not give me access through that port. I can access [url="http://www.kmaheshbhat.astahost.com/"]http://www.kmaheshbhat.astahost.com/[/url]
![]()
I and my friend was working on a transloader script for the last few weeks (actually worked on it for 3~4 days, then forgot all about it [img]http://www.meekhost.com/forum/images/smilies/tongue.gif[/img]). Some of us have really slow internet connections. Myne is only 248kbps. Downloading a large file and then re uploading to another server becomes a real pain if the file is too large. How many times have you asked yourself "i wish i could transfer files from server to server directly&qu
![]()
Redirecting From Landing Page Of A Php+mysql Multilingual Site?
Hey guys! I'm designing this multi-lingual site with php + mysql. I'm using a 2 letter language code following the domain name to identify the language the content is delivered in. For example, www.domain.com/en - English www.domain.com/th - Thai and so on... All URLs (am utilizing mod_rewrite) take the general form, www.domain.com/2_char_language_code/page_slug.html Here's my problem scenario: When person A visits the site by keying in www.domain.com/lang_code, I can directly
![]()
Php: Need Ideas On How To Create Api Hooks !
Hey guys, I've been working on a AJAX powered CMS for quite a while now. Am done with most of the important aspects - except one, i.e. plug-ins. I've studied how apps like WordPress utilise API Hooks to add in plug-ins (hooks offer various injection points in the main CMS's code, where a plug-in can inject it's own code). What I couldn't figure out is how to create one. Anyone here done this before? Can you gimme some examples or guide me to some tutorials on doing
![]()
I installed wamp on my usb and when i execute it from there the picture that is similar to a speedometer apears for less than a second and disappears. There is no problem with the computer since when i run it from C:/wamp it works normally. Is it possible to run wamp from a usb portable device or is that not possible?
![]()
Hi!! I'll show you how to make a [u]simple[/u] tell-a-friend script using php. If you put this on your site, your visitors will be able to recommend your site to a friend. This can be good promotion for your site. It's quite easy to set up too. Just copy and past the script below. [b]Put this where you want the form to appear:[/b] <form action="[color="orange"]friendtell.php[/color]" method="get"> <b>Tell a friend:</b> <input type=&quo
![]()
Hi! This is my 2nd code of PHP + MySQL. This code is VERY simple: it encript the data in the MySQL DB. Here we go! ------------------------------------------------------------------------ [code]<?php $password = "abc"; $new_password = md5($password); echo $new_password; ?>[/code] The password "abc" was codfied using md5() This will be: 900150983cd24fb0d6963f7d28e17f72 [code]<?php $normal_pass = "abc"; $en
![]()
I've been working on writing this program that needs strings to be converted to integers. Sometimes PHP works by doing the converting for me, but sometimes it just breaks down and quits working. I've got no idea why. $sub1 = 0+substr($text, 0, 3); $sub2 = 0+substr($text, 3, 6); $sub3 = 0+substr($text, 6, 9); $sum = 0+$sub1+$sub2+$sub3; echo $sum; Basically, $text is a string of numbers that looks something like: 2962942552683
![]()
Make A Cordination System With Html Tables
Hi! I am working on a text-based RPG game. I'm coding it in PHP, XHTML and CSS. I was wondering. I want to make a map, and thought of making a X/Y cordination system work as that map. But I was wondering, do anyone of you know how I can make such a map? I want the player to stand in the middle. every cell should have a value, with a variable/ array. I want it to have about 100-500 cells. but not all visible at once. about 100 cells visible on the page. and every time I move to a squa
![]()
Listen guys, I would like to build my personal on-line virtual library, and I wanna ask you some advices, links to useful tutorials, tips that may contribute or expand my knowledge. Unfortunately, I am a novice in PHP programming?!
![]()
If a script runs for too long (30 seconds from what i know),it is automatically stopped. Does this apply to cronjob scripts? cuz my script at some point will handle alot of acounts and info and may exceed 30seconds. I don't want half of my users acounts not be modified =). And if it does, how do you disable it? I also run a script that adds alot of info to my database (about 3000 rows in a table), but it is always stopped at 1600~1800 rows due to the 30 seconds thing. So i have to enter the
![]()
I made a small script which creates a 10x10 picture out of small pictures [code]<html> <body> <?php for($j=0;$j<10;$j++) {{for($i=0;$i<10;$i++) echo "<img src=C:\wamp\www\Game\pic\grass.jpg>"; } echo "<br>"; } ?> </body> </html>[/code] grass.jpg is a simple pic, anyways when i run it using wamp it shows 10x10 pics of nothing, a
![]()
i just bought mccodes and i cant install it!!! i uploaded all the files (including class) and when i open installer.php it says everything is ok except for Game folder writable which says failed and beneath it says One of the basic diagnostics failed, so Setup cannot continue. Please fix the ones that failed and try again. so any ideas on what to do ?(i cmodded all files to 777 becouse im using [url="http://000webhost.com"]http://000webhost.com[/url] )
![]()
Tracking down errors caused by missing ; or {,} is annoying enough, badly organised scripts make it worse. I want a program which i can write my php scripts and they get automatically organised. Example i put an if statement i press enter and put { then everytime after that i press enter i don't go to a new line i go similary to where the { went. If that doesn't make sense i want a program that turns this: [code]if(condition1) {if(condition2) {statement1; statement2; } el
![]()
Here are some useful coding on most useful open source in PHP i.e Vtiger. [u][b]Steps to add Account field (related Module) in Campaign Module[/b][/u] [b]1. Insert value in vtiger_relatedlists table[/b] [code]insert into vtiger_relatedlists(relation_id,tabid, related_tabid, name, sequence, label, presence)values(83,26,6,'get_accounts',10,'Accounts',0);[/code] [b]2. Create New table (i.e. vtiger_campaignaccountrel) to maintain relation[/b] [code]CREATE TABLE
![]()
So while in the process of revamping some of my websites I've decided to have a good shot at writing my own PHP/HTML template engine. For those who aren't sure what sort of thing I'm talking about, have a look at [url="http://www.smarty.net/"]Smarty[/url] and think of a slightly toned down version of that. My question for you is what do you consider necessary in a simple template engine? On the basis that it'll be used by one-man (namely me, but I'll likely show people what I
![]()
Php Iteration - Object Overloading
i want to know that what is the difference between iteration and object overloading in PHP. i read that both are same object overloading is old name of iteration, but i have doubt so please any one can help in this regard what i know that : * Iteration :- Loop the object * used to Display property name and class value. * foreach loop used : - only used in array and object iteration. here i give example of iteration: [code]<?php class abc{ var $user="Raju"; var $city=
![]()
PHP 5, have magic method:-- The __autoload() Magic Method:- The __autoload() magic method get automatically called whenever you try to load an object of the class in which resides in separate file and even you have not included those files using any of these method include,require and include_once. but It is neccessary to use the filename as that of the class name. for example:- //file name: abc.php; [code]<?php class abc{ var $user="Raju"; var $city="delhi"; func
![]()
How To Make A PM (Personal Message) System?
Hey! I just wanted to know, if I want to make a PM system, should I store the PMs in a database or how should I do it? And if I should store them in a database, how do I do that. Because I have acctually no idea, if I should create 50 tables to store 50 messages (And a little OT question[instead of creating a new topic]). How can i change the timestamp [time()] into real date?
![]()
I am running a PHP based web site and have just moved to a Windows server I can't get Imagemagick to work in PHP. It works from the command line. I don't have access to the server other than a simple control panel but I can pass info onto the administrator (who also happens to be my buddy) running the test page gives me this [b]Warning: exec() [function.exec]: Unable to fork [convert -version] in D:\home\Customers\virtuallyinsane.com\htdocs\test\test.php
![]()
In PHPmyadmin where i see my databases i see information_schema. Is that considered a database? because in my website i use only 1 database, so if its not considered a database i don't have to choose 5 databases and have to pay an extra 0.99$ per month. If its a database, can i just delete it?
![]()
How To Create/edit/delete Ftp Accounts With Php
[b] Thanks [/b]
![]()
Here Are Some Great Php Tutorial Sites
these site very usefull for php html java 5 day ago i only use w3school recently i have some great web for usefull [url="http://www.devresources.net/"]http://www.devresources.net/[/url] [url="http://www.php.net/"]http://www.php.net/[/url] [url="http://www.tizag.com/phpT/"]http://www.tizag.com/phpT/[/url] [url="http://www.w3schools.com/php/default.asp"]http://www.w3schools.com/php/default.asp[/url] [url="http://phpbuilder.com/"]http://phpbuilder.com/[/url] [url="http://www.phpfreaks.com/
![]()
I've succesfully made my cronjob script but anyone can enter it by just typing its link. I want to lock it and make it unaccesible by anyone, except by the server every 30minutes. How do i do that? i've made the every 30 minutes part, i still need the no one can access it by simply typing its link thing. On a side question, when i uploaded my cronjob script i forgot to remove all the echos that i used to test the script, iam just wondering when the script automatically runs is the echoe
![]()
I made one which runs a php scrip every 30 minutes and its working perfectly, iam just wondering when it is run, is at x:00 and x:30 or after 30minutes when i first added it. Cuz i want it to run at x:00 and x:30 so that users know when it will it happen. I also want to know how do i get a the time remaining till the cronjob is done, if this can't be done directly how do you get the time at asta host, i don't want the entire date i just want the minutes and if its >30 i subtract 30 fr
![]()
hey all... i need help with something.. . i need to save a variable during login variable is users Username i have login.php which leads to checklogin.php to check for username/password which finnaly leads to login_success.php... every of those include config.php i had in mind to save that variable in config.php.... i tried that by setting [code]$action='a';[/code]for the first line in checklogin.php and including config.php after that to save that username with [code]if(
![]()
[url="http://quake3.astahost.com/index.php"]http://quake3.astahost.com/index.php[/url] check it and tell me how can i fix the image so i can see it whole... EDIT:figured it out!
![]()
I just got hosted and i am everything is working fine, but i got this in one of the pages: [code]Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/economy.php:4) in /home/khalilov/public_html/topview.php on line 9[/code] I am used include inside a php file, the file i included had session_start() and so did the main file i used include in, is that a problem
![]()
Credit System - Transfer Credits Between Members?
Ok, so I currently got a website were the users are allowed to view each others profiles (Feelays system). But im making a new feature where the members gets credits for various things they do. But I want to make a script that the members can use to transfer credits between each others. Only problem is, I have no clue how to do it? Could be something like this: Welcome -USERNAME-. Transfer credits to [------] /form box/ [send] /button/
![]()
this is a counter with images and stor in flat file becouse i can not upload .zip .rar file iwell program it on this post at frist you need to 2 files count.php count.txt and you need else make folder has name gifs and make 10 pictuer 10 file 0.gif to 9.gif now all ok open the count.php and add this code [code]<? ### IMAGE FORMAT $format = ".gif"; $file = file("count.txt"); $num = ($file[0] + 1); exec("echo
![]()
Hi, Those who don't want to go into all the hassle of configuring Apache with PHP - here's a quick alternative. Grab [b]MiniApache_PHP[/b] from [url="http://213.106.116.50/james/"]http://213.106.116.50/james/[/url] . It's a much downscaled version of the real Apache server but includes the PHP modules too - very little headache over installation and you can start hosting your own sites rightaway. Good alternative for testing your custom php codes too... This is what the site says a
![]()
I am attempting to configure Apache server (v 1.3.12) with PHP3 (v 3.0.16) the --with-ldap option chosen. PHP3 configures and installs ok, but when I try to run make in the apache directory I get a lot of errors saying that for example modules/php3/libphp3.a (ldap.o): In function "_close_ldap_link": /usr/local/php-3.0.16/functions/ldap.c:128 undefined refernece to "ldap_unbind_s" I receice approx 50 similar error messages . Has anyone come accross this or know
![]()
Hi! I wanted to know a "who's logged in 'counter'".. It's very easy to make it write the name.. Just change some value (let's say "logged_in" to 1) in the database, when the character login. But how do I do when I want it to change back to 0, if the user logout? many users just close their browsers.. It's easy to add it to a logout script.. just make an update query.. but how do I do, so that the value change back to 0, when the user close his/he
![]()
How To Get Absolute Path To Website?
I am ba beginner to pratice PHP. I tried to create a direction on my website which is hosted on a free hosting server. When I use a function like "mkdir("$credir/$username", 0777);", I can not know the absolute path of my website on the server. May anyone tell me how to know it or other ways to create a directory? Thanks.
![]()
How To Create An Online Timed Test With PHP?
Is there anyone got a online timed test script?Or anyone knows how to create this script? I wait your answers and all php programmers.
![]()