-
Posts
162 -
Joined
-
Last visited
Never
Posts posted by Chetan
-
-
I just found out something,
You can use COM functions for that, and there are many such classes at www.phpclasses.org -
I just found out that, In IE when u use save picture as it saves as the type not .php and also when you save the document it saves a web page with the pic.
I dint use that code from GD but another script which takes pictures from MySQL -
You need to create a file test.txt
-
You are unlucky, because
Your code must not have <? ?> <?php ?>
only php code like
[code]
$code="echo('Hello');";
eval($code); // Hello
[/code]
So you have to use echo for all html and for php use it like you would without the tags and use eval -
If your index.php is this it would be better
[code]
<?php include ("login.php");?>
<html>
<head>
</head>
<body>
</body>
</html>
[/code]
Since sessions need nothing to be before them even HTML -
But incase I only use the database to store my pics, not the uploads, is it safe?
-
Well that was done before~~, fenway, thats what I hav been saying and AndyB corrected it.
And did you think you had it NOT NULL as I said -
Ofcourse, we cant pm here, and i dont know your messenger ids.
tellme and ill add you, preferably Y! but MSN would also do. -
Uh sorry, Another way
[code]
for($u=0; $u<=$num2; $u++)
{
$flds='';
$dat='';
for($i=0; $i<=$num; $i++)
{
$flds.='$fields['.$i'.],';
$dat.='$data['.$i.'],';
}
$flds=substr($flds, 0, -1);
$dat=substr($dat, 0, -1);
$exec = '$sql = \'INSERT INTO $table['.$u.']($flds) values($dat]);';
// For debugging, you may uncomment this code
// echo($exec);
eval($exec);
mysql_query($sql);
}
[/code]
This should do it -
I think thats a true, better you try some code
-
You made it with NOT NULL remember, look at the code on the first page, it says fip is NOT NULL
-
well its one of the best
-
$post2 = wordwrap($post, 20, "<br />\n");
Directly from my copy of php manua;, btw where are you from? -
Yup! ~~ forgot my words
-
You have excess to php.ini?
-
Delhi, India
$post2 = wordwrap($post, "/n", 20); -
Ill register.
Well the desi in your name makes me laugh it means sumthin kinda funny -
Simce you said three images for profile you would also have to code much for DB and so you need normal uploading to do wonders.
BTW, my question, what are the security risks if I upload images to a DB? -
See the $ are not considered as variables as i said it should be changed
-
or phpinfo which gives info about what is installed and what is not.
or use gd_info() which will work only if there is GD -
You can generate JS from PHP but they dont work together.
-
Ohk, what I meant was youll have to make it better than atleast pokemoncrater.com so ppl play it much, it isnt even famous among my frends~~
-
@Andyb - Sorry but I still dont see anywhere anybody giving a code which tells him not to use '' while putting vars in it, not is the use of . to do same here?
-
PHP is though dynamic it can only give the browser a HTML code it can though be like a software but it cant control the browser.
what do you use to creat your site??
in Miscellaneous
Posted