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 25 August 2003, 02:19 PM
  #1  
SiDHEaD
Scooby Regular
Thread Starter
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
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
Old 25 August 2003, 03:38 PM
  #2  
Nicks VR4
Scooby Regular
 
Nicks VR4's Avatar
 
Join Date: May 2003
Posts: 1,165
Likes: 0
Received 0 Likes on 0 Posts
Post

you could try here for an answer

http://www.phpbb.com/phpBB/
Old 25 August 2003, 03:47 PM
  #3  
SiDHEaD
Scooby Regular
Thread Starter
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
Post

thanks!

Andy
Old 25 August 2003, 06:59 PM
  #4  
Andrewza
Scooby Regular
 
Andrewza's Avatar
 
Join Date: Jan 2002
Posts: 667
Likes: 0
Received 0 Likes on 0 Posts
Post

probably find register_globals is off, try $_SERVER["PHP_AUTH_USER"]
Old 25 August 2003, 08:54 PM
  #5  
SiDHEaD
Scooby Regular
Thread Starter
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
Post

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

Thanks though,

Andy
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM



Quick Reply: PHP question



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