[PHP] Retaining data across multiple sites
I want to retain some data across my sites, which have different domain names. I can't use cookies because they rely on the domain name, and I'd rather not pass the information on every link Any suggestions? -- Ben Sinclair -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Retaining data across multiple sites
I could do that, but how would I keep track of the users? I don't think IP addresses are reliable. I would also prefer to limit my database access. -- Ben Sinclair - Original Message - From: Chris Boget [EMAIL PROTECTED] To: Ben Sinclair [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 10:37 AM Subject: Re: [PHP] Retaining data across multiple sites I want to retain some data across my sites, which have different domain names. I can't use cookies because they rely on the domain name, and I'd rather not pass the information on every link Any suggestions? Need to store it server side somehow. Perhaps a global database? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Retaining data across multiple sites
These are all workable solutions, but I also have to worry about https sites. If I link to hidden images on non-secure servers, the browser will display a warning. I'm also trying to avoid buying multiple certificates when all I want to do is brand a site. -- Ben Sinclair - Original Message - From: Christopher William Wesley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Ben Sinclair [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 11:27 AM Subject: Re: [PHP] Retaining data across multiple sites On Wed, 20 Feb 2002, Ben Sinclair wrote: I want to retain some data across my sites, which have different domain names. I can't use cookies because they rely on the domain name, and I'd rather not One way I handle this ... it's a work-around, so it's not all that pretty: In the doc root on all the domains, I keep a script which just prints out the cookie names values for any cookies accessible by the domain ... as -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Large File Uploads
I'm having some trouble with a file upload script that runs over SSL. It seems that the file is kept in memory while being uploaded and then flushed to disk as a temp file. This is fine, but when you are dealing with large files, you can run out of memory. Apache (or PHP?) also doesn't seem to recover from large file uploads very well. After uploading a few large files (30MB to 300MB), the httpsd process continues to use ~400MB. If I let it go long enough, with the machine swapping, the script will eventually come back but it acts like there was no file uploaded. Does anyone have suggestions? I need for my users to have the ability to upload large files over a SSL connection using common browsers. I can't make them run applets or use an insecure method for doing these transfers. -- Ben Sinclair [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0
Maybe there was a permissions problem? -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 9:34 AM Subject: [PHP] Warning: Failed opening '' for inclusion (.) in Unknown on line 0 Hiya Everyone! I'm a little baffled on what is happening. I'm using Apache on the UNIX machine. When I built the website, everyone work okay. Then I accidently remove part of the web directory because I was in the wrong directory at that time. So, I had to restore the lost directory from the tape backup. All of the deleted file had been restored. Then that's when this problem came up. I kept getting the error message on some files with a Warning: Failed opening '...' for inclusion () in Unknown on line 0. I did some troubleshooting but with no luck. Can someone tell me what the problem is? Have I overlooked something? Thanks, Scott -- 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]
Re: [PHP] getting a LAMP job in this economy
You could switch to Java. At least with Java you will learn something that doesn't depend on Windows, but is still needed by Windows users. Not that there is a huge market for Java developers right now either... -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Vincent Stoessel [EMAIL PROTECTED] To: Php General Mailing List [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 3:51 PM Subject: [PHP] getting a LAMP job in this economy On another list that I am on someone made this very bold statement: I've seen a lot of jobs for ColdFusion Oracle or MS SQL server experience combinations. Don't let anyone fool you, PHP/MySQL is not going to land you a job [;)] now, as someone that was making avery good living doing Linux based web application development last year and now among the jobless I am beginning to question the validity of having all of my eggs in the LAMP (linux apache mysql php) basket. I just recently built a NT4 to do some win based development on. I still have not installed any development enviroment cause it just feels so alien. Has anyone else out there feeling the pressure of going to the win32 side to pay the bills. Thoughts? -- Vincent Stoessel [EMAIL PROTECTED] Linux and Java Application Developer (301) 362-1750 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica -- 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]
Re: [PHP] That one doesn't work!
So you want to know how to justify text? This is not a PHP question. HTML documentation: http://www.idocs.com/tags/ -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 4:11 PM Subject: [PHP] That one doesn't work! Hi! That one doesn't work! The new line does work, but the data doesn't work like a margin alignment or something. Like a type writer format where everything fit in nicely, not one line that are too short and the next line that are too long. Just that at the end of each line that is perfectly lined up with each other. Thanks, Scott -- 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]
Re: [PHP] What do you mean?
Yes, there is a function that cleans up carriage returns and line feeds by changing them to BR's. There is no function to magically justifty text. Find some HTML documentation and output the HTML to justify your text. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 4:24 PM Subject: [PHP] What do you mean? What do you mean? There is a php function that can clean up the carriage return and line feed. There's a php function somewhere that will fix up the amount of spaces for each lines to make the end of each line to be all aligned. So, what would it be? Thank, Scott -- 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]
Re: [PHP] function arguments
You can do something like this: function myFunction($a = hello, $b = world) { } Both arguments are optional and have default values. This is in the documentation. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Malte Fucks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 18, 2001 2:17 PM Subject: [PHP] function arguments Hi, how do i tell a function which arguments can be passed and which must be passed... example: function func($arga, $argb, $argc) { do_something_with_arga; do_another_thing_with_argb; and_if_argc_was_passed_do_something_with_it_too; } because i dont want to pass argc if i dont need it, and to pass void arguments like '' is annoying... -- 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] Passing PHP Variables
Either use sessions or pass it via POST in using a form. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: John (News) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 4:48 PM Subject: [PHP] Passing PHP Variables I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed visibly within the url. Does anyone have any suggestions on how I can accomplish this? Hippie. -- 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]
Re: [PHP] Redirect?
header(Location: http://www.blah.com;); Just be sure that output hasn't already started before you send the header. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Henrik Johansson [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 10:01 AM Subject: [PHP] Redirect? Hi! How do I do a redirect to a different location in PHP? Regards Henrik Johansson -- 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] Mail() Timeout
Is there a way to shorten the timeout for the mail() function? Currently it will wait too long when it is unable to send mail, causing the browser to appear to hang. -- Ben Sinclair [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]
Re: [PHP] Mail() Timeout
I changed my sendmail line to: sendmail_path = /usr/sbin/sendmail -t -i -O DeliveryMode=q That should place it in the queue instead of trying to send it immediately, right? It doesn't seem to work though... It still just sits there when it can't send the mail. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Ben Sinclair [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 3:45 PM Subject: Re: [PHP] Mail() Timeout Fix your sendmail flags in your php.ini file to just queue up the mail. On Wed, 16 Jan 2002, Ben Sinclair wrote: Is there a way to shorten the timeout for the mail() function? Currently it will wait too long when it is unable to send mail, causing the browser to appear to hang. -- Ben Sinclair [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]
Re: [PHP] Mail() Timeout
I just noticed from phpinfo() that sendmail_path reads: /usr/sbin/sendmail -t -i -O DeliveryMode Did it really drop the =a or is it just a problem with phpinfo()? -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Ben Sinclair [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 4:13 PM Subject: Re: [PHP] Mail() Timeout I changed my sendmail line to: sendmail_path = /usr/sbin/sendmail -t -i -O DeliveryMode=q That should place it in the queue instead of trying to send it immediately, right? It doesn't seem to work though... It still just sits there when it can't send the mail. -- 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] Mail() Timeout
Placing it in quotes made it show up correctly in phpinfo(), however it still sits there if the email address is bad. For example, a domain that doesn't resolve. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Ben Sinclair [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 4:15 PM Subject: Re: [PHP] Mail() Timeout I just noticed from phpinfo() that sendmail_path reads: /usr/sbin/sendmail -t -i -O DeliveryMode Did it really drop the =a or is it just a problem with phpinfo()? -- 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] Padding with mcrypt_generic
That would work for me, but I have to deal with many files that I have already encrypted and no longer know the correct sizes of. My search and replace for the padding characters doesn't work because the files sometimes contain those padding characters. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Joe Conway (wwc) [EMAIL PROTECTED] To: Ben Sinclair [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 14, 2002 7:55 PM Subject: Re: [PHP] Padding with mcrypt_generic I worked around this by padding the plaintext myself. Basically, add NUL (character 0) bytes so that your plaintext becomes an exact multiple of blocksize. Then change the very last byte to the number of padding bytes used. If the plaintext is already an exact multiple of blocksize, then pad with an entire block. On decryption, reverse the process, and you'll have your original string back exactly the way you started. -- 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 Errors?
It is possible to disable error reporting, but you would probably remember doing it. Another possiblity is your page having tables that are not closed because the script has stopped on an error, and your browser doesn't know how to render the page. View the source to the page, the error might be in there. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Devin Atencio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 11:14 AM Subject: [PHP] PHP Errors? Dear PHP Group, I noticed that recently when one of my PHP scripts has a problem that it doesn't display to the browser screen any more the 'parse error near line 5' or whatever to the screen it just comes up with a blank page. I am using PHP 4.1.1 and I didn't know if something changed that I was unaware of to why the webpages no longer show the error message? __\/__ . / ^ _ \ . |\| (o)(o) |/| #.OOOo--oo--oOOO.---# # # # Devin Atencio [EMAIL PROTECTED] # # Sys Admin Dept # #_Oooo._# .oooO ( ) ( )) / \ ((_/ \_) -- 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] Padding with mcrypt_generic
I'm trying to use mcrypt_generic and it works fine except it pads the data with ^@'s when, according to the manual page, the length of the data is not n * blocksize. I've been trying to remove the padding from my decrypted data using something like $string = str_replace(^@,,$string);, but it doesn't seem to work right (^@ is a single character, not just ^ . @). Has anyone had to do this before and found a solution? -- Ben Sinclair [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]