Jump to content

aeroboy

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

aeroboy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. To anyone who wants to display the username entered through AuthentiX 's basic authentication, use the following code: [code] <?php $AuthX = new COM("AUTHXOCX.AuthXOCXCtrl.1"); $currentUser = $Authx->Base64UserName($_SERVER["HTTP_AUTHORIZATION"]); echo "currentUser = " . $currentUser;[/code] This will output: currentUser = aeroboy !!!! 8)
  2. hello, I had some ASP script translated into php (with which I used the asp2php translator found at [url=http://asp2php.naken.cc/]http://asp2php.naken.cc/[/url]). Everything worked out, except for one thing.  Basically, I need to set $AuthX as an object of type "AUTHXOCX.AuthXOCXCtrl.1" Can anyone help?  I realize that this is a simple object question, but I am new to php, and haven't delved into objects. Please and thank you. 
  3. Hello, I am coding a forum for my work (government job) and I am stuck trying to display a user's name.  I have my server computer right in front of me (care of my employer) with the following installations: IIS v 6.0 - which is reading the files with .php extensions using C:\php\php-cgi.exe (in IIS Manager | Web Service Extensions). php 5.1.4 MySQL 5.0.22 AuthentiX (Basic Authorization software from Flicks Software) Essentially, an unprotected (accessible to anyone) login screen links the user to the forum at which time they enter their username and password in a pop-up window (all maintained by AuthentiX).  Access is allowed or granted appropriately.  Once in my site (all .php), I want to echo the user's name back to them, so they know the forum knows who they are.  AuthentiX provides this option using the following script: <% Set AuthX = Server.CreateObject("AUTHXOCX.AuthXOCXCtrl.1") currentUser = AuthX.Base64UserName(Request.ServerVariables("HTTP_AUTHORIZATION")) response.Write "currentUser = " response.Write currentUser %> Since this is in the ASP language, I made a file called username.asp and protected it using AuthentiX (so as to allow access ONLY by login).  I login, am granted access, and then the username.asp spits out at me my username.  All is good. I can't seem to get my forum.php page to read my username.asp page.  By searching forums, and looking around the internet, I have narrowed down that I have to use something like fopen() or include() to access the .asp file, and then preg_match() or strpos() or something else to parse it and look for a match.  Whenever I try to run my forum.php page with the above ASP script embedded, it gives error messages.  I altered php.ini in the following ways: asp_tags = On (it was Off before) include_path = ".;c:\php\includes;MY_WEBPAGE_DIRECTORY" (MY_WEBPAGE_DIRECTORY was not there before) After turning on asp_tags, I would have assumed that a .php file would have been able to have <% tags embedded in it - otherwise, why would that option be there? After altering the include_path, I thought the include() and fopen() functions would have worked, but they didn't either.  Is there some easy way to translate this ASP into php, so that I could just use that in my forum.php page, and sidestep all ASP completely?  Must I use include()?  Is it my security setting that are hindering things? I have been in contact with the developper of Flicks Software.  He got me as far as the ASP code.  After that, he said he has no clue about php and how to use it (poor guy).  So he's out as a resource.  Any help would be very much appreciated.  :-[ Thanks in advance.
  4. Thanks, guys... after researching and listening to you guys, I went to <a href="http://dev.mysql.com/downloads/connector/php/"> http://dev.mysql.com/downloads/connector/php/ </a> and downloaded the mysqli extension.  After that didn't work, the mysql extension worked fine.  Your linked thread was perfect, wildteen. THANKS!! 8)
  5. Hello, I have recently installed php5.1.4 and MySQL5.0.22 on my Windows Server 2003 server computer.  I tried a simple connect by creating a file with the following code: [code]<html> <body> <?php $con = mysql_connect('localhost','root','MyRootPassword'); if (!$con)   {   die("Could not connect: " . mysql_error());   } ?> </body> </html> [/code] I get the following error message when I try to view this file in IE: PHP Fatal error: Call to undefined function mysql_connect() in MyFileLocation on line 5 Can anyone help? I installed php on my hard drive i.e. C:\php I installed MySQL on my hard drive as well i.e C:\Program Files\MySQL Thanks in advance
  6. Hello, I am new at programming, but have been given the task of making a government website, as they are my employer.  :-\ Since they want me to include a forum (as part of the site), I have downloaded and installed both php and MySQL.  They are now functional and are running on our dedicated server (I have both the server, and my business computer set up at my desk - both with monitors, keyboards, and mice).  Anyways, I downloaded phpBB2 and at the first install.php page (viewed in my IE browser) it asks for some information: Database Name: Database Username: Database Password: Since we have a dedicated server, I created a new database from the MySQL command line.  I don't know, though, what the username and password are.  Is it a the name and password of a user who has access to this database?  Does the database itself have a username and password?  if so - how do I set it?  I apologize for the noobiness of my question :-[ I guess I'm just cautious.  Thanks in advance.
  7. Hello, I am in the process of creating a PHP/MySQL forum-based website. This is my first time working with PHP and MySQL; I have a few questions. I want users to be able to upload .pdf files along with their posts. How is this done? How does the system handle such uploads? Is there a maximum allowable size for an attached file to be posted? Any advice would be very much appreciated. aeroboy
  8. What's the difference? In laymen's terms. Aeroboy
  9. From the recent feedback, it seems like it IS possible to copyright code. I am not even saying that I'd like to take whatever I create, and personally sell it under the table to other companies (sneakily). My supervisor and I could go with this copywritten web-based solution package and pitch it to other companies (or government departments, or what have you). My supervisor and I are on the same team. From the replies, it seems like one CAN obtain legal ownership of code-based websites. Thanks, y'all
  10. Hello, I'm a rookie when it comes to PHP. I am working for the government as a co-op student. My supervisor is pitching an idea to employ a PHP-based forum where users can talk about problems they're having. I am to create the website (using PHP and MySQL). I am wondering if there is a possibility of legally owning (copyright, patent) whatever PHP-based forum I create, to sell to other clients as a forum package. Can this supposed copywritten product be marketed and sold to organizations as (for example) a "web-based forum solution for your communications needs" which I would then set up to my customer's specifications? Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.