Re: [PHP] PHP & Mysql
If this is a Sorce install you may need to recompile with MySQL support. -=>Adam<=- Quoting "Uma Shankari T." <[EMAIL PROTECTED]>: > > Hello , > > I am trying to connect mysql using php script like this > > $link= mysql_connect('$servername','$username','$password'); > > but it is giving Fatal error call to undefined function mysql_connect() > > I have checked wheather php is installed properly by using this > > phpinfo(); > > Everything is okay but it is displaying this error... > > > If anyone came to know the reason for this tell me as soon as possible > > > -Uma > > > > -- > 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] > - http://www.2ghz.net/ Welcome To the Future -- 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]
Re: [PHP] setting up a "members Login" section on a webpage.
There are many Auth packages already writen. If you need a sample peice of code E-mail me I use a small script that I wrote that does MySQL and Oracle, system level auth if this will help you out I will E-mail you the scrip and schema let me know. -=>Adam<=- Quoting Matthew Darcy <[EMAIL PROTECTED]>: > Hi, > > I am looking at getting users to input their details to be stored in mysql, > I would then like them to have to login to get access to certain functions > when they come back. > > Does anyone have a good idea on how to do this, > > is the best / only way to do this sessions ? > > This must be quite secure I don't really want this hacked. > > Look forward to peoples ideas. > > Matt. > > > -- > 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] > - http://www.2ghz.net/ Welcome To the Future -- 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]
Re: [PHP] PHP & Mysql
./configure --with-mysql ... other things to configure in ... This will use PHP's built in mysql support that is all you should need. then do a make, make install blah... -=>Adam<=- Quoting "Uma Shankari T." <[EMAIL PROTECTED]>: > > > Hello, > > How do i recompile with mysql support > > > -Uma > > > -- > 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] > - http://www.2ghz.net/ Welcome To the Future -- 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]
Re: [PHP] PHP & Mysql
If you recompile that will no effect any of the data in your DB if that is what you mean? -=>Adam<=- Quoting "Uma Shankari T." <[EMAIL PROTECTED]>: > > > Hello, > > Already i am having so many details in my mysql database.If i do this it > won't affect the previous one.. > > > -Uma > > > -- > 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] > - http://www.2ghz.net/ Welcome To the Future -- 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]
Re: [PHP] Secure User Auth
Well it depends what you want to do, Do they need to just get into the app or do they need to have different access levels? If they dont need access levels just use htaccess that should work out fine. -=>Adam<=- Quoting James Arthur <[EMAIL PROTECTED]>: > Hi > > I have a web site that needs a secure login system. > > Users of the system can SSH in to the server, and POP, IMAP, Postgres and > other services are provided, and I'd like the users to be able to log in to > > the site - obviously as securely as possible. Maybe using SSL + sessions? > > I have not used SSL or HTTPS before, and certainly not with PHP. Can anyone > > give me any suggestions? > > Thanks > > --jaa > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > - http://www.2ghz.net/ Welcome To the Future -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Secure User Auth
It wont matter if it is sent in clear text because at that point you are over https/SSL. The entire stream is encrypted. I understand the need for using the existing system. I think LDAP does look like a good way to go. -=>Adam<=- Quoting James Arthur <[EMAIL PROTECTED]>: > On Sunday 03 Feb 2002 17:43, Viper wrote: > > Well it depends what you want to do, Do they need to just get into the > app > > or do they need to have different access levels? If they dont need access > > levels just use htaccess that should work out fine. > > > > htaccess isn't secure enough, since it sends the password in plain text to > the server. Besides, the users already have accounts on the server, so it > would make more sense to authenticate against an existing system, like > IMAP/POP3. Doing that's easy enough, and also has the side effect that when > > they log in it tells them whether they have new mail or not. > > The problem is finding a way to enter login details that does not send the > password across the internet in plain text mode. The only way seems to use > SSL, but I don't know how to implement it. > > --jaa > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > - http://www.2ghz.net/ Welcome To the Future -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Interest in Project
Hi every one I am going to be working on a site that will contain hopefully a single point where people can get php class files, Sorce code help, and MySQL database help, Plus a kind of comunity for PHP. I know there are other site such as this but I would like to create a 1 place for all type site. It will be done in PHP and use a MySQL backend if any one is interested in getting in on this project please E-mail me at [EMAIL PROTECTED] I think it would be a great project. Thanks Guys. -=>Adam<=- - http://www.2ghz.net/ Welcome To the Future -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Interest in Project
I may have worded this wrong. The site will focus on PHP and the use of Databases with PHP, (Oracle, Postgres, MySQL, others...). I was typing fast and just threw MySQL out :) I do quite a bit of development in PHP and MySQL so I am most familiar with it. I am also very familiar with Oracle. I have yet to find a PHP help site that focuses on Databases and Code Repositorys Related specificaly to PHP and it's use with them. The main thing I want the site to be is a Community where people can come to get help and read articles about the Use Of PHP in the real world. That sound more interesting? :) -=>Adam<=- Quoting "Peter J. Schoenster" <[EMAIL PROTECTED]>: > On 10 Feb 2002, at 17:23, Viper wrote: > > > Hi every one I am going to be working on a site that will contain > > hopefully a single point where people can get php class files, Sorce > > code help, and MySQL database help, Plus a kind of comunity for PHP. I > > know there are other site such as this but I would like to create a 1 > > place for all type site. It will be done in PHP and use a MySQL > > backend if any one is interested in getting in on this project please > > E-mail me at [EMAIL PROTECTED] I think it would be a great project. > > Well I have no end of such places to find. I'm new to PHP. What > interests me much more is how to go about organizing my project. > I have such a system using mod_per/Perl. Perl also has > Mason/AxKit etc. ... I use my own which revolves around > HTML::Template. > > I was recently told about smarty as a templating system and I'm > going to give it a shot. I'm going to recreate my method in PHP > which I use in Perl as I just really, really don't like having these php > pages with programming in them all over the place. I like things to > be consolidated. > > I would suggest you start a site which is about THE WAYS of > DESIGNING solutions with PHP and MySQL (but why, why in the > world don't you just do it with PHP/RDBMS). There is more than > one way and yet I rarely in fact hardly ever find a site DISCUSSING > this. There are a lot of sites that say "this is our way" but most of > them don't even do that .. they just say download XYZ and there is > no question or discussion of their "way". > > Now, perhaps I've missed these sites, if so please bombard me > with the urls. Othewise, consider a site which does this. I have no > end of bookmarks for sites with the tactical questions. > > Peter > -- > http://www.coremodules.com/ > PETER J. SCHOENSTER > (901)-652-2002 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > - http://www.2ghz.net/ Welcome To the Future -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Interest in Project
I dont think any of us can break the E-mail habbit :) I agree with you there are alot of sites out there. That is a good idea to show ways to do things in different DB's sort of a DB centric site. I guess the main focus of the site is community help. Not only code snippet stuff. But Forums and E-mail help. The thing about PHP is it is a relativly new language and alot of people need help with it. So a site that allows them to comunicate directly with some "experts" can help them greatly. Also looking at code snippets with articles like phpbuilder helps people alot when the get stuck. I will let you know when it goes up :) Thanks for all your ideas. -=>Adam<=- Quoting "Peter J. Schoenster" <[EMAIL PROTECTED]>: > On 10 Feb 2002, at 21:17, Viper wrote: > > > I may have worded this wrong. The site will focus on PHP and the use > > of Databases with PHP, (Oracle, Postgres, MySQL, others...). I was > > typing fast and just threw MySQL out :) I do quite a bit of > > development in PHP and MySQL so I am most familiar with it. I am also > > very familiar with Oracle. I have yet to find a PHP help site that > > focuses on Databases and Code Repositorys Related specificaly to PHP > > and it's use with them. The main thing I want the site to be is a > > Community where people can come to get help and read articles about > > the Use Of PHP in the real world. That sound more interesting? :) > > Yes and No :) > > If you search say google for php/oracle/mysql/rdbms you'll have no end of > sites to visit. Everywhere I go I see small snippets of how to do this or > that. > > I'm thinking more on along these lines: > > > Smart Architectures in PHP > > Tim Perdue > > http://www.phpbuilder.com/columns/tim20001010.php3 > > although I think a site could go beyond that and just be smart architectures > > and then show/discuss etc. in Perl/PHP ... > > But heck, I think there is always room for more good sites. > > If you did more databases then it might be interesting to show the > differences between them. Mysql is evolving fast and it's been the one I > used most but I've also used postgresq and oracle. I've not used triggers or > > stored procedures AT ALL but I'm familiar with them and as a data model > grows in complexity it really seems easier to me to use such tools rather > than doing all the work in my programming language. I don't see this stuff > discussed much. I'd like to see these kinds of things. How you do X in > Oracle but is done like Y in MySQL, etc. > > I'm a little "scared" of your reference to "code repositories". I like CPAN > for > Perl and I guess Pear for PHP but I haven't gotten into it much as I'm still > > learning PHP. imho the OO approach with classes as black boxes is > much better than the "scripting" nature of Perl/PHP. "code repositories" > bring to mind cut and paste and I try and avoid that at all costs. > > Just my thoughts. I'd certainly like to know when your site goes live. I'm > too > busy to help with anything myself. Unemployed and spending all my time > trying to find work :) except I can't break my email habits :) > > Peter > > > > > > --- > "Reality is that which, when you stop believing in it, doesn't go > away". > -- Philip K. Dick > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > - http://www.2ghz.net/ Welcome To the Future -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to write and read serial or parallel port
hi all! is it possible to write and read data on a COM or LPT port? is there any function or class in PHP? anyone has already done something similar? thanks, viper -- + http://vipertechnology.dyndns.org () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments + http://vipertechnology.dyndns.org/cotnact/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to write and read serial or parallel port
many thanks! i'll try all your solutions to find the best one! On Thu, Jul 26, 2012 at 2:37 PM, Alex Nikitin wrote: > Real question is > why in the world would you want to use PHP for this to begin with. I > mean sure you can write your own vfat implementation in PHP, etc, etc, > but it doesn't mean that it's a good idea to do so. i know i can write something in c or c++ then use shell_exec, but this's just an experiment to test PHP vs COM/LPT On Thu, Jul 26, 2012 at 1:24 PM, Lester Caine wrote: > Talking in and out of the serial port is not too difficult but is OS > dependent, so what are you wanting to run on? i'll test both win and linux with a sort of xPlataform script :) regards, viper -- + http://vipertechnology.dyndns.org () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments + http://vipertechnology.dyndns.org/cotnact/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SSHA Password Encryption
On Mon, Oct 1, 2012 at 1:01 PM, Coşkun Bağrıaçık wrote: > Hi guys, > > I wanna change password into ldap directory, but password's encryption is > SSHA. > How do I encrypt the string to SSHA from php ? http://php.net/manual/en/function.sha1.php look @ user contribuited notes for "SSHA LDAP password generation algorithm for standard PHP > 5.0 " $salt = sha1(rand()); $salt = substr($salt, 0, 4); $hash = base64_encode( sha1($password . $salt, true) . $salt ); return $hash; -- + http://vipertechnology.dyndns.org () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments + http://vipertechnology.dyndns.org/cotnact/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Serving an image
On Mon, Oct 15, 2012 at 5:48 PM, Rick Dwyer wrote: > I am sending an email with a logo at the top of the email. The source of the > image for the logo is: > > http://myurl.com/image.php?id=5 > > Image.php then calls a function that simply returns the following: > > > > $image='http://myurl.com/images/logo.jpg"; />'; > return $image; > > > > Calling the page directly via the URL http://myurl.com/image.php?id=5 works > fine. > But when the email is opened, I get the broken link/image icon even though I > can see in my source that the URL which works when loaded into a browser. > > What needs to be done to serve that image to a email client when it is opened? in image.php you should return an image/xxx file and not an HTML tag. try something like this: image.php: $im = imagecreatefrompng("test.png"); header('Content-Type: image/png'); imagepng($im); imagedestroy($im); then in your email you can put: http://myurl.com/image.php?id=5"; /> -- + http://vipertechnology.dyndns.org () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments + http://vipertechnology.dyndns.org/cotnact/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Serving an image
On Tue, Oct 16, 2012 at 7:40 AM, Jan Ehrhardt wrote: > Many receiving e-mail clients will not show external images. External > images are used by spammers to trach if a message is read. true; you could embed images in email.. http://www.campaignmonitor.com/blog/post/1761/embedding-images-in-email/ so you could use this (or similar) to write the email: echo ''; (i don't know if it works :D ) viper -- + http://vipertechnology.dyndns.org () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments + http://vipertechnology.dyndns.org/cotnact/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php