tarun
-
Posts
321 -
Joined
-
Last visited
Never
Posts posted by tarun
-
-
Ive Created A Quick Example
But Why Doesn't It Work
The Output I Get When I Go To: test.php?file=example.jpg Is:
The File Type : "text/plain" Is Not Supported
<?php $file = $_GET["file"]; $filetype = mime_content_type('$file'); if ( $filetype == "image/jpeg" ) { echo '<IMG SRC="'.$file.'">'; } else { echo 'The File Type : "'.$filetype.'" Is Not Supported'; } ?>
Why Is It Doing This
Thnx,
Tarun
-
Thnx
That Must Be Why It Wasnt Working - (No FreeType Library)
TOPIC SOLVED
-
I Have A PHP Code Which Loads An Image And Puts Text Over It
<? $string = $_GET['text']; $r = $_GET['r']; $g = $_GET['g']; $b = $_GET['b']; $id = ImageCreateFromGif("img.gif"); $yellow = ImageColorAllocate($id, 255, 255, 0); $white = ImageColorAllocate($id, 255, 255, 255); $black = ImageColorAllocate($id, 0, 0, 0); $colour = ImageColorAllocate($id, $r, $g, $b); ImageString($id, 4, 10, 20, strtoupper($string), $colour); ImageGIF($id,"./newimg.gif"); ?> <img src="newmonkey.gif">
How Do I Change The Font And The Size Of The Text
And Any Other Things
Thnx,
Tarun
-
Sorry Ill Check That Topic Out Then
Thnx
-
No
What Is It...?
-
This Is A Quick Example Of
If users.txt Looked Like This
user1|-|passwd1|-|32 user2|-|passwd2|-|46 000002|-|passwd3|-|21
Could I Use PHP To Add This "|-|user" To Each Line
And Is It Possible To Add "|-|admin" To A Specified user (user1)
Thnx - Really Appreciated,
Tarun
-
My Array Which Is Stored In items.php
Is Accesed By Pages Using include 'items.php';
items.php Looks Like This:
<?php $itemList = array( '000001'=>array('ID' => '000001','name' => 'Item 1','price' => '99.99','img' => 'images/1.jpg','cat' => 'Category 1'), '000002'=>array('ID' => '000002','name' => 'Item 2','price' => '49.99','img' => 'images/2.jpg','cat' => 'Category 2') ); ?>
And This Code Is Used To Add To The Array:
$itemList['000003'] = array('ID' => '000003','name' => 'Item 3','price' => '69.99','img' => 'images/3.jpg','cat' => 'Category 3');
But It Doesn't Change The Contents Of items.php
Any Help...
Thnx,
Tarun
-
BuMp
Please...
Does AnyOne Know
-
LoL For Topic Title
But Really Can SOmeone Tell Me What O.O.P Is
Thnx,
Tarun
-
Also, no html tags in caps
<HTML> = not good.
<html> = beautiful
Why....?
I Always Write HTML In Caps
I Just Looks Nicer, Neater And Is Easier To Read (In My Opinion)
-
Try This:
$id = $_GET["id"]; header("Location: http://yourdomain.com/index.php?id=$id");
-
This Is My QUICK Example
items.php Contains The Array
<?php $itemList = array( '000001'=>array('ID' => '000001','name' => 'Item 1','price' => '99.99','img' => 'images/1.jpg','cat' => 'Category 1'), '000002'=>array('ID' => '000002','name' => 'Item 2','price' => '49.99','img' => 'images/2.jpg','cat' => 'Category 2') ); ?>
add.php Is The Page Which Adds To The Array
It Uses include 'items.php'; To Include The Array In The File
delete.php Is The Page Which Removes Things From The Array
It Also Uses include 'items.php'; To Include The Array In The File
BUT How Do I Actually Add And Remove Things To/From THIS Array
Thnx,
Tarun
-
It Seems Fine To Me... ???
-
This Is A Quick Multi Dimensional Array That Ive Put Together
<?php $itemList = array( '000001'=>array('ID' => '000001','name' => 'Item 1','price' => '99.99','img' => 'images/1.jpg','cat' => 'Category 1'), '000002'=>array('ID' => '000002','name' => 'Item 2','price' => '49.99','img' => 'images/2.jpg','cat' => 'Category 2') ); ?>
How Do I List The Items Info Using foreach
Thnx,
Tarun
-
Sorry Ma Bad I Made A Mistake
Lets Just Forget About This Topic
-
Its Not Done With JavaScript And It Counts Down Every Second And When You View The Source It Is The Same As
Say The Counter Looks Like This:
194860565 Seconds Till Christmas
And The Source Code When You Click "View Source" Is Like This:
<b><font color=red face=Verdana>194860565 Seconds Till Christmas</font</b>
Then If You View The Source 5 seconds Later Without Resfreshing Or Doing Anything To THe Page The Source Is Like This:
<b><font color=red face=Verdana>1948605*#*70*#* Seconds Till Christmas</font</b>
OBVIUOSLY WIHTOUT THE *'s And #'s
Thnx,
Tarun
-
Well If You Could Call The Username In A Variable
You Could Do Something Like:
include("phonebooks/$username.txt");
-
Have You Got A Login System Yet?
-
Nice...
You Could Sell This Commericaly If You Had More Of The Basic IRC Commands And Even Some More Advanced Commands
Thnx,
Taun
-
Aright Then Thnx Every One
TOPIC SOLVED!!!
-
I Think Its Working
Mayby It Was Just A Temporary Error... :-\
-
-
Okay Thnx Ill Look That Up Then
Thnx
-
Whats Parsing BTW...?
[SOLVED] imagecreatefromgd() and imagecreatefromgd2()
in PHP Coding Help
Posted
Ive Been Wondering The Same Thing Aswell
And Now I No
Topic Solved?