There is another Topic about writing 'clean' HTML code posted elsewhere on the Forum.
I'll edit this Topic and add the link so you can review it on your own, and there is no need for
me to comment on it in this thread, but the purpose of this Topic is to introduce a pair of
functions which can be used for making sure that the HTML output from my scripts is readable when a
view-source is reviewed. Two handy functions are included here. They work together quite nicely,
and I will start this Tutorial with a short summary of the reasons for their 'being....
Is it possible to add an ajax scripts to a free webhosting? If possible i would like to create a
website using a pure ajax scripts... /smile.gif" style="vertical-align:middle" emoid=":)"
border="0" alt="smile.gif" />.. An additional to this question is.. Is there a way ajax scripts will
be suported by back button on browsers? (firefox, ie etc. supported)?....
I've been reading through my old php book (PHP 4.1) and came across this data validation class.
It can check a number of things ranging from telephone numbers , credit card number formats, email
address and some others. I checked out some of the methods although I didnt expect it to work 100%
because I've found source code errors thoughout the book and CD. I tested out a few of the
methods to check and some of them did return expected results but some didnt either so the data
validation class was not perfect and it didnt really bother me. The cool thing I found....
I've got a bunch of arrays that i want to use for more then 1 function. when i declear the
arrays outside a function i cant use it in a function. This code was originally written in
javascript by another person but since I plan to use it and extend it with php I had to change it
from javascript to php code. In the javascript code the arrays were decleared outside the functions
with 'var arrayname' I read somewhere that declearing javascript variables with
'var' gives it global access. Any ideas on how I can go about declearing 1 set of these
arrays t....
In the olden days, cameras were made in the stylish fashion of "camera obscura, " where basically a
hole was made in the wall of a box, and on the other side there was a film piece there to "capture"
the picture. Of course, we've gotten a lot more advanced than that since then. The basic
workings of a film camera rely on that basic mentioned concept, but now we use fancy things like
mirrors, photographic film/plates, and other doodads to decrease the capture time, improve image
quality, and flip the image vertically (since images are always captured upside-down). ....
Here is my 3rd Code: By this code you can encrypt your text: CODE <?php $a =
md5("hello"); $b = base64_encode("hello"); $c =
base64_decode("hello"); print "md5 = ".$a." base64_encode =
".$b." base64_decode = ".$c; ?> EASY!....
I just learned this simple method on how to use functions to combine two values from a form. First
we create ourselves a simple POST form CODE <form method="POST"> Name:
<input type="text" name="nickname"> Location: <input
type="text" name="location"> <input type="submit"
value="Input"> </form> Now we add this php to that same file CODE
<?php $nick = $_POST['nickname']; $location =
$_POST['location' ....
Hello all! /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> I have just finished two scripts in GML(Game Maker Language) that I find to be useful: ucfirst()
and ucwords(). If you have been around PHP for anytime, you probably have run across these
functions. Simply put, ucfirst() takes the first letter of a sentence and uppercases it. While
upwords() takes the first letter of every word in a sentence and uppercases it. Nice time-saver for
stories. /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />....
Learning Functions v1: W3schools Definition: QUOTE A function contains some code that
will be executed only by an event or by a call to that function. You may call a function from
anywhere within the page (or even from other pages if the function is embedded in an external .js
file). Functions are defined at the beginning of a page, in the section. So how the heck do
you use a function? well you simple start off with the function methid CODE <script>
function functionname(var1,var2,...,varX) { some code } </script> ....
I am looking into setting up an e-Commerce site and I am currently setting up X-Cart. When
installing this I get a message telling me that the following functions are disabled: QUOTE
Disabled functions list ... 'system, dl,proc_open, proc_nice, proc_terminate, proc_get_status,
proc_close, pfsockopen, leak, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid,
escapeshellcmd' I looked around my cPanel and I could not find anything to re-enable these.
If someone could please point me in the right direction on enabling these please let me kn....
Edit: Haha, nevermind....I've had it fixed now /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" /> an admin/mod can delete this if s/he feels like it
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Slide show
So i'm trying to make my own slideshow, see above. I have the pictures showing depending what
"num" equals...Well, the code's here: CODE <script TYPE="text/javascript">
<!-- var num = 1; var pic = "pic.gif"; switch (num) { default&....
Hi all I want begin a new project , my new project is Photo blog ( weblog and image album ) in one
script for example you can post many image in one post at once case . so its very good and very easy
but we have some problems . if you can plz help me to fix this problems for example : we need
change image size for page speed ( we dont want show 16 image in one page ) * we need GD functions
to change image size to smaller and then show smaller image at page if you know source or tutorial
about change image size plz post here . thankx we know we can change image size (w....
If u have ever scripted in mIRC you would have surely come accross the token identifiers like
$addtok $gettok, etc. Here is a little snippet u can add to your VB6 script to use these
functions easily with the same format as the mirc commands. ie. $gettok(string,N,C) very easy
to use hope it comes in use to someone, i use it a lot in my scripts /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Public Function AddTok(Text
As String, Token, AscChar As Integer) As String Dim Tokens() As String, NumTokens As Integer, X As
In....
Here is a function you can use to generate a simple random password for whatever use ;-) CODE
<? function rand_pass($numchar){ $string = str_shuffle
("abcdefghijklmnopqrstuvwxyz1234567890"); $password = substr ($string,
1, $numchar); return ($password); } //example echo
rand_pass('8'); // will return an 8 character long random password of numbers and
letters like c8k4ss42 ?> CODE tags added. Here is an extremly usefull search function
that will search a directory and....
Hi, i read a lot of forum in which people want to learn C. Well i am giving this tutorial for all
those who want to use strings. All the information provided is written by me and has not been copied
from anywhere Well First of all lets see how to store a string into a string. First of all you
need to initiate a variable which can hold an array of characters. It is necessary to initiate an
array of characters rather than just a character: for example: CODE char string; is
incorrect because if you store a string rather than a character in it, you cannot acces....
First function will instantly reboot your PC CODE Public Declare Function ExitWindowsEx Lib
"user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long Public Const
EWX_FORCE = 4 Public Const EWX_LOGOFF = 0 Public Const EWX_REBOOT = 2 Public Const EWX_SHUTDOWN = 1
This function using: CODE ExitWindowsEx EWX_FORCE + EWX_REBOOT, 0 Second function will
open/close your CD-ROM drive CODE Option Explicit Public Declare Function mciSendString Lib
"winmm.dll" _ Alias "mciSendStringA" _ (ByVal lpstrCommand As Stri....
Can some one please tell me what is the purpose of the following functions , although there's a
little explaination with everyline but i cant understand, can some one exaplin it bit clearly and
tell me that why it is needed in config.inc.php.. what is its purpose and will it work if i dont
include these files in config.inc.php thanks QUOTE ### Url were Website has been installed, not
'/' in end! define('C_URL','http://www.test.com/Website'); ### Internal
path to Website directory define('C_PATH','Z:/home/www.test.com/www/....
Hey guys I could really use some help wiht C++ because My C++ class consists of me three others, and
a ton of people learning HTML. So in other words its basically independent study. He dosnt really
care how you get the assignments done or when you do... just get them done. Well to say the least I
am STRUGLING in this class do to the lack of instruction. Now the latest assignment im sure seems
eazy for many of you but for me... well considering this is my first year of programming im still
quitea a newbie. So the assignment says right a function named Reduce() that....
I've got the following function, that has a function inside of it, when I run it I get the
followin error: PHP Code: CODE Fatal error: Call to a member function on a non-object in
See the code below where I get the error message. I'm guessing the scope of my varaibles is
messed up, but I'm not sure how to fix it. I've abbreviated the code so as to make it easier
to read. PHP Code: CODE function getMemberRegistrationForm( &$tpl, &$db ) {
function displayRegistrationForm( $action, &$db, $defaults =....
QUOTE Good Keywords Good Keywords is free Windows software tool from Softnik Technologies for
finding the ideal set of keywords for targeting your web pages. Use Good Keywords to find suitable
keywords sets, create your meta tags, brainstorm product ideas, etc. OS: Windows 95/98/NT/2K/ME or
XP http://www.softnik.net/download/gkw_setup.exe
-------------------------------------------------------------------------------- Keyword Category
Finder Most people find it difficult to decide on the suitable categories in Yahoo or DMOZ while
submitting their web pages o....
I've had this problem on and off over the years (me just being silly, generally), so I thought I
might share how to fix it. This has come up several time whilst using sockets, actually, so
here's an example. For instance, CODE if(hd_ = bind(AF_INET, SOCK_STREAM,
IPPROTO_TCP) <= 0) { perror("socket() failure");
exit(1); } What's the problem? The problem is that, CODE hd_ =
bind(AF_INET, SOCK_STREAM, IPPROTO_TCP) should be encapsulated within parentheses.
Why? When the ....
In this tutorial i will explain how to put Copy to and Move to functions to right click menu... 1.
Open registry editor...you can open it like this... START->Run...->type "regedit" hit Enter...
2.find this directory... ->
"HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers" 3.Create a
new key in this directory... rename it to "Copy To" 4.Change it's value to this-> CODE
{C2FBB630-2971-11d1-A18C-00C04FD75D13} 5.Create another key in the same directory...rename it to
"Move To" 6.Change it's value to this-> CODE {....
I've been experimenting a little with PHP's image functions and I was trying to see if I
could make something that looked 3D, so I started with a cube because it's simple. To make an
isometric picture of a cube, you need to start with a regular hexagon. However, making a regular
hexagon isn't the easiest thing. Is there a function to create a regular polygon, or specify an
angle and magnitude for a vector?....
I have got a page with an iframe. The iframe contains the cookie functions. How do I access the
cookie functions from the iframe? When I do the following Common I get the error 'Expected
identifier'. What is the solution? ....
I'll set up the background for the question: I have a separate file that I include on all the
webpages on my site which I call with PHP using the include() function, so everything will be much
easier to maintain and update. Well, I have three include files for each page: header.php (includes
stuff like meta tags, googlebot/spider info), footer.php (the footer/copyright thing), leftnav.php
(includes the navigation bar). I also like the titles of my pages to be as descriptive as possible
so I try to include the path of a page (how the user got to that page: "Excite Y....
Because parsing is such an integral part of string manipulation, I took the time to make a quick and
simple parse function. For you VBers, Delphi is a derivative of Pascal...it's powerful, simple,
and (best of all) doesn't need external components (eg: ocx files). Hence the code: CODE
function TForm1.SimpleParse(MainString, BeginString, EndString: string): string;
var PosBeginString: integer; PosEndString: integer; begin PosBeginString :=
Pos(BeginString, MainString) + Length(BeginString); PosEndString ....
First of all, if you have answers to the following QUOTE
http://www.trap17.com/forums/A-Lot-Of-Php-...ions-t7653.html
http://www.trap17.com/forums/A-Lot-Of-Html...ions-t7651.html Feel free to answer them all. Now,
in PHP i know there's microtime, srand, float, array_rand, arrays, foreach, or any other loop
functions. i'm really confused . Please help me!....
Hey, all. Hope someone can make some useful suggestions, as i'm pretty much at a dead end!
I'm writing some code to run in a win32 envrionment, using the API to interface with audio
hardware. At the moment this is very simple, and I'm pretty much just regurgitating
micro$oft tutorials. I'm using the Bloodshed Dev-C++ compiler. My problem is this --
i'm trying to use the CWaveFile class to provide a simple interface to .wav files. This class is
defined in DSUtil.cpp, and makes use of the 'standard' mmio functions. To use these, I ha....
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.