Re: [PHP] printing out messages while processing a file
On Wed, 23 Jun 2004 08:34:17 +0200, Merlin <[EMAIL PROTECTED]> wrote: > > I am writing a backup_restore file which creates directories and picture files > with different resolutions out of an original file. > > After each process completes I would like to print out a [ok] message, but > unfortunatelly it prints those msg out only when the script is completely > through and done. > > How can I echo out status messages? > > The script is run by console php. ( I also noticed that \n or does not work > for the console?!) $stdout = fopen('php://stdout', 'w'); fwrite($stdout, "status message goes here\r\n"); Why would you want to print tags in a console? The console isn't HTML aware. You probably just want \r\n as line delimiters. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] printing out messages while processing a file
Hi there, I am writing a backup_restore file which creates directories and picture files with different resolutions out of an original file. After each process completes I would like to print out a [ok] message, but unfortunatelly it prints those msg out only when the script is completely through and done. How can I echo out status messages? The script is run by console php. ( I also noticed that \n or does not work for the console?!) Thank you for any help, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How to add carriage returns??
nl2br I think is what you wnat. http://www.php.net/manual/en/function.nl2br.php Brent Clements wrote: > Ok I have a general problem. > > I have a textarea on an html form. > > Well when the user get's to the end of the textarea, it wrap's around. The problem > with this is that unless they do a carriage return, the text entered into the > textarea is a very long line. So when ever they submit the form, the string in the > textarea is just one long line without newlines or carriage returns. > > How do I add linefeeds every few words? > > Thanks, > Brent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OT? Getting peer reviews for an entire application
On Wed, 23 Jun 2004 01:22:40 -0500, Jason Barnett <[EMAIL PROTECTED]> wrote: > > I have a netiquette question here. I haven't finished it yet (nor am I > even at a prototype level) but eventually I'd like some people to review > something that I'm working on. After all isn't this what open source is > all about? :) However, I wasn't sure if this list would be an > appropriate place to ask people to do this. I'm not really looking for > people to help me "accomplish task X" as much as I'm looking for people > to just make suggestions for general code improvement. > > So, where else might I find people that are willing to give general > reviews of code? Release it on Freshmeat.net. The reviews (and bug reports) will arrive shortly. You can also do all sorts of developer networking on Sourceforge.net. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] OT? Getting peer reviews for an entire application
I have a netiquette question here. I haven't finished it yet (nor am I even at a prototype level) but eventually I'd like some people to review something that I'm working on. After all isn't this what open source is all about? :) However, I wasn't sure if this list would be an appropriate place to ask people to do this. I'm not really looking for people to help me "accomplish task X" as much as I'm looking for people to just make suggestions for general code improvement. So, where else might I find people that are willing to give general reviews of code? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MySQL question
I would have at least expected it give me 'margaret atwood' before it gives me 'margaret' and then 'atwood'. > Sorry, MySQL question. Any takers? If I search for 'margaret atwood', I get results > in no real structured heirachy. Any thoughts? > > BOOLEAN MODE);>Search ccl.ccl_main For: color="blue">margaret atwood - 275 record(s) found John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MySQL question
Sorry, MySQL question. Any takers? If I search for 'margaret atwood', I get results in no real structured heirachy. Any thoughts? Search ccl.ccl_main For: margaret atwood - 275 record(s) found John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to add carriage returns??
On Wed, 23 Jun 2004 00:47:23 -0500, Brent Clements <[EMAIL PROTECTED]> wrote: > > How do I add linefeeds every few words? php.net/wordwrap -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to add carriage returns??
Ok I have a general problem. I have a textarea on an html form. Well when the user get's to the end of the textarea, it wrap's around. The problem with this is that unless they do a carriage return, the text entered into the textarea is a very long line. So when ever they submit the form, the string in the textarea is just one long line without newlines or carriage returns. How do I add linefeeds every few words? Thanks, Brent
Re: [PHP] Re: opening Adobe pdf's
* Thus wrote Scott Taylor: > > Thus Curt Zirzow & I wrote: > > >> > >> header("Content-Type: " . $type); > >> header("Accept-Ranges: bytes"); > > > > > > >Becareful sending this header. The client can get confused and > >send special headers requesting a partial file, while also > >expecting different results than the whole file. > > > Which header? The "Accept-Ranges" header? Should I just not include it? Correct. That header will tell the client that you're willing to send the file to them from where ever they want, instead of the beginning of the file. > > > > >> header("Content-Length: ".filesize($file)); > >> header("Content-Disposition: attachment; > >>filename=".basename($file).";"); > >> //readfile($file); > >> $fp = fopen($file, 'rb'); > >> $buffer = fread($fp, filesize($file)); > > > > > > >You'll be much better off if you use fpassthru here. This fread > >could kill you're machine's memory. > > ... > > $fp = fopen($file, 'rb'); > $buffer = fpassthru($fp); > fclose($fp); > exit(); To be safe, check to be sure that $fp is valid and see if there was an error with fpassthru: if ($fp) { $sent = fpassthru($fp); if ($sent === false) { // there was an error } fclose($fp); } > > Yet in IE if I choose to 'open' the file instead of saving it, it asks me > that question twice. I'm wondering if that will cause an error on an older > version of i.e. or any other browser. I've had the double question problem a while back, but unfortantly I dont recall what the problem was. I usually tend to just 'Save' things because I don't generally like the browser opening things for me :) Although, In the real world, people proably tend to open things (hence all their viruses). But besides all my lecturing... It could be possible to send an inline file instead: Content-Disposition: inline; filename="yadayada"; > On php.net, it gave this code: > |// open the file in a binary mode > $name = ".\public\dev\img\ok.png"; > $fp = fopen($name, 'rb'); > > // send the right headers > header("Content-Type: image/png"); > header("Content-Length: " . filesize($name)); > > // dump the picture and stop the script > fpassthru($fp); > exit;| > > > > basically the same code, but without an fclose(); could this be doing it? That example code is bad. The most suspect thing is the Content-disposition header. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: I don't want to use include
Qt wrote: Dear Sirs, When I use include, my script is waiting included script results. But I just want to run another local script without wait result. Which command I should to use? Best Regards Are you hoping to set up a task as part of a batch for later processing? There are several ways you could do this. You can set up crontab / scheduled tasks to run a script every so often. Then just make sure the script has a datafile / directory that can run all of the tasks at the scheduled time. If this isn't what you're trying to do, leave a message here and give us a better idea of why you want to run the script without waiting and what you intend to do with the result of the "included" script. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: opening Adobe pdf's
Thus Curt Zirzow & I wrote: header("Content-Type: " . $type); header("Accept-Ranges: bytes"); Becareful sending this header. The client can get confused and send special headers requesting a partial file, while also expecting different results than the whole file. Which header? The "Accept-Ranges" header? Should I just not include it? header("Content-Length: ".filesize($file)); header("Content-Disposition: attachment; filename=".basename($file).";"); //readfile($file); $fp = fopen($file, 'rb'); $buffer = fread($fp, filesize($file)); You'll be much better off if you use fpassthru here. This fread could kill you're machine's memory. Curt I switched my code to look like this: /*old code: fp = fopen($file, 'rb'); $buffer = fread($fp, filesize($file)); fclose($fp); print $buffer; exit(); */ $fp = fopen($file, 'rb'); $buffer = fpassthru($fp); fclose($fp); exit(); Yet in IE if I choose to 'open' the file instead of saving it, it asks me that question twice. I'm wondering if that will cause an error on an older version of i.e. or any other browser. On php.net, it gave this code: |// open the file in a binary mode $name = ".\public\dev\img\ok.png"; $fp = fopen($name, 'rb'); // send the right headers header("Content-Type: image/png"); header("Content-Length: " . filesize($name)); // dump the picture and stop the script fpassthru($fp); exit;| basically the same code, but without an fclose(); could this be doing it? Best Regards, and thank you so much for the help, Scott Taylor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with eregi
* Thus wrote Tom Z. Meinlschmidt: > On Tue, Jun 22, 2004 at 10:08:37PM +0300 Robin Vickery [EMAIL PROTECTED] wrote: > > On Tue, 22 Jun 2004 14:57:28 -0400, Ryan Schefke <[EMAIL PROTECTED]> wrote: > > > > > > Could someone please help me with an eregi statement. > > > > > > I have a string that can vary as such: > > > > > > client1/album/album_121-2132_IMG.JPG > > > > > > ... > > > > > > I want to select whatever comes after the last forward slash, like > > > album_121-2132_IMG.JPG > > > > preg_match('#client[[:digit:]]+/album/(album_[[:digit:]]{3}-[[:digit:]]{4}_IMG\.JPG)#i', > > $string, $matches); > > too complex. > > eregi("\/([a-z0-9_-]*\.jpg)$", $string, $arg) is good enough :) Still too complex. basename('client1/album/album_121-2132_IMG.JPG'); Curt -- Feels like he's filling Mr Holmes shoes right now :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Session problem
* Thus wrote Nadim Attari: > > > I have a problem with sessions. If someone closes their internet explorer > > window without logging off the session remains open. When you try to go > > back to the site IE hangs until I manually remove the sess_ files from > > the /tmp directory. Any insights on this one?? > > > > VR/Tim > > http://www.php.net/setcookie > (find 'expire' in this manual) Actually you want: http://php.net/session Under cookie_lifetime. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Image Uploader
Sean Vasey wrote --- napísal:: // variables $imagesize = getimagesize($image); // some code removed if ($img[$i] == "$gif") // if gif file type { $image[$i] = $image[$i] . "-" . "$rand" . ".gif"; } So is $image a filename or an array? > // begin checks and upload if successful > if ($_REQUEST['submitted']) // if hidden field, submitted, is obtained on request, begin processing > { Are register_globals on or off? @copy($image[$i], "$uploadpath/$image[$i]") or $result .= "$image[$i] could not be copied to the server. Please try again!"; Always use move_uploaded_file() instead of copy(). copy() will not work if safe mode is on. And remove @ while debugging. if (file_exists("$uploadpath/$image[$i]")) Do you really want to save the file with the assigned random name? Please, read http://sk2.php.net/manual/en/features.file-upload.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: is there any application , by using i can produce php exe files in windows ?
That is thrue, but there are some experiments with compiling the scripts into self running exe's. There are a nice tutorial available somewhere made by probably the only one who has managed to do this, :) Anywho, I remember one can use his precompiled files to create ones own EXE setups. Still, the problem at the time I experimented with it was that you get an extra DOS window which lies on the taskbar. This was a year ago, maby things have happened since then. -- -- Kim Steinhaug -- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. -- www.steinhaug.com - www.easywebshop.no - www.webkitpro.com -- "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kim Steinhaug wrote --- napísal:: > > Well, > > > > You could have a look at this one, http://gtk.php.net/ > > Though I never had the lucury of getting anywhere with it, it > > has the possibility to create standalone EXE. There is (Atleast the last > > time i checked) still a problem with the EXE opening an extra command prompt > > window, which makes it look abit "unprofessional" if your thinking of > > applying > > somthing for your business customer. > > > > That extension does not create exe files, they are normal php scripts > that use gtk functions. > > The "window issue" can be solved, there is some kind of wrapper available. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Encryption Question
Do you really need to use stripslashes when retrieving the data? Wouldnt stripslashes only affect magic quotes or already added slashes, I mean when you addslashes to the SQL the slashes are indeed removed when inserted in the table. -- -- Kim Steinhaug -- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. -- www.steinhaug.com - www.easywebshop.no - www.webkitpro.com -- "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jay Blanchard wrote: > > > Good morning gurus! > > > > I am encrypting some data on one server and now I am attempting to decrypt on another server using mcrypt_encrypt and mycrypt_decrypt (using same key and initialzation vector). It is almost working but I seem to still have a little problem, that data is missing the last character which still seems to be encrypted. I am putting the data in the database with addslashes, and retrieving with stripslashes, but I get things like this; > > > > 45221141¤Þ,]¹9Ñ > > 7775ÿåZ|z > > > > while($arrEncInfo = mysql_fetch_array($dbGetSub)){ > > $stripDataA = stripslashes($arrEncInfo['dataA']); > > $stripIV = stripslashes($arrEncInfo['iv']); > > $dataA = mcrypt_decrypt($encAlg, $encKey, $stripDataA, $encMode, $stripIV); > > echo $dataA . "\n"; > > } > > > > Has anyone seen this? Could there be a difference between the PHP installs? Both are version 4.3.7. > > > > Thanks! > > > > Jay > > You should probably use mysql_escape_string or mysql_real_escape_string > instead of addslashes and stripslashes. IMHO addslashes and stripslashes > are pretty much useless. > > -- > paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Image Uploader
[snip] I am trying to create an image uploader however, the code I have created doesn't seem to upload the images. If anyone sees any ways that I can get this to work or if you know any better ways, please let me know. [/snip] that is quit a bit of code. Are you getting any specific errors? have you looked at http://pear.php.net/package/HTTP_Upload ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Image Uploader
I am trying to create an image uploader however, the code I have created doesn't seem to upload the images. If anyone sees any ways that I can get this to work or if you know any better ways, please let me know. http://thephpstore.com # || || || \*==*/ // user defined variables $uploadpath = "/home/midweste/www/www/uploader/uploads"; // absolute path to destination folder $serverpath = "http://midwesternwebs.com/uploader/uploads";; // server path to uploads folder with no trailing slash (ex. http://thephpstore.com/uploads) $sizelimit = "yes"; // do you want a size limit on the upload? (yes or no) $size = "102400"; // if size limit, what is it? (in bytes) $uploads = "1"; // number of uploads (changing this is not recommended) // variables $imagesize = getimagesize($image); // begin checks and upload if successful if ($_REQUEST['submitted']) // if hidden field, submitted, is obtained on request, begin processing { // image mime types $gif = "image/gif"; // gif mime type $jpg = "image/pjpeg"; // jpg mime type $jpeg = "image/jpeg"; // jpeg mime type $png = "image/png"; // png mime type $xpng = "image/x-png"; // png mime type for internet explorer $bmp = "image/bmp"; // bmp mime type $tiff = "image/tiff"; // tiff mime type /* NOTE: You can also add more mime types to those listed above however you will also be required to make some more adjustments to the processing portion of the script where it checks if the submitted image matches the listed mime types. More directions are included in the install.txt and readme.txt files. Please consult them for more details. */ $result = ""; // make sure there is no result at this point $rand = rand(1, 9); // random number to at at end of filename for ($i = 0; $i < $uploads; $i++) { if (($img[$i] == "$gif") or ($img[$i] == "$jpeg") or ($img[$i] == "$jpg") or ($img[$i] == "$png") or ($img[$i] == "$xpng") or ($img[$i] == "$bmp") or ($img[$i] == "$tiff")) { if ($img[$i] == "$gif") // if gif file type { $image[$i] = $image[$i] . "-" . "$rand" . ".gif"; } if (($img[$i] == "$jpg") or ($img[$i] == "$jpeg")) // if jpeg file type { $image[$i] = $image[$i] . "-" . "$rand" . ".jpg"; } if (($img[$i] == "$png") or ($img[$i] == "$xpng")) // if png file type { $image[$i] = $image[$i] . "-" . "$rand" . ".png"; } if ($img[$i] == "$tiff") // if tiff file type { $image[$i] = $image[$i] . "-" . "$rand" . ".tiff"; } if ($img[$i] == "$bmp") // if bmp file type { $image[$i] = $image[$i] . "-" . "$rand" . ".bmp"; } } } for ($i = 0; $i < $uploads; $i++) { // check if a file was selected for upload if (!$image[$i]) { $result .= "You did not select an image for upload!"; } if ($image[$i]) // if an image was selected, make sure it meets requirements { // check if file already resides on server if (file_exists("$uploadpath/$image[$i]")) { $result .= "The image you attempted to upload already resides on the server. Please rename your image before continuing!"; } // c
Re: [PHP] Help with eregi
[snip] client1/album/album_121-2132_IMG.JPG client2/album/album_121-2132_IMG.JPG client59/album/album_121-2132_IMG.JPG client499887/album/album_121-2132_IMG.JPG I want to select whatever comes after the last forward slash, like album_121-2132_IMG.JPG [/snip] you could try without regular expressions $string = 'client1/album/album_121-2132_IMG.JPG'; $arr = explode('/',$string); print $arr[count($arr) - 1]; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with eregi
On Tue, Jun 22, 2004 at 10:08:37PM +0300 Robin Vickery [EMAIL PROTECTED] wrote: > On Tue, 22 Jun 2004 14:57:28 -0400, Ryan Schefke <[EMAIL PROTECTED]> wrote: > > > > Could someone please help me with an eregi statement. > > > > I have a string that can vary as such: > > > > client1/album/album_121-2132_IMG.JPG > > > > client2/album/album_121-2132_IMG.JPG > > > > client59/album/album_121-2132_IMG.JPG > > > > client499887/album/album_121-2132_IMG.JPG > > > > I want to select whatever comes after the last forward slash, like > > album_121-2132_IMG.JPG > > preg_match('#client[[:digit:]]+/album/(album_[[:digit:]]{3}-[[:digit:]]{4}_IMG\.JPG)#i', > $string, $matches); > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php too complex. eregi("\/([a-z0-9_-]*\.jpg)$", $string, $arg) is good enough :) /tom -- === Tomas Meinlschmidt, SBN3, MCT, MCP, MCP+I, MCSE, NetApp Filer & NetCache gPG fp: CB78 76D9 210F 256A ADF4 0B02 BECA D462 66AB 6F56 / $ID: 66AB6F56 GCS d-(?) s: a- C++ ULHISC*$ P+++> L+++$> E--- W+++$ N++(+) !o !K w(---) !O !M V PS+ PE Y+ PGP++ t+@ !5 X? R tv b+ !DI D+ G e>+++ h r+++ z+++@ === -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FWD: Help with PHP4.3.2 and XML
>= Original Message From "Eric L. Sammons" <[EMAIL PROTECTED]> = I am in the process of writing a PHP program. It is really quite simple, I have a form that I complete, the information is then to be saved into a simple XML file. When I do this in Java the XML file would appear simply as follows: 0 0 DL380 8th Floor 2 Customer Upgrade However, when attempting this in PHP I seem only able to get the following: The code I use to get this much follows: add_root("Server"); $root->set_attribute("Name", "pxtest01"); $el = $doc->create_element("Serial_Number"); $root->append_child($el); $text = $doc->create_text_node($el["00"]); $el->append_child($text); print htmlentities($doc->dump_mem()); ?> My question is a simple one I am sure; however, I have been unable to find the answer... How do I add a value or content to an element. For example: 000 While I am at it, is there an easy way to get the DOM to dump in a nicer more readible format? Thank you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with eregi
On Tue, 22 Jun 2004 14:57:28 -0400, Ryan Schefke <[EMAIL PROTECTED]> wrote: > > Could someone please help me with an eregi statement. > > I have a string that can vary as such: > > client1/album/album_121-2132_IMG.JPG > > client2/album/album_121-2132_IMG.JPG > > client59/album/album_121-2132_IMG.JPG > > client499887/album/album_121-2132_IMG.JPG > > I want to select whatever comes after the last forward slash, like > album_121-2132_IMG.JPG preg_match('#client[[:digit:]]+/album/(album_[[:digit:]]{3}-[[:digit:]]{4}_IMG\.JPG)#i', $string, $matches); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with eregi
Could someone please help me with an eregi statement. I have a string that can vary as such: client1/album/album_121-2132_IMG.JPG client2/album/album_121-2132_IMG.JPG client59/album/album_121-2132_IMG.JPG client499887/album/album_121-2132_IMG.JPG I want to select whatever comes after the last forward slash, like album_121-2132_IMG.JPG Thanks, Ryan
Re: [PHP] Re: Encryption Question
Jay Blanchard wrote: [snip] You should probably use mysql_escape_string or mysql_real_escape_string instead of addslashes and stripslashes. IMHO addslashes and stripslashes are pretty much useless. [/snip] That is an interesting take, why so? Because it can easily cause more problems than it fixes. Actually, it's also a part of my dislike for the magic_quotes system... At the very least, mysql_(real_)escape_string should be always used for mysql code instead of addslashes as it *will* do the right thing. -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Encryption Question
[snip] You should probably use mysql_escape_string or mysql_real_escape_string instead of addslashes and stripslashes. IMHO addslashes and stripslashes are pretty much useless. [/snip] That is an interesting take, why so? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Encryption Question
Jay Blanchard wrote: Good morning gurus! I am encrypting some data on one server and now I am attempting to decrypt on another server using mcrypt_encrypt and mycrypt_decrypt (using same key and initialzation vector). It is almost working but I seem to still have a little problem, that data is missing the last character which still seems to be encrypted. I am putting the data in the database with addslashes, and retrieving with stripslashes, but I get things like this; 45221141¤Þ,]¹9Ñ 7775ÿåZ|z while($arrEncInfo = mysql_fetch_array($dbGetSub)){ $stripDataA = stripslashes($arrEncInfo['dataA']); $stripIV = stripslashes($arrEncInfo['iv']); $dataA = mcrypt_decrypt($encAlg, $encKey, $stripDataA, $encMode, $stripIV); echo $dataA . "\n"; } Has anyone seen this? Could there be a difference between the PHP installs? Both are version 4.3.7. Thanks! Jay You should probably use mysql_escape_string or mysql_real_escape_string instead of addslashes and stripslashes. IMHO addslashes and stripslashes are pretty much useless. -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compiling with pfpro (Payflow) with new SDK for Linux
Hello, I think there has to be some compile issues with PHP and the newer Payflow SDKs from VeriSign [Linux]. There is no longer a Beta SDK apparently for any of the platforms. I have consistenly received the following error: "the pfpro extension requires version 2 or 3 of the SDK." I have attempted to find a workaround by altering the configure script, but have been unable to do so. I think some work on this would be appropriate as the information on php.net is out of date regarding a Beta SDK. Any help you could give to me would be much appreciated. Best regards, Christopher Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Firebird "reading data" error...
Connection timeout? André Cupini wrote --- napísal:: Hi people, ...first, sorry my poor english ;) I have a system that access firebird database in a remote machine. In development, works fine (with Firebird 1.0). But now, the database location is a real machine where the system are put up (with Firebird 1.5) and when i realize a query, in the functions ibase_fetch_*, i have a strange problem (maybe a bug?). When in return, are more then 2 result of "double precision" type, i get the following errors: *ibase_fetch_object(): Error reading data from the connection. *(In the ibase_fetch_object line) ** And in the bottom of page (in last line of of code): *Warning: Unknown(): Error reading data from the connection. in Unknown on line 0 *(I n ever see nothing like this... /unknown/??? /line 0/) ** When i switch the servers, the code works fine again. Anybody can help-me? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MySql Close problem
I suppose it was mysql_close that was a problem but I am not secure. I am new in this. I have tryed to made registration page. I wish to that you can use one nic name ony one time. I hav use the following code: You forgot to enter your name'; } else { $name = escape_data($_POST['name']); if (empty($_POST['email'])) { $email = FALSE; $message = ' You forgot to enter your email'; } else { $email = escape_data($_POST['email']); if (empty($_POST['username'])) { $username = FALSE; $message = ' You forgot to enter your username'; } else { $username = escape_data($_POST['username']); if (empty($_POST['password1'])) { $password1 = FALSE; $message = ' You forgot to enter your password'; } else { if ($_POST['password1'] == $_POST['password2']) { $password1 = escape_data($_POST['password1']); } else { $password = FALSE; $message = ' your password did not math'; } } if ($name && $email && $username && $password) // If everything's ok. $query = "SELECT usrid FROM users WHERE username='$username'"; $result = @mysql_query ($query); //Run the query if (mysql_num_rows($result) == 0) { // Make the query $query = "INSERT INTO users (username, name, email, password, registration_date) VALUES ('$username', '$name', '$email', '$password', NOW() )"; $result = @mysql_query ($query); if ($result) { // IF it ran OK // Send an email, if desired echo 'You have been registered!'; include("./footer.inc"); exit(); } else { // If it did not ron OK. $message = 'You cout not be registered due to a system error. We apologize for any inconvenience'; } } else { $message = 'That username is alredy taken.'; } mysql_close(); } else { $message = 'Please try again.'; } } // End of the main submit conditional. // Print the error message if ther is one if (isset($message)) { echo '', $message, ''; ) ?> Enter your information in the form below: Name Email Adress User Name Password Confirm Password but it dont work. If I take away al after mysql close to form_action it com the folloving error:Parse error: parse error on line 114 (it is on the end of the script). But when I set it back aganst the error massages coms on the line of mysql_close. Are ther someone that understand what I means?? Thanks for any proposal Erik Gjertsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Encryption Question SOLVED
[snip] I am encrypting some data on one server and now I am attempting to decrypt on another server using mcrypt_encrypt and mycrypt_decrypt (using same key and initialzation vector). It is almost working but I seem to still have a little problem, that data is missing the last character which still seems to be encrypted. I am putting the data in the database with addslashes, and retrieving with stripslashes, but I get things like this; 45221141¤Þ,]¹9Ñ 7775ÿåZ|z while($arrEncInfo = mysql_fetch_array($dbGetSub)){ $stripDataA = stripslashes($arrEncInfo['dataA']); $stripIV = stripslashes($arrEncInfo['iv']); $dataA = mcrypt_decrypt($encAlg, $encKey, $stripDataA, $encMode, $stripIV); echo $dataA . "\n"; } Has anyone seen this? Could there be a difference between the PHP installs? Both are version 4.3.7. [/snip] I found the problem on the field in question. I had left the column in the database the same length as it was prior to encrypting the data. This, as it turns out, is a BAD THING [tm]. Make sure that database columns are large enough to hold the whole of the encrypted data. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: I don't want to use include
You may want to use the exec() function. Please refer www.php.net/exec for more information Regards, Amit www.digitalamit.com Qt wrote: Dear Sirs, When I use include, my script is waiting included script results. But I just want to run another local script without wait result. Which command I should to use? Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error with PHP MySQL extension
Nguyen, Long P (Mission Systems) wrote: I didn't see a phpinfo, I do see mysql as below in the Configure Command section. So if I run "up2date php-mysql", it will update mysql extension? Where do I run this from, like the path? Sorry - I'm new to this. At the command prompt (and as root), run this $> rpm -qa | grep httpd If it responds with something like... httpd-2.x Then Apache was installed via RPM You can then do this at the command prompt $> up2date php-mysql And that will install the RPM for php/mysql. Restart Apache, and all should be fine and dandy. -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] .NFO files and .PNG images
hi, i'm having troubles converting ascii extended symbols, for exaple one of them looks like that 'Ü' in win, but in unicode, or old ibm dos extended ascii its black box. most of ascii art using this and sign like that. what id like to do is create dynamic .png image with content of some ascii file. so far i have no luck, i spent whole night and i cant find a way to convert those symbols. iny ideas? please help ;) -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error with PHP MySQL extension
I didn't see a phpinfo, I do see mysql as below in the Configure Command section. So if I run "up2date php-mysql", it will update mysql extension? Where do I run this from, like the path? Sorry - I'm new to this. System: Linux daffy.perf.redhat.com 2.4.18-11smp #1 SMP Thu Aug 15 06:41:59 EDT 2002 i686 i686 i386 GNU/Linux Build Date: Sep 3 2002 05:25:09 Configure Command: './configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs' -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 10:04 AM To: Nguyen, Long P (Mission Systems) Cc: John Nichel; php-general Mailing List Subject: RE: [PHP] error with PHP MySQL extension Quoting "Nguyen, Long P (Mission Systems)" <[EMAIL PROTECTED]>: > I was task with this... Unfortunately the person that installed it is not > here anymore. Is there a way to find out, like any commands or files to look > for? I do see _SERVER["SERVER_SOFTWARE"] Apache/2.0.40 (Red Hat Linux) show > up on the test.php > > Thanks for your help. What does phpinfo() say? It should tell you how it's configured (look for configure section at the top). Also it should tell you wheather mysql extension is installed or not. If its a redhat linux machine, then most probably its installed with an rpm and so "up2date php-mysql" should install mysql extension. You need to restart apache after this. HTH R'twick This message was sent using IMP, the Internet Messaging Program. -- 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
[PHP] Pear Image_Graph
I have been told of an image class called 'Image_Graph'. Has anyone used it and/or do you have any example code I can follow. thanks Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error with PHP MySQL extension
Quoting "Nguyen, Long P (Mission Systems)" <[EMAIL PROTECTED]>: > I was task with this... Unfortunately the person that installed it is not > here anymore. Is there a way to find out, like any commands or files to look > for? I do see _SERVER["SERVER_SOFTWARE"] Apache/2.0.40 (Red Hat Linux) show > up on the test.php > > Thanks for your help. What does phpinfo() say? It should tell you how it's configured (look for configure section at the top). Also it should tell you wheather mysql extension is installed or not. If its a redhat linux machine, then most probably its installed with an rpm and so "up2date php-mysql" should install mysql extension. You need to restart apache after this. HTH R'twick This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error with PHP MySQL extension
I was task with this... Unfortunately the person that installed it is not here anymore. Is there a way to find out, like any commands or files to look for? I do see _SERVER["SERVER_SOFTWARE"] Apache/2.0.40 (Red Hat Linux) show up on the test.php Thanks for your help. -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 10:33 AM To: php-general Mailing List Subject: Re: [PHP] error with PHP MySQL extension Nguyen, Long P (Mission Systems) wrote: > This is where I am stuck at with this DRES installation, it's complaining about the > mysql extension. I tried ./configure --with-mysql=/usr/local/mysql; make; make > install and still the same error: > > > Checking PHP configuration settings > > PHP version... success [4.2.2] > DOMXML extension... success [2.4.23] > MySQL extension failure [required-extension not installed] > > recompile your PHP installation with --with-mysql option > > You need to find out how php was originally installed on your system, and how your web server (Apache?) was installed. Depending on how your web server was installed, you will need to (re)install php in one of a few ways. So, how was your web server installed? RPM? Source? How was it configured? Does it support apxs? -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- 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] error with PHP MySQL extension
Nguyen, Long P (Mission Systems) wrote: This is where I am stuck at with this DRES installation, it's complaining about the mysql extension. I tried ./configure --with-mysql=/usr/local/mysql; make; make install and still the same error: Checking PHP configuration settings PHP version... success [4.2.2] DOMXML extension... success [2.4.23] MySQL extension failure [required-extension not installed] recompile your PHP installation with --with-mysql option You need to find out how php was originally installed on your system, and how your web server (Apache?) was installed. Depending on how your web server was installed, you will need to (re)install php in one of a few ways. So, how was your web server installed? RPM? Source? How was it configured? Does it support apxs? -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] error with PHP MySQL extension
This is where I am stuck at with this DRES installation, it's complaining about the mysql extension. I tried ./configure --with-mysql=/usr/local/mysql; make; make install and still the same error: Checking PHP configuration settings PHP version... success [4.2.2] DOMXML extension... success [2.4.23] MySQL extension failure [required-extension not installed] recompile your PHP installation with --with-mysql option -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I don't want to use include
[snip] When I use include, my script is waiting included script results. But I just want to run another local script without wait result. [/snip] you could try something like this $cmd =/path/to/php.exe . ' ' . /path/to/your/script exec($cmd); check out http://www.php.net/manual/en/function.exec.php , there is some useful user comments -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: I don't want to use include
I sometimes use JS to open a new window outside the screen and close it at the bottom. "Qt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear Sirs, > > When I use include, my script is waiting included script results. But I just > want to run another local script without wait result. > > Which command I should to use? > > > Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] I don't want to use include
Dear Sirs, When I use include, my script is waiting included script results. But I just want to run another local script without wait result. Which command I should to use? Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] recompile your PHP installation with --with-mysql optio n
I'm trying to setup DRES, part of the configuration is to bring up "check.php" to verify the installation. When check.php runs to verify - it errors out at "MySQL extension failure [required-extension not installed]" -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 10:56 PM To: php-general Mailing List Subject: Re: [PHP] recompile your PHP installation with --with-mysql optio n * Thus wrote Nguyen, Long P (Mission Systems): > I recompiled PHP with --with-mysql=/usr/local/sql and still got the following errors: > > Checking PHP configuration settings > > PHP version... success [4.2.2] > DOMXML extension... success [2.4.23] > MySQL extension failure [required-extension not installed] > Um.. how exactly are you doing this, this isn't php configure output. > > > -Original Message- > From: John Nichel [mailto:[EMAIL PROTECTED] > > ... > > Nguyen, Long P (Mission Systems) wrote: > > How do you recompile your PHP installation with --with-mysql option?? > > > > In the PHP source tree > > $ ./configure --with-mysql[=dir] --with-other-options > $ make > $ make install > > I'm sure this will bring a few questions. ;) You jinxed your own message ;) Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- 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
[PHP] Firebird "reading data" error...
Hi people, ...first, sorry my poor english ;) I have a system that access firebird database in a remote machine. In development, works fine (with Firebird 1.0). But now, the database location is a real machine where the system are put up (with Firebird 1.5) and when i realize a query, in the functions ibase_fetch_*, i have a strange problem (maybe a bug?). When in return, are more then 2 result of "double precision" type, i get the following errors: ibase_fetch_object(): Error reading data from the connection. (In the ibase_fetch_object line) And in the bottom of page (in last line of of code): Warning: Unknown(): Error reading data from the connection. in Unknown on line 0 (I n ever see nothing like this... unknown??? line 0) When i switch the servers, the code works fine again. Anybody can help-me? Thanks André Cupini Programador[EMAIL PROTECTED] UIN# 149947291 Rua Prof. José Ranieri, 9-40 CEP 17012-260Bauru/SP Fone/Fax: (14)3234-6898 Rua Abílio Soares, 233 Cj 32CEP 04005-000Paraíso, São Paulo/SPFone/Fax: (11) 3057-1883 ... A recent study has found that concentrating on difficult off-screenobjects, such as the faces of loved ones, causes eye strain in computerscientists. Researchers into the phenomenon cite the addedconcentration needed to "make sense" of such unnatural threedimensional objects ...
[PHP] Help!
Hello there! I badly need help in my codes. My OS is Linux Suse 8.0, apache ver 1.3.31 and PHP 4.X. There was a notice that the printer functions may only be used in Windows environment... How about in Linux environment? What's their difference? Is there any other way i can use the printer functions in linux? HELP! - Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
[PHP] Encryption Question
Good morning gurus! I am encrypting some data on one server and now I am attempting to decrypt on another server using mcrypt_encrypt and mycrypt_decrypt (using same key and initialzation vector). It is almost working but I seem to still have a little problem, that data is missing the last character which still seems to be encrypted. I am putting the data in the database with addslashes, and retrieving with stripslashes, but I get things like this; 45221141¤Þ,]¹9Ñ 7775ÿåZ|z while($arrEncInfo = mysql_fetch_array($dbGetSub)){ $stripDataA = stripslashes($arrEncInfo['dataA']); $stripIV = stripslashes($arrEncInfo['iv']); $dataA = mcrypt_decrypt($encAlg, $encKey, $stripDataA, $encMode, $stripIV); echo $dataA . "\n"; } Has anyone seen this? Could there be a difference between the PHP installs? Both are version 4.3.7. Thanks! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] DSOFile issues
Hi everybody, I need to get the Office Document Properties from MSWord-files and i found DSOFile for COM: http://support.microsoft.com/support/kb/articles/Q224/3/51.asp But now the problem is, that the COM Object don't releases the file lock. Here is the code I use: getDocumentProperties($info['dirname'] . '/Dok0.doc'); $custProps = $docProps->customProperties; while($elem = $custProps->next()) { echo $elem->Name . ': ' . $elem->Value . ''; } unset($custProps); unset($docProps); unset($propReader); ?> I don't find anything online about that problem... Does anyone have experience with DSOFile? Thanks in advance, Marcel Tschopp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Testing if cookies are enabled
Hi, You can check if browser cookies are enabled or not by using follow. given JavaScript functions. //** jsfunc.js ***// function f_ReadCookie(cookieName) { if (cookieName == "" ) { return; } var theCookie=""+document.cookie+(("/") ? "; path=" + "/" : "") ; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); / read cookie / /* Cookie Check function call / f_WriteCookie("ckTmp","Y"); // write temp. cookie sVal = f_ReadCookie("ckTmp"); // read this value again if (sVal != "Y") { return false; } return true; } function f_WriteCookie(name, value) { if (name == "") { return false; } if (value != null) { var curCookie = name + "=" + escape(value) + (("/") ? "; path=" + "/" : "") //+ document.cookie = curCookie; } }// write cookie function f_CheckBrowserCookie() { // Cookie Check function call f_WriteCookie("ckTmp","Y"); // write temp. cookie sVal = f_ReadCookie("ckTmp"); // read this value again if (sVal != "Y") { return false; } return true; } //** Use follow. given function in Onload of Body of HTML file of Login page ***// function CheckBrowserCookie() { if(!f_CheckBrowserCookie()) alert('Browser cookies are disabled.Please enable them.'); } // *** in onload call it as below **// With these functions you will be able to check if the cookies are enabled or disabled. Regards, Umesh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Please Send MIME Script
http://phpmailer.sourceforge.net/ Ryan Schefke wrote: Could someone please send me a function for MIME mail. I've been searching for the past 3 hours and haven't come across anything that is solid and works for me. I need the following: 1 - send MULTIPLE attachments 2 - send message in html and text. Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Server Push
> I am just looking for some different techniques on how server push is > done on PHP: http://www.craftysyntax.com/CSLH/ Download, have a look at the codes and enjoy... ~ nadim attari -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Session problem
> I have a problem with sessions. If someone closes their internet explorer > window without logging off the session remains open. When you try to go > back to the site IE hangs until I manually remove the sess_ files from > the /tmp directory. Any insights on this one?? > > VR/Tim http://www.php.net/setcookie (find 'expire' in this manual) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session problem
I have a problem with sessions. If someone closes their internet explorer window without logging off the session remains open. When you try to go back to the site IE hangs until I manually remove the sess_ files from the /tmp directory. Any insights on this one?? VR/Tim
Re: [PHP] Re: Testing if cookies are enabled
Reading Aidan's e-mails is like watching a Disney movie. You can't help but feel warm and fuzzy inside and loving toward the whole world. Basically, create a page with an HTML form that takes the user name and password (or whatever login information you think is appropriate). The action of the form could be the next page, which sets the cookie. However, if you just want to have personalized data based on the login, you have some other options, such as sessions and, even better in my opinion, accessing records in a database. Aidan, in his loving way, pointed you to a good starting point for setting cookies: if you haven't read the manual, it migh be helpful. -Original Message- From: Aidan Lister <[EMAIL PROTECTED]> Sent: Jun 21, 2004 5:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Testing if cookies are enabled Think about it. Step 1) Analyse the problem. a) Set a cookie. b) Test if the cookie has been set. c) Display data from cookie Step 2) Read the fucking manual a) http://php.net/setcookie b) http://php.net/setcookie c) http://php.net/setcookie If you can't work it out, and have actually done some reading, feel free to ask for some more help. "Martin Schneider" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello! > > I saw this on some pages and want to do the same: > > - On one page the user can login. Before that no cookie is set! > > - On the next page they set the cookie and show either the user data or > a warning that the user has disabled cookies and should enable them. > > I wasn't able to set and text a cookie on the same page! How is it done? > > Martin -- 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
[PHP] Re: Please Send MIME Script
Ryan Schefke wrote: Could someone please send me a function for MIME mail. I've been searching for the past 3 hours and haven't come across anything that is solid and works for me. I need the following: 1 - send MULTIPLE attachments 2 - send message in html and text. Thanks, Ryan http://pear.php.net/package/Mail_MIME -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Please Send MIME Script
Hello, On 06/22/2004 03:14 AM, Ryan Schefke wrote: Could someone please send me a function for MIME mail. I've been searching for the past 3 hours and haven't come across anything that is solid and works for me. I need the following: 1 - send MULTIPLE attachments 2 - send message in html and text. You may achieve that using this class. It comes with examples for doing exactly what you ask. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php