[PHP] Importing emails
Hi, I am trying to set up a system whereby users can send data, in a pre-determined format, to a specified email address. I would then like to import the contents within each email into a database. The trouble I'm having is not knowing really where to start. Could any kind sole point me in the right direction. I've done a search of the site, but nothing has come up. Regards Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Stripping specific tags
Hi, I was wondering is there a way to strip ONLY the tags that you specify from a page, rather than having to include all the tags you do want (using strip_tags() ) Cheers Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Reversing the Colour.
Hi, I have a site whereby the user can select the colour of links for their individual sections. What I would like to do is to get the exact opposite colour of the one that they choose and use that in the 'hover over' option of the tag. The value for the colour is stored in hex. To add to this, the user can also choose the background colour. I have made sure that they cannot have the same background colour as colour of the link, but obviously if the background colour is the exact opposite of the link colour, then when they hover over the link, it would 'disappear'. In this case I would like to choose HALFWAY between the two sets of colours. I know that this might not always produce the best colour combinations, but I'm trying to get it so that the links always 'stand out'. I cannot let them choose the colour of the 'Hover Over' option unfortunately. Any suggestions as to how to achieve this, especially the calculations, or for that matter improve upon it, would be most appreciated. Regards Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 'Embedding' a PDF file
Hi, I've got a couple of questions relating to PDF files. Firstly, to display a PDF file in your browser, I presume that you must have a 'plug-in' installed? Secondly, is it possible to display a PDF file within a table, as I have only ever seen them fill up the entire browser? TIA Alexis -- 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]
[PHP] Invalid Email Characters
Hi, Could anybody confirm exactly which characters, if any, are NOT valid in an email address. Many Thanks Alexis -- 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]
[PHP] Registering an Array in a Session
Hi, I am trying to register an array in a session, but am having no luck. What I have is a form with set fields on which is processed a certain number of times. Upon submitting the form each time, I run the following: session_register("fieldtext[".$page."]"); where fieldtext is the name of a field on the form, and $page is the page number, which increases by one each time the form is submitted. All I get registered is the last value submitted on the form, all the previous values are null. Any advice would be most appreciated. TIA Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Converting Text to Hyperlinks
Hi All, I am designing a News board and wish to convert any text beginning with 'http://' into a hyperlink, when displayed on the page. I have converted all the HTML tags (htmlspecialchars) before saving the data. I can do the initial bit fine (adding the ) before the start of the link, but I am having great difficulty in adding the closing tag. The main problems I am having are: i) If there is more than one link. ii) If the User has entered the link with the correct HTML in the first place, I just want to convert it back into HTML (Obviously they would need to have entered the 'http://' part of it. iii) If there is a line break at the end of the link, opposed to a space. I am presuming that there are no spaces in the link for this one. I have been going round in circles for quite a few hours now, but just don't seem to be progressing, so any help anyone can offer will be very much appreciated. Regards Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PDF Load Problem
Hi, One user to a site I have developed has complained that when they are trying to view a PDF file on the site, that the server is closing the connection with the browser window before the page has loaded. The file is only 13 pages long and has a few very small images in it. What I was wondering was whether anyone else has come across this sort of problem, and if so, what advice would they be able to give to speed up the loading/storage of PDF files. Many Thanks Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Finding out document type for a stored file.
Hi all, I am trying to find out what the mime type is for files that are stored on my webserver, so I can convert the contents into a database. Basically, if it is in 'text/richtext' format I want to run one routine, if it's in 'application/msword' format another routine, and everything else another. I can retrieve this fine when a user uploads a file to the server, by using the '' command ($userfile_type), but I am stuck when retrieving the file from the server. All I can think of is to 're-upload' the file, but there must be a more efficient way. Any help would be most appreciated. Many thanks Alexis -- 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]
[PHP] Uploading Word Document problem
Hi All, I have a site whereby you can upload a Resume in Word or Text format, but for certain Word documents, the upload process just times out. Has anyone else come across this problem, and if so any suggestions? Many Thanks Alexis -- 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]
[PHP] Array problem
Hi, I am having big problems with merging two arrays. I just can't seem to get my head around it. I have two arrays which I wish to merge, but I want to EXCLUDE duplicate values. Any suggestions, as my numerous attempts have proved unsuccessful. BTW I'm using PHP4. Many thanks Alexis -- 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] Commercial sites that use PHP
Yahoo certainly uses PHP for at least some of it's workings. On a rare occasion that it was down, I saw a PHP error message being displayed. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] p.net]On Behalf Of Brent Langston Sent: 10 April 2001 17:31 To: [EMAIL PROTECTED] Subject: RE: [PHP] Commercial sites that use PHP Does anyone know what Yahoo uses? It's obviously some form of scripting... especially at http://my.yahoo.com. I've always been curious about what they are using as their parser... it appears to spit out pure HTML, so it acts like PHP... Any thoughts? -Original Message- From: Michael Stearne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 9:27 AM To: Phillip Bow Cc: [EMAIL PROTECTED] Subject:Re: [PHP] Commercial sites that use PHP Along with VaLinux.com and all new VA sites. Penguin Computing dies too. Michael On Tuesday, April 10, 2001, at 12:20 PM, Phillip Bow wrote: > Well since nobody else has chimed in(barring the fact it may be in one > of > the already recommended lists) sourceforge is made with php, and is a > pretty > noteworthy site. > -- > phill > > "Phil Labonte" <[EMAIL PROTECTED]> wrote in message > 1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE">news:1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE... >> Can anyone send me a list of large commercial web sites that use PHP? >> >> I am trying to move to PHP here at work but I need some examples to > impress >> the boss!!! >> >> Thanks >> >> -- >> 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: php-list- >> [EMAIL PROTECTED] >> > > > -- > 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] > -- 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] -- 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] -- 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]
[PHP] Apache configuration
Hi, I am having problems in trying to configure Apache on my PC correctly. FYI I am using Win95 and PHP4. I have configured Apache so that it will run PHP scripts, however when I try to start a session I get the following messages: --- Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m (2) in d:\apache\htdocs\session.php on line 2 Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 I can see that the script cannot locate the '/tmp' directory. What my question is where does this '/tmp' directory need to be created and do I need to update the 'httpd.conf' file accordingly, and if so where within it? Many thanks Alexis -- 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] Apache configuration
Problem solved, it turned out I had two php.ini files, one for PHP3 on my c drive and one for PHP4 on my d drive. Many thanks to all who replied Alexis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] p.net]On Behalf Of Jon Haworth Sent: 11 April 2001 14:14 To: Php-General@Lists. Php. Net Subject: RE: [PHP] Apache configuration /tmp is the directory used on Unix systems to store session info. On a windows box you will need to change it to something like c:\temp or c:\apache\sessions. IIRC it's in your php.ini file, not httpd.conf. HTH Jon -Original Message- From: Alexis Antonakis [mailto:[EMAIL PROTECTED]] Sent: 11 April 2001 12:56 To: Php-General@Lists. Php. Net Subject: [PHP] Apache configuration Hi, I am having problems in trying to configure Apache on my PC correctly. FYI I am using Win95 and PHP4. I have configured Apache so that it will run PHP scripts, however when I try to start a session I get the following messages: --- Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m (2) in d:\apache\htdocs\session.php on line 2 Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 I can see that the script cannot locate the '/tmp' directory. What my question is where does this '/tmp' directory need to be created and do I need to update the 'httpd.conf' file accordingly, and if so where within it? Many thanks Alexis ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] -- 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]
[PHP] Search in Progress
Hi, I am developing a simple site, in PHP4, which has three frames on it. The first gives you the search options and the second two, the results. What I was wondering was, while the database is being searched, is it possible to display some text in the 'results' frame stating that the search is in progress? I also have another site which I would like do this on, however this one, rather than using frames, uses tables, and it is only when the entire set of data for each table has been retrieved that the page is actually displayed. Any suggestions would be most appreciated Alexis -- 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]
[PHP] Search in Progress
Hi, I am developing a simple site, in PHP4, which has three frames on it. The first gives you the search options and the second two, the results. What I was wondering was, while the database is being searched, is it possible to display some text in the 'results' frame stating that the search is in progress? I also have another site which I would like do this on, however this one, rather than using frames, uses tables, and it is only when the entire set of data for each table has been retrieved that the page is actually displayed. Any suggestions would be most appreciated Alexis -- 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]