Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

PHP question

Thread Tools
 
Search this Thread
 
Old Aug 25, 2003 | 02:19 PM
  #1  
SiDHEaD's Avatar
SiDHEaD
Thread Starter
Scooby Regular
 
Joined: Apr 2002
Posts: 9,196
Likes: 0
From: Birmingham
Post

Not sure if anyone on here is good with PHP - but i expect someone is!!!

I have a picture uploader as part of my site, which is user authenticated via .HTACCESS file. On my old host I used to be able to tag the filenames uploaded with the user's username. I have since changed server and now this doesnt seem to return any value. The format i am using is:

$newname[$i] = $PHP_AUTH_USER;
$newname[$i] .= str_makerand(12,12,"$false","$false","$true");
Is there another way to do it, as i would prefer their username to be logged rather than just a load of random number'd images?

Andy
Reply
Old Aug 25, 2003 | 03:38 PM
  #2  
Nicks VR4's Avatar
Nicks VR4
Scooby Regular
 
Joined: May 2003
Posts: 1,165
Likes: 0
Post

you could try here for an answer

http://www.phpbb.com/phpBB/
Reply
Old Aug 25, 2003 | 03:47 PM
  #3  
SiDHEaD's Avatar
SiDHEaD
Thread Starter
Scooby Regular
 
Joined: Apr 2002
Posts: 9,196
Likes: 0
From: Birmingham
Post

thanks!

Andy
Reply
Old Aug 25, 2003 | 06:59 PM
  #4  
Andrewza's Avatar
Andrewza
Scooby Regular
 
Joined: Jan 2002
Posts: 667
Likes: 0
Post

probably find register_globals is off, try $_SERVER["PHP_AUTH_USER"]
Reply
Old Aug 25, 2003 | 08:54 PM
  #5  
SiDHEaD's Avatar
SiDHEaD
Thread Starter
Scooby Regular
 
Joined: Apr 2002
Posts: 9,196
Likes: 0
From: Birmingham
Post

That didn't work either, and the forum was really for support on the php bulletin baord, not php language.

Thanks though,

Andy
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
Nov 4, 2021 07:12 PM
Brzoza
Engine Management and ECU Remapping
1
Oct 2, 2015 05:26 PM




All times are GMT +1. The time now is 02:02 PM.