[PHP] Looking for a script

2001-01-09 Thread PeterOblivion

since im too busy to write my own script, does anyone know of a FilePlanet 
(fileplanet.com) or Download.com type indexing script, where when you click 
on a link it will take you to the details of the file, and etc.


- Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Templates

2001-01-12 Thread PeterOblivion

I looked around the web for templates and founf FastTemplates. Not exactly 
what i was looking for thoug
lets say I have 
$file = "111"
and there is a template "template.txt"
and it contains 
"file #$file is blahlah"

how can I make that a template?

Thanks
- Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] problem that has been really annoying me...

2001-01-15 Thread PeterOblivion

I have a problem which i dont know how to solve

my script...
$game = "roguespear";
$title = "quepasa??mecasa...";
$num = mysql_query("SELECT * FROM DLtemplates WHERE id='$game'");
$num =mysql_fetch_array($num);
print(stripslashes("$num[sub]"));

what sub in DLtemplates where id=$game  = $title 

so why does it print 
$title  on the screen and not "quepasa??mecasa...";

any help apprecaited

- Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] simple division.. but how?

2001-01-15 Thread PeterOblivion

if you want to do
10 / 3 
i want it to show 3 and not 3.3

how do I control that?


- Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] simple math

2001-01-20 Thread PeterOblivion

Lets say I have 11 / 3

answer is 2.667

what if I want to get the remainder of it
so 11 / 3 would be 2

is there a built in function for this in PHP?
kinda like MOD in Visual Basic?

- Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] downloading

2001-01-22 Thread PeterOblivion

Hi,

since i am on 56k i was wondering if instead of downloading a file from some 
server and then uploading it again to my server, if i could just have PHP 
tell the server to download it from the server the original file was in.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] quote problem

2001-03-02 Thread PeterOblivion

Hey,

Wondering if any of you can help me with a problem

im trying to get something like this into $var  :

blah "blah" blah

How can I do it if its multi lined

Someone suggested
content =  END <<
BLAH BLAHC
BLHAC
END;

but that doesnt seem to work with quotes

Thanks
- Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] config question

2001-03-05 Thread PeterOblivion

My server admin is being stupid... magic_quotes_gpc have been turned off 
unexpectadly so phpMyAdmin aint working, as well as half my scripts. He says 
nothing has been changed so it must be my fault, is there a command in php to 
displays the PHP config options so i can show this mofo that they are off

- Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] image resize

2001-03-08 Thread PeterOblivion

My goal.. 
Take an image (gif,jpg) from a remote server, resize it into 200x150 and then 
save it on my local server.
My friend gave me a premade script but that doesnt work. Anyone have 
something like this already done or know where to find it?

- Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] need some help..

2001-03-13 Thread PeterOblivion

Im moving servers within the week.. and I got about 600mbs worth of stuff on 
there, and me being on 56K its nearly an impossible tasks.

I thought up of a solution, but need to get it implemented. Have a script 
open a directory and fopen all the files from the remote server and transfer 
it to my new one. Anyone ever done something similar to this? is it possible?

- Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mysql: UPDATE statment

2001-05-10 Thread PeterOblivion

why isnt this working

i need to get 5 values updated in a table called 'user_polls' 

how do I do this?
i have

UPDATE user_polls WHERE id = '$id' VALUES($1, $2. and so on

im getting a SQL error

anyone?

- Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phpMyAdmin: dumping problem

2001-05-13 Thread PeterOblivion

i got a 1.21 txt file worth of backup data on my HD.
I need to get it up and running on my new mysql server asap.

2 problems tho
i dont have ftp or telnet access, and two phpMyAdmin always gives me a syntax 
error.. this is most likely because HTML is included in the contexs of the 
database.

Anyone know of a compile cgi script or someting else that might help me?

thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mysql: dumping data

2001-05-17 Thread PeterOblivion

anyone have a CGI scipt/compiled linux cgi that will dump the contents of a 
file somewhere on the net into my mysql database?

I dont have telnet nor ftp access to my mysql server, and phpMyAdmin has 
failed everytime.

thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mysql error, dont see why.. please help

2001-05-22 Thread PeterOblivion

Here is the command.

mysql_query("UPDATE user_polls WHERE uid = '$UserName' AND type = '$type' SET 
url = '$file_name'") or die(mysql_error());

Output
You have an error in your SQL syntax near 'WHERE uid = 'Oblivion' AND type = 
'music' SET url = 'test'' at line 1

This is SOOO weird.
PLEASE HELP

- Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] how to search the list's archives?

2001-04-09 Thread PeterOblivion

I asked a few questions a few weeks ago, and got some very good anwers. too 
bad i didnt save them.

Anyone know how to search the archives of this list (if there are any) ?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mysql .. quick question

2001-04-10 Thread PeterOblivion

I really need help.

I  cant seem to get phpMyAdmin to put my backup dbase onto the new server.

I always get some stupid error because of the html which is stored in the 
dbase.

Does someone know of a cgi script that would do it successfully, or maybe a 
telnet command that will dump it?

Any help is greatly appreciated.


Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] looking for a class that handles cookies and sessions

2001-06-26 Thread PeterOblivion

I need a class that can quickly help me set cookies and sessions, and check 
up against them

anyone have an idea where i can get one like this?

- Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] error: input in flex scanner failed

2001-08-18 Thread PeterOblivion

anyone got any inside info on waht this error means?

I changed one line of code.. and caboom.. 

- Peter



[PHP] Help with weird error..

2001-08-18 Thread PeterOblivion

Hey guys,

anyone know what
Fatal error: input in flex scanner failed in /home/k/kyle/public_html on line 

means?

thanks



[PHP] strange PHP/MySQL problem

2001-01-27 Thread PeterOblivion

if you goto
http://downloads.moddingcentral.com/add.php
you will see a simple form

this form takes the info and a PHP script processes it and places it into a 
mysql table. now the problem

if i put Cynical Saint's Video Tutorial in the name it will display 
Cynical Saint\ in the dbase (also seen @ downloads.moddingcentral.com)

but if you place it in the description it is fine..

here is my sql query

$rst = mysql_query("INSERT INTO tablename(id, game, section, name, size, 
description, dllink, creator, creatoremail, date, website, score, downloads) 
VALUES ('$id', '$game', '$section', '$modname', '$size', '$description', 
'$dllink', '$creator', '$creatoremail', now(), '$website', '0', '0') ") or 
die(mysql_error());

Whats wrong with this?
its driving me nuts!

- Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] strings

2001-01-29 Thread PeterOblivion

How can i make http://www.something.com/blah/blah.zip into 

blah/blah.zip

http://www.somethingcom is a constant.. always the same thing

how can i cut it out?

thnx

- Peter


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] quick file question

2001-02-17 Thread PeterOblivion

I have $File, and I want the context of hello.txt to be stored in $file, 

Is there a function for this or do I use fopen?

- peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]