Using External SMTP Auth - Urgent Help Please!
I am trying to make a mail script that can either, securely send email to domains not existing on the local server.
OR
Connect to an external SMTP server through smtp auth and send email that way.
View Complete Forum Thread with Replies
Related Forum Messages:
Using External SMTP Server
I need some help with an script: // send message if($_POST[submit]) { // check for suspected injection strings foreach($_POST as $name => $value) { filter_string($value); } // check for unexpected newline characters foreach($_POST as $name => $value) { if($name != 'message') filter_string($value); } $_POST = safe_data($_POST, 'display');.
View Replies !
Send Email To An External Smtp Server ?
I am running VBulletin board, the web forum on a linux machine running apache. How to config php so that it can send email thru an external smtp server instead of local sendmail. My external smtp server is running on an NT machine.
View Replies !
Urgent Help With == And Fopen Please
I have a txt file on the server that I need to compare a date with. The contents of the file are like: 020702 050702 ... This would be like July 2, 2002 and July 5, 2002. So I want to take the current date, and compare it with all the dates in the file and if one of them matches, I want to return true, but for some reason the equality isn't working. When I echo out the values, they are the same ... but ... no luck? Here is the snippet:
View Replies !
Urgent Help With Session
i have developed an application located on a server that has a front end and a back end interface, the application uses session object. when i log on as a backend user and a client user form the same computer, the sessions conflict together and i get unexpected results, and i found out that this happenes when one of the sessions ends. Ex: when i log on as a backend user, and then as a front end one(from the same computer at the same time), if i log out(destroy the session) as a front end user the back end user no longer works because the session variables are destroyed.
View Replies !
Urgent String
I am trying to read the content of url into string using following code curl_setopt($ch, CURLOPT_URL, $new_url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); $store_content = curl_exec ($ch); When i am trying to print the string using print("content is: ".$store_content); it is printing the whole html page in the browser but when i try to take length of the content using $contentlength=strlen($store_content); it is returning only 256. and when i try to fetch index of particular string say 'Description' from the content using $description_start = ' Description' $description_start_pos=strpos($store_content,$description_start); it is returning false. But the string is present in the page and i have seen it physically..
View Replies !
Need One Urgent Help With Configuration Of Php With Apache!
I have successfully installed Apache “apache_2.0.54-win32-x86-no_ssl” and copied “php-5.1.0RC1-Win32” to c: with php name. Now made environment variable with “C:php” and copied php.ini recommended file in c:windows with php.ini name. Till now every thing is working fine means server is running but whenever I add module in https file under conf directory then that got unavailable. I don’t know why server is unable to load php and specified dll. Here I have Win XP and firewalled enabled.
View Replies !
Warning Ftp_put - Urgent
I am getting problem in uploading file from php script. The error is : Code - $upload = ftp_put($conn_id,$filemax,$src,FTP_BINARY); Output - Resource id #11,fairmont_mon.txt,/tmp/phpWmPlSJ Warning: ftp_put() [function.ftp-put]: OOPS: vsf_sysutil_bind in /var/www/html/hview/hqc/twc_upload/upload_file.php on line 263
View Replies !
Data Recovery **URGENT**
I work on a debian server. with apache doocroot: /home/web. unfortunatly, the other admin creates a user with /home/web default directory, and then deletes the user... /home/web doesn't exists anymore.
View Replies !
Logoff User With Php *urgent*
If somebody could help me with this one it would be very nice, the story: I need to check if a user is online or not at the moment i am doing a user logoff with javascript but this is not browser proof so it doesn't work all the time. or doing it with a for() statement that writes every 20 sec the last unix time to a database, this doesn't work because the for() statements stops executing the rest of the page so that doesn't work either the problem: i can only have one user online for a group, so i have to check if the first that logges in for a group is online or not, i have a check time of 1 minut so if a user logges off, a new user can login after a minut. the reason: so you think what is the problem put a logoff button on the screen and your finished, well that would be the answer if i wasn't developing a page for idiots that destroy the browser window by alt-f4 or the cross instead of the logoff button.
View Replies !
Eregi_replace() Problem? URGENT
<? $text = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <link href="../style.css" rel="stylesheet" type="text/css"> </head><body></body></html>' $replacement ='<style type="text/css">body { background-color: #6080AF; }</style>' $text = eregi_replace("<link[^>]#>",$replacement,$text) ; echo $text; ?> In the above script i want to change the red line to green line. But it did not work. any help would be appriated.
View Replies !
Urgent: Create Table If It Doesn't Exist?
I'm using a script what inserts data into a table (called "_$this" - e.g. "_2") like the following: Code: mysql_query("insert into _$this->uid (time,referer) values ('".time()."','$this->referer2'"); I need to check if the table "_$this" exists before inserting data and if it doesn't exist i'd like to create this table before inserting it like: Code: mysql_query("CREATE TABLE _$this (definitions)"); Means in simple steps: 1. Check if table exists - if yes -> step 3, if no -> step 2 2. Create table -> step 3 3. Insert data Any code snippet for a php-newbie like me?
View Replies !
Urgent: Cannot Connect To Database Mysql+PHP
I am having a problem connecting to mysql database. I am using PHP5.0 and mysql 4.1 I am using mysql_connect("servername","us*ername","password"); Everytime I execute the script the server gives me a message : Call to undefined function on line number:3
View Replies !
Urgent | Info Required | PHP Ini_set
We have a client who is providing Web Hosting Solutions. One of the features include PHP Scripting. For security reasons, we have disabled some PHP Functions including 'ini_set'. Some end customers actually want this function to be enabled. We have analyzed the list of directives which are available via 'ini_set' (PHP_INI_ALL). Refer: http://in.php.net/manual/en/ini.php For us, this is a critical decision to make as some of the configuration like memory_limit can be misused by customers. We are using PHP v4.4.0 (ISAPI based) on Windows Server 2003 (IIS 6.0). Also, PHP is running under 'Safe Mode' hence max_execution_time cannot be overridden with ini_set. Questions: 1. Can we disable some critical PHP Directives (changeable as PHP_INI_ALL) so that even with 'ini_set', user cannot override them? If yes, how? 2. Is there any other way of securing the web server with ini_set enabled?
View Replies !
URGENT: Index Not Found Error
I have a php form which refers to variables like: $HTTP_POST_VARS $_GET $POST etc. What happens is that these variables are not recognized and i get the following error - PHP Notice: Undefined index: status in c:inetpubwwwrootsmamemberslogin.php on line 71 here status is being referred to as: $_GET['status'] is there anything wrong with my php settings? The same code works fine on my ISPs web server.
View Replies !
Fedora 4.0- PHP 5 - MYSql 5 -Apache With 64 Bit Installation Help...[URGENT]
Can anyone help in installation of Fedora 4.0 , PHP 5 and MYSql 5 with Apache webserver I want to install 64 bit version of all because I bought new PC with 64 bit supporting. Please provide me help where I can get step by step information about installation of all above and if necessary give download link also. I tried myself lot but not successfull. I have 64bit fedora 4.0 which is installed from fedora site. Guide me soon if possible I need to start project in PHP 5 and MySql 5.
View Replies !
Php Client / .Net Webservice / Datetime Problem - Urgent!
Problem in sending datatime format to the .net webservice from php. description follows. I've created a .net webservice. ..Net Webservice: <WebMethod()> _ Public Function HelloDate(ByVal mydate As DateTime) As String mystr = mydate.ToString("dddd") 'Which displays day Return mystr End Function Php Client: $parameters['mydate'] = "12 June 2005; $soap_proxy = $s->getProxy(); $result = $soap_proxy->HelloDate($parameters); if (!$err = $soap_proxy->getError()){ echo($result["HelloDateResult"]); }else{ echo 'Error: ' . $err . " "; } When i tried to communicate the .net webservice. It shows following error. "Error: soap:Client: Server was unable to read request. --> There is an error in XML document (1, 460). --> String was not recognized as a valid DateTime. " How to send datetime format data to the webservice from php. For String, Numbers above code works well.
View Replies !
Registered PHP Streams (fshockopen Error While Opening A Https Stream) Urgent Help Needed
I am running PHP5.0.2 over apache 1.3.29 and openssl-0.9.7d on a Debian Linux and with a fake (internal)ip. Php Configure command './configure' '--with-apxs=/www/bin/apxs' '--with-openssl-dir=/usr/local/src/webserver/openssl-0.9.7d/' '--enable-trans-sid' '--disable-libxml' Registered PHP Streams : php, file, http, ftp Registered Stream Socket Transports : tcp, udp, unix, udg allow_url_fopen : On On Now when i try to open a https url via it gives me this error [Wed Jun 15 19:03:36 2005] [error] PHP Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to ssl://www.testcall.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /www/htdocs/testcon.php on line 2 I am trying to fix this from last few days but not successful can some please help me its very urgent. Do I need to register ssl and https as registered php streams? and if so how do i register them.
View Replies !
IIS Auth
I was wondering how I could get the username of the user that is logged in though the auth of IIS... Is also a way where I can get information on the current user from Active Directory, is there sometime of dll for this?
View Replies !
Htaccess Auth Vs. Php Auth, Is Htaccess Better?
I have searched the forum and not really found an answer to my questions. I am debating forms of authentication, and I already have .htaccess apache authentication running. My question is, is htaccess a reliable enough form of authentication to not need anyother forms? I am just not sure which is the better method, php, or htaccess.
View Replies !
Http Auth + Php
Is it possible to get PHP to pass a login/password to an htaccess protected dir? This is to make a loginform for a page that resides in a protected dir. I want to avoid the normal login dialog the browser uses, so I amongst other things can give the user a few choices when logging in.
View Replies !
LDAP / AD Auth
Does anyone have a front end form for the LDAP class that they wouldn't mind posting. Just trying to enable site access based on Active Directory
View Replies !
PHP And HTTP Auth.
I have been trying to set up a script for HTTP Auth where a user can fill in a form, with a username and password and it logs the user in via .htaccess and http auth. I have found tutorials online about how to check if someone is logged in or not,,, but thats not what im looking for... Anyone any idea how this can be done?
View Replies !
HTTP Auth
I've been authenticating users from a databse via http auth. The main issue I'm having is that when an incorrect password is entered and they try and key in a new password, the old credentials are still cached and the entire browser has to be closed in order to login. Furthermore, if a password is reset, or changed the same problem occurs. I've looked through the php site, tried a few things to no avail.
View Replies !
Downloads Auth
I'm trying to figure out how to only let someone download a file on my server by clicking a specific link on the site, and only let them download it if their user account is allowed to. Any way to control who can and can't download a file using php.
View Replies !
Login Auth
I have the next code: $link = mysql_connect('localhost', 'myusername', 'mypass' ); mysql_select_db('mydb') or die("check your info."); $_POST['username'] = $username; $_POST['password'] = $password; $password = md5($password); $consult= "SELECT * FROM users WHERE password='$password' AND username='$username'"; $result= mysql_query($consult,$link); echo mysql_error();
View Replies !
Pear Auth Header
I have specific header and javascript for my site, I also want the login in a specific place, how do I use pear auth to do this: Code:
View Replies !
Auth/login Library In Php ?
i would like to develop a simple but (quite) secure auth/login library in php, just to know about users on a website (no use for http or ..htaccess). i'm wondering if this is best done by using cookies or by using sessions and which one should be "best practice and why" . i've also looked at php_lib_login, but it's too complex for my purpose, if you know about simple one.
View Replies !
HTTP-auth Workaround
I'm looking for a way to force basic http autentication from within a PHP script. Here's the situation: I have an exisiting system that first authenticates people via the aMemberPro package. In the "old days", aMemberPro then moved the user to a page inside a directory protected with .htaccess basic authentication. It used the URL format http://name:password@server.directory.page.html. When the IE6 update came out, this syntax no longer worked. As a workaround, the "name:password@" was removed. Now, users have to login to the aMemberPro page then login again to the protected content of the website. I have access to the userid and password. Is there a way that I can set things up right before the user is redirected to the server/directory/page.html inside the protected directory so the web server's authentication will be satisifed and the user will not be prompted again for userid/password? I've tried plugging values for $_SERVER[remote_user], but I still get prompted by the server for userid/password.
View Replies !
My User Auth Script
I'm not very good with regular expressions, so what would the regex look like to see if the username someone is trying to register contains only numbers, letters, and underscores? Secondly, I haven't liked sessions because they don't seem to work too well with the browser back button. I've decided to go with cookies instead. Any reactions to that? Problems I may encounter? Here's the code I wrote: PHP Code:
View Replies !
Auth NT Users From Linux
I am running an Apache Web Server on Redhat Linux 7.1. I need to limit access to certain web pages using NT domain accounts. The Linux box is not a part of the NT domain. I would like to use php to do the authentication. In other words, from the browser the user clicks a link. A php page is called and displays a login dialog box. The username and password are then checked against the NT domain controller. I know that the Logged User can be obtained from print_r($GLOBALS) if using IIS on NT but it doesn't work from Linux.
View Replies !
Presetting Auth User
I'm curious if anyone knows if it is actually possible to set the values of Auth_user and Auth_passwd The standard HTTP values of these.
View Replies !
Proxy Auth Using Fsockopen
Trying to make a connection via a proxy to another site using the fsockopen I can get it hitting the proxy server just can't get it through. I have user name and password to get through the proxy... but how exactly do I make it work using the fsockopen?
View Replies !
Http Auth Logout
i'm authenticating users with http auth. i'm interested in allowing users to log out, but can't seem to figure out how. currently i have a "log out" link that goes to logout.php PHP Code:
View Replies !
PHPLIB Session Auth
I am opening a session with page_open(array(sess=>mysess, auth=>myauth)) followed by page_close() on the same page all outside of HTML tags. I use this command on several pages. The trouble is, once I authenticate on the first page the next page prompts me to logon again, even though I hae already done so. I want to authenticate only once! Not every page that requires authentication.
View Replies !
Bugs In The PHP Auth Library
I've recently started integrating PHP Auth (http://php.rufy.com/) into my PHP application. I've had a few problem with it though: I've fixed two bugs, one of which was quite glaring - it basically stopped authentication working at all once you were logged in - such an obvious bug that I don't know how the author didn't have problems with it themself. Anyway, an email I sent to the author's address listed on the web page went answered, so I'm wondering if anyone else has had problems with PHP Auth? If it's really as buggy as this (and I'm not doing something stupid) I'll seek an alternative as my trust in this lib has waned. Has anyone else used PHP Auth before? Also have problems?
View Replies !
Extension Class To Auth
I have an extension Class to Auth and I'm looking for some folks to hammer on it a bit and give feed back. Class: AuthUser - add user (well, Auth does that now, so its gone) - remove user (well, Auth does that now, so its gone) - change password (well, Auth does that now, so its gone) - case sensitive ID match - some DBS don't - limit login attempts (as far as it can go on a browser) - return to original page after login next ver will have groups and level handling.
View Replies !
Sending Auth Email
Do I need some module to send emails with php or is there something built into apache that does this? I want to send some email authentication emails but not sure if I have to have some type of email host(which I don't on my web server). I assume its going to be impossible to do since I have no mail server to handle the transactions? I don't want to use a remote server either as its not that big a deal.
View Replies !
Auth Over Multiple Subdomains
let`s say i have 2 subdomains : x.domain.com and y.domain.com User comes and logins on x.domain.com ... everything is perfect, but while he is logged on he tryes to view y.domain.com ... now here the login is not valid anymore. (basically user authentification on multiple subdomains) I underline that both domains are using the same user/pass dbase, I do not want to resolve this by putting cookie into user pocket. I`ve seen something like handling sessions from mysql. I couldn`t find any good example on this whole internet, can anyone help me resolve this issue?
View Replies !
Session / User Auth
I did post the other week about some code I was having problems with, but seems I've just complicated it all, lol. I have a login page, with variables $do_user and $do_pass, both login fields. I have a confirmation login page, which checks data page. And I have the main control panel page, which I need to check to see if a login session is set. Is there anyone here who can provide me with a snip of code which does this? I have done everything, apart from the setting of the sessions, checking of the sessions, and destroying of sessions because when I did it my way, I just over-complicated it for myself.
View Replies !
Processing Http Auth From Outside Form?
I'm trying to make it possible to login from a cpanel account from my main site login. I found some code that opens up the socket, but how would I then display or redirect to that page? Just to reiterate what I'm trying to do, rather than having them type in: lonestarservers.com/cpanel/ and then have the http auth form popup, I want them to be able to type in their user and pass on the index.php page and have it process it for them without that http auth popup. Code:
View Replies !
PEAR::Auth 'REMEMBER ME' Feature
I use PEAR::Auth module to login my users. I noticed the lack of the 'remember me' feature (and the method 'setExpire' isn't enough). So I wonder HOW can I extend this package and provide the 'remember me' feature.
View Replies !
PEAR Auth - Check On Each Page
I have a framework working where I have multiple pages each checking the authentication status. Unauthorised users are redirected to a login page - otherwise the requested page is shown. Now my question is just to get a little clarification. On the login page I create and object of type Auth $a = new Auth("MDB2", $options, "loginFunction"); and then run $a->start(); Fine so far. Now at the top of the each authorised-only page I create a new Auth object and then check the auth status. $a = new Auth("MDB2"); if (!$a->checkAuth()) { HTTP::redirect("login.php"); } My question is that the new Auth object - $a - can be created with *any* parameters. It could even be: $a = new Auth("DB"); And the check works fine. Do I take it that the Auth object only needs the correct container and options set up when it runs the start() method? If the name/password come back in as POSTED correctly then start() will create session variables. And I take it that these session variables can then be checked by any old invocation of Auth?
View Replies !
|