[PHP] Re: How to remove only the last character?
www.php.net/substr -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Douglas Douglas" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Good day. > > Is there any PHP function that removes only the last > character of a string and returns the new string? > > I'm looking in the manual and I can't find anything. > > Until now I'm doing this: > > $var=substr($var,0,strlen($var)-1) > > Is this the most efficient way? > > Thanks. > > __ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?
It is not included because your didn't installed jpeg lib. GD needs an external lib to work with jpeg, so yes it's an administrator's work. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Sed" <[EMAIL PROTECTED]> a écrit dans le message de news: 000d01c2ceb4$c96f60b0$[EMAIL PROTECTED] So, why is this function not included in GD like imagecreatefrompng()? Can this be just bad configuration at my Administrator behalf? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 7. febrúar 2003 14:15 To: [EMAIL PROTECTED] Subject: [PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug? You need to install jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd --with-jpeg-dir=DIR. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Sed" <[EMAIL PROTECTED]> a écrit dans le message de news: 000901c2ceb3$90746450$[EMAIL PROTECTED] > Hi, > > Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is > enabled and imagecreatefrompng() id defined? > > > > Is it a bug? Or? > > My ISP config: > > System Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 > Build Date Jan 24 2003 19:35:29 Configure Command './configure' > '--with-mysql' '--with-apxs' '--with-zlib' '--with-bz2' '--with-gd' > '--with-gettext' '--with-pgsql' Server API Apache > Virtual Directory Support disabled > Configuration File (php.ini) Path /usr/local/lib/php.ini > PHP API 20020918 > PHP Extension 20020429 > Zend Extension 20021010 > Debug Build no > Thread Safety disabled > Registered PHP Streams php, http, ftp, compress.bzip2, compress.zlib > > > Regards, > Sumarlidi E. Dadason > > SED - Graphic Design > > E-mail: [EMAIL PROTECTED] > website: www.sed.is > -- 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: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?
Typos: You need to install jpeg-6b ftp://ftp.uu.net/graphics/jpeg/ and then add --with-jpeg-dir=DIR on your configure line. Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 3:14 PM Subject: Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug? > You need to install jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and > dd --with-jpeg-dir=DIR. > > -- > Regards. > M.CHAILLAN Nicolas > [EMAIL PROTECTED] > www.WorldAKT.com Hébergement de sites internets. > > "Sed" <[EMAIL PROTECTED]> a écrit dans le message de news: > 000901c2ceb3$90746450$[EMAIL PROTECTED] > > Hi, > > > > Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is > > enabled and imagecreatefrompng() id defined? > > > > > > > > Is it a bug? Or? > > > > My ISP config: > > > > System Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 > > Build Date Jan 24 2003 19:35:29 > > Configure Command './configure' '--with-mysql' '--with-apxs' > > '--with-zlib' '--with-bz2' '--with-gd' '--with-gettext' '--with-pgsql' > > Server API Apache > > Virtual Directory Support disabled > > Configuration File (php.ini) Path /usr/local/lib/php.ini > > PHP API 20020918 > > PHP Extension 20020429 > > Zend Extension 20021010 > > Debug Build no > > Thread Safety disabled > > Registered PHP Streams php, http, ftp, compress.bzip2, compress.zlib > > > > > > Regards, > > Sumarlidi E. Dadason > > > > SED - Graphic Design > > > > E-mail: [EMAIL PROTECTED] > > website: www.sed.is > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?
You need to install jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd --with-jpeg-dir=DIR. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Sed" <[EMAIL PROTECTED]> a écrit dans le message de news: 000901c2ceb3$90746450$[EMAIL PROTECTED] > Hi, > > Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is > enabled and imagecreatefrompng() id defined? > > > > Is it a bug? Or? > > My ISP config: > > System Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 > Build Date Jan 24 2003 19:35:29 > Configure Command './configure' '--with-mysql' '--with-apxs' > '--with-zlib' '--with-bz2' '--with-gd' '--with-gettext' '--with-pgsql' > Server API Apache > Virtual Directory Support disabled > Configuration File (php.ini) Path /usr/local/lib/php.ini > PHP API 20020918 > PHP Extension 20020429 > Zend Extension 20021010 > Debug Build no > Thread Safety disabled > Registered PHP Streams php, http, ftp, compress.bzip2, compress.zlib > > > Regards, > Sumarlidi E. Dadason > > SED - Graphic Design > > E-mail: [EMAIL PROTECTED] > website: www.sed.is > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: 4.0.6 to 4.3.0
Yes, see http://www.php.net/manual/en/language.variables.predefined.php You should use $attach = $_GET['attach']; before if it's comming from an URI or $_POST or $_SESSION or $_COOKIE... -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Brian V Bonini" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Any thoughts as to why this snippet: > > 25: if ($attach != "none") > 26: { > 27:$file = fopen($attach, "r"); > 28:$contents = fread($file, $attach_size); > 29:$encoded_attach = chunk_split(base64_encode($contents)); > 30:fclose($file); > > would produce these errors: > > Warning: fread(): supplied argument is not a valid stream resource in > /usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_message.php on line 28 > > Warning: fclose(): supplied argument is not a valid stream resource in > /usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_message.php on line 30 > > After upgrading from 4.0.6 to 4.3.0 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: What means "ioctl"
"ioctl performs a variety of control functions on devices and STREAMS." It stands for I/O Control. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Harald Mohring" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I got the error-message: > Warning: fopen("", "r") - Inappropriate ioctl for device > what means ioctl? > Harry > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP 4.3.0, __CLASS__ and __FUNCTION__
They return the current class name or the current function in which they are called. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Michael Virnstein" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi there, > > can someone please explain what __CLASS__ and __FUNCTION__ are and what they > do? > They are listed in the PHP 4.3.0 changelog and can be found here: > http://www.php.net/manual/en/reserved.php > but i can't find any explanation. > > Michael > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP 4.3.0 (Win32, zip) not bundled with PEAR?
Yes it's a bug and it will be fixed for 4.3.1 and probably CVS in few days. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Tobias Schlitt" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi PHP-lovers! Happy new year! > > I just downloaded the PHP 4.3.0 binaries (Win32, zip) and saw, > that no PEAR related stuff is included... is that right or is > there a mistake in it? I thought, PEAR would be integral part > of PHP since some versions... > > Regards! > Toby > -- > 5,4*29,111,98,105,97,115,64,115,99,104,108,105,4*29,4*29,2* > 23,105,11*10,2*51,111);'); function f($a){print > eval('eval($a);while(list(,$b)=each($a))echo chr($b);');} ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP SAPI modules
Hello, Every not EXPERIMENTAL modules are supposed to be stable. There still might have some bugs and bug-fixes too.. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Chris Edwards" <[EMAIL PROTECTED]> a écrit dans le message de news: 04dd01c28ff1$cc116ea0$[EMAIL PROTECTED] > Does anyone know if the PHP SAPI modules are better in the newer releases? > Are they currently stable enough for production websites? > > -- > Chris Edwards > Web Application Developer > Outer Banks Internet, Inc. > 252-441-6698 > [EMAIL PROTECTED] > http://www.OuterBanksInternet.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: how to delete files?
Yes unlink('*.php'); should work... If god doesn't want that, just use exec('rm -f *.php'); Regards -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Jeff Bluemel" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > when this php script starts I want it to remove *.php > > how can I do this? will unlink accept a wild card? > > > Jeff > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: WAP resources for PHP
Well, PHP and WAP are fully compatible. You just need to ouput PHP in a wap format and not html. You should learn the wap tags in w3c.org. -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Research And Development" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I need to make a site WAP ready in less than a month. What books or > internet resources do you recommend for development of WAP in PHP. > > Thanks in advance. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Convince teh boss
Thats a very nice research. Thanks you. -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Evan Nemerson" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Okay, it took me a long (expletive deleted) time, so I figured I should share. > Here is a list of popular web sites running Apache, PHP, MySQL, and Linux. If > there are any errors, I apologize. This is not meant to be a definitive work. > In fact, I wasn't even planning on posting it... until i looked at the clock > ;) > > This list is designed to convice teh boss (no type-o). If your boss is a > bandwagon kind of guy, afraid to take risks, this is for you- er- him. And > you. Him in that he can read it, you in that if he accepts LAMP, you're life > will be a much more joyous existance ;) > > > > - > Apache: > > By far the most popular web server, with 60.54% market share. Its > closest competitor, Microsoft's IIS, has 28.89%. If all variants of > each server are counted, Apache's install base increases to 62.17%, > while IIS manages 29.42%). Statistics are from > http://www.netcraft.net/survey > > Apache users: > Yahoo! > Amazon.com > AltaVista > BBC > mp3.com > SlashDot > HP > W3C > IBM > Verizon > FEMA > Infoseek > > > PHP: > > In April 2002, PHP overtook ASP as the #1 server-side scripting > language on the internet. In April, PHP was used by 24% of the > sites on the Internet. Over the past two years PHP has averaged > a 6.5% monthly growth rate. Source: zend.com/news/zendpr.php?id=49 > > PHP users: > Cisco > CMG > Vodafone > Motorola > Siemens > Ericsson > CBS > Unilever > Philips > BMC > NTT > Air Canada > Lufthansa > OnVista > Lycos Europe > Deutsche Bank > NASA > W3C > > > MySQL: > > It isn't as easy to determine which database a site uses, but here > is a list of sites that do use MySQL, according to MySQL.com: > > Yahoo! Finance > Texas Instruments > U.S. Census Bureau > NASA > Omaha Steaks > Slashdot > Cross Media Marketing Corp > Powell's Books > Department of Academic Information Systems > Avacom Net Services > Blue World Communications > CoreSense > Ericsson > handy.de > mobile.de > Nemo-Q > Silicon Storage Technology, Inc. > Virage > > > Linux: > > I can't find a list for this... I figured these out by trying big > sites that came to mind. I didn't encounter a single Microsoft site, > but I did get a few *BSD sites, and several Solaris sites. > > FBI > Google > Amazon > AltaVista > Slashdot > Verizon > FEMA > CNN > > > Security: > > Here's a list of security companies/groups that run any LAMP component: > Security Focus (LA) > Symantec (L) > CERT (LA) > Packet Storm (A) > FBI (L) > OSVDB (LA) > At Stake (LA) > Netcraft (LA) > TESO (L) > Phenoelit (LA) > Doxpara (LAP) > NGS Software (LAMP) > PivX (LAP) > Grey Magic (LAMP) > Phrack (AP) > *** > It should be noted that just because a component doesn't appear in the list > doesn't mean it's not running. The only way I could figure out MySQL was > sending > a SYN to TCP/3306. If I got a SYN|ACK, I put an M. MySQL could be (should be) > firewalled off, and infosec people know this. Also, infosec people tend to > play > with banners (hehe look @ TESO's - teso.scene.at), so it's entirely possible > they're hiding something... > > Out of all the infosec sites I tried, I managed to find two Microsofts: NAI > and > Verisign. I didn't bother with ntbugtraq, windowssecurity, etc- then again, I > didn't bother with linuxsecurity, root prompt, etc. Only went with groups who > pay > attention to all OS's... Phrack and OSVDB are a little biased, but they are > still > cross-platform. > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE9ygtO/rncFku1MdIRAmQpAJ9d+KkYSLhMriuZtI9jsjp3CAmZrACfaWJK > Tf0R0hEMSICjAi6v9nz67GU= > =Jj3Q > -END PGP SIGNATURE- > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Who can tell me where I can get the cracked Zend Encode r3.0 ?
Okay enough now. -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "John Nichel" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I for one think that poster didn't enough grief. I mean, you go on and > on about making a 'mistake', but it's not like his mistake was to ask a > JavaScript or MySQL question in a php mailing list. He asked for an > illegal version of software from those who make / contribute to the > software. That's not a mistake, that's disrespect. Regardless, I > didn't post anything to him, nor will I say anything else about it. > > [EMAIL PROTECTED] wrote: > >>>Who can tell me where I can get the cracked Zend Encoder 3.0 ? > >> > > > >>Are you a muppet? > >> > >>This list is run by the people who make Zend Encoder! > >> > >>FOOL > > > > > >>Ah, my first laugh of the day. > > > > > > Okay, that's enough. I'm incredibly disappointed in this list. It's very > > helpful at times, but at other times can degenerate into immature > > namecalling and fingerpointing like the above and other examples. So this > > poster made a mistake. Cut him or her some slack. But I guess since none of > > the fingerpointers here have ever made a mistake, then I guess you all have > > the right to go ahead and make fun. This person made a post that he or she > > shouldn't have made, and since then has been ridiculed on a public forum by > > about four or five of us. If we all can look past this mistake and get back > > to posting constructive comments, this poster can get back to feeling a > > little sense of community here when needing legitimate help. So can we give > > this poster a break, or should we continue and then respond to every > > fingerpointer with the same lack of respect next time a mistake is made? > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Need PHP programmer in Northwest for couple week job
Hello, I'm here if you need me. But that can be only a freelance since I'm french. I still can do the same work. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Eric Jt Harlow" <[EMAIL PROTECTED]> a écrit dans le message de news: 01d201c273d4$0b309730$[EMAIL PROTECTED] > Need a PHP/MySQL programmer for a couple week job in the Northwest > (Portland OR, Area) Please respond ASAP. > > Eric JT Harlow > Sisgrate Technologies > Vancouver, WA USA > www.sisgrate.com > Email: [EMAIL PROTECTED] > Phone: 360 891 6991 > Fax: 360 891 6865 > > "This communication (including attachments) contains private, > confidential, privileged and/or proprietary information intended solely > for the Recipient (s) named above. If you are not the intended > Recipient, any use, dissemination, distribution or copying of the > communication is strictly prohibited. If received in error, we apologize > and ask that you please notify the Sender by calling (360) 891 6991 or > via return e-mail, permanently delete this communication from your > computer and destroy any printed copies. Thank you in advance for your > cooperation." > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Checking File Size BEFORE Uploading
Hi, The way is : Send this file: See the MAX_FILE_SIZE hidden BEFORE the userfile's type. See also: http://www.php.net/manual/sk/features.file-upload.php -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Monty" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > If someone uploads a file via an HTML form, is there a way to check the file > size before it's uploaded to the server? > > Thanks! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: getimagesize() with ftp-url?
getimagesize isn't remote. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Stefan Wessman" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi! > > Can anyone tell me if the getimagesize() function is supposed to work with > ftp-url's? > The PHP Manual states "URL support was added in PHP 4.0.5", but maby that is > supposed to mean http-url's only? > > The following is an expample of how i would like to be able to use > getimagesize(): > > $size = > getimagesize("ftp://user:[EMAIL PROTECTED]/pictures/image.jpg";); > > echo ''; > print_r($size); > echo ''; > ?> > > This code yields the following errors in my log: > > [12-Oct-2002 23:32:14] PHP Warning: getimagesize(): php_hostconnect: > connect failed in getimagesize.php on line 2 > [12-Oct-2002 23:32:14] PHP Warning: getimagesize(...): failed to create > stream: FTP server reports 227 Entering Passive Mode (194.236.xxx.xxx in > getimagesize.php on line 2 > > Is this a bug, or is it a missing feature, or maby a documentation issue? > I've tried it on a few different ftp-servers, so i don't think that is the > problem.. but who knows? > > Any thoghts would be appreciated. > > /OnionMan > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: htons function in PHP
It looks that in PHP there is no need to do it, its done by itself, see http://www.php.net/manual/en/ref.sockets.php -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Arjen Brouwer" <[EMAIL PROTECTED]> a écrit dans le message de news: 001501c26ecc$0e685ee0$[EMAIL PROTECTED] > Is there in PHP an equivalent for the 'htons()' function in C? > It's for converting 16-bit values between host and network byte order. > Or can somebody help me program a function which does it? > > Cheers, > A > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Bug in PHP 4.22? (getimagesize problem)
It works fine with me on 4.2.3. Try it. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Pekka Saarinen" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] Hi, I have a very odd problem with PHP 4.22 (no acceleration) and Apache 1.3: Getimagesize fails to see an image from URL randomly (1 out of 8 tries), although the image is definitely there (trust me) and the server is under zero load. I tried also urlExists() from http://www.php.net/manual/en/function.file-exists.php and it has the same problem - but even worse. Apache seems to reject PHP's file function queries in random basis. Clearstatcache() does not seem to make any difference. If I just show the photos without getimagesize it shows ok every time, so it is apparently not Apache's problem. It seems that PHP does not interprete Apache's responses properly. On other physical server I have PHP 4.0.6¨/ Apache 1.3, and with identical code when checking the same photos (from the "faulty" server) Getimagesize gets them right every time. Also, on Windows PHP 4.2 / Apache 1.3 all works perfectly. I have not updated to 4.23 to see if there's anything fixed there because 4.23 has reportedly POST corruption problems, and changelog does not say anything about image check function fixes. Any clues? Thanks, Pekka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: NEXT() and/or PREV()
sure, get an array with all your filenames, get the current position with $_SERVER['PHP_SELF'] and then use next() or prev(). -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Jef" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I need some help with the NEXT() and PREV() functions. I want to use them > with a webpage to direct which page is viewed by the user. If NEXT is > selected then I would like the next information pulled from the database. If > the PREV is selected I would like the previous information pulled from the > database viewed. > > Any suggestions? > I have gone through the manual on these two functions but nothing has > worked. > > > Thank you, > Jef > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: detecting POST variables
You should use foreach($_POST as $key => $value) { echo $key.':'.$value; } Btw thats just an example to get all $_POST values, all superglobals are arrays. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Anup" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello, I have been dealing with different form proccessing PHP scripts. When > I start a new job I usually have a script that just takes the form POST > values and prints them to the screen, so I know what I'm working with. Now > I have a question say the form has 1 field named "FirstName". If the field > is left blank, sometimes my script will print the key and NO value, or it > will just print out nothing, ie NO key or value. > > any ideas. Could it be the server (IIS or Unix/Linux) of the form and the > server (IIS or Unix/Linux) of the script.? > Since I do jobs for different people and environments any combination of > servers are possible. > > The reason, for this post is that I don't know if I should always put code > to check for validilty using isset all the time or should I put it in just > in case the script gets moved. I want to pinpoint this so that I can write > more effective code. > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Using date() function
First you should use : $entry_date = date('l, d F Y H:i:s',$sql['date']); And $sql['date'] must be a TIMESTAMP. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Davy Obdam" <[EMAIL PROTECTED]> a écrit dans le message de news: 001601c26d2c$e5391ff0$[EMAIL PROTECTED] > Hi people > > I have a guestbook, and i need to convert the date and time from the > database into a normal readable date.. Like Sunday, 6 october 2002 > 13:30:00. I thought i could use the date() function here. I have done > this: > > $entry_date = date('l, d F Y H:i:s','$sql["date"]'); > echo $entry_date; > > But then i dont get the date i need. It says Thursday, 01 January 1970 > 01:00:00 (i wasn`t even born then;-), so it wasn`t me signing that > guestbook. Any sugestions what i am doing wrong. Thanks for your time. > > Best regards, > > Davy Obdam, > mailto:[EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Sessions
Do you use globals on or off ? -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Steve Vernon" <[EMAIL PROTECTED]> a écrit dans le message de news: 056a01c26cb2$509f2260$[EMAIL PROTECTED] > Hiya, > Just upgraded to 4.2.3 and I am using the attatched PHP.ini file. I use > sessions on my website, and they dont seem to work now after the upgrade. > Just wondering which lines do I need to alter please? After I logon, they > loose the session after choosing another page. Every page runs the following > code to check the session passwords etc are valid.. > > Thanks, > > Steve > XX > > > > session_register("ssun"); > session_register("sspw"); > > if(!isset($ssun)) $ssun=""; > if(!isset($sspw)) $sspw=""; > > //Attempt to logon. Set the logon form variables to the session variables. > if(isset($sspass)) > { > $sspw=$sspass; > } > > if(isset($ssname)) > { > $ssun=$ssname; > } > > //Make sure no one breaks in, if in the param loggedin was set, unset it. > if(isset($loggedin)) > { > unset($loggedin); > } > > //Link and select the correct database > HIDDEN FOR MY SECURITY > > > //Check if the ssun and sspw are correct > $result = mysql_query("SELECT userid FROM users WHERE > userpassword=PASSWORD('$sspw') AND userid='$ssun'", $db_link); > $norows = mysql_num_rows($result); > > if($norows==1) > { > $loggedin="yes"; > } > else > { > $loggedin="no"; > } > > if(isset($logoff)) > { > if($logoff=="true") > { >$loggedin="no"; >$ssun=""; >$sspw=""; > } > } > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Modifying the size of a jpg.
Hello, I'm trying to modify the size of jpgs so they can be less big, so easily downloadable. If anyone has worked on it, contact me please. Thanks. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: safe_mode and include "http://"; question
Post it as a bug please. It looks like one, anyway it will be closed if its not. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Tomasz Orzechowski" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > should PHP with safe_mode enabled allow include-ing of files via http:// > or not? The way I read the docs it shouldn't and I would expect it to > not allow such includes if it enforces permissions and open_basedir and > such. > > i browsed around on bugs.php.net but cannot find anything revevant. is > this a bug in php or in my perception of the docs? > -- > Tomasz Orzechowski [EMAIL PROTECTED] > APK.net systems administration teamTO630 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP.exe crash Problem
We need to see the page. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Simanhew" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi all, > > One of my pages always crashes php.exe on Windows XP. I can not find any > logic error in my code. > Does anybody have any experience to handle the problem like this ? > > Thanks in advance, > > Siman > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How to get count of dimensions in multi array?
Use a foreach syntax. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Stefan" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello, > I´m trying to figer out how to get the number och dimensions of a array.. > It isn´t the problem to get the count of elements with count(), it´s the > number of dimensions i am stuck at :( > > Any tips would be appreciated. > Best regards, > Stefan > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Editor
The best IS EditPlus. Get it at www.download.com. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Bryan McLemore" <[EMAIL PROTECTED]> a écrit dans le message de news: 004901c26170$fc6fc510$[EMAIL PROTECTED] Hi guys, just wondering if anyone could recomend a good editor that is based on windows. Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML 2 TEXT
strip_tags() is the easiest way to remove HTML tags. If he wants to replace them, then he can use ereg_replace or preg_replace(). -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Justin French" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > There's a perfect example in the manual: > http://www.php.net/manual/en/function.preg-replace.php > > HTH > Justin > > > on 20/09/02 9:16 PM, SiTA WebMaster - VST ([EMAIL PROTECTED]) wrote: > > > Try to remove all strings starting with "<" and ending with ">". Be sure > > not to remove ""'s. Also you need to format line > > endings via "\n" or "". > > > > it might seem a little bit hard, but any other solution won't work > > rather than this. > > > > Tim Haynes wrote: > > > >> Does anybody know of a class or a solution to converting an HTML page to a > >> text only page via PHP, but leaving in href links in and a certain degree of > >> formatting. > >> > >> Cheers, > >> > >> Tim > >> > >> > >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Search system
I found it at http://www.php.net/urlhowto.php Thanks anyway. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi, > > Can someone point me to the documentation to make the same search system > as php.net like www.php.net/lala that will search on the manual. > > Thanks. > > -- > > Nicos - CHAILLAN Nicolas > [EMAIL PROTECTED] > www.WorldAKT.com - Hébergement de sites Internet > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Search system
Hi, Can someone point me to the documentation to make the same search system as php.net like www.php.net/lala that will search on the manual. Thanks. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: HTML 2 TEXT
Feel free to use strip_tags() -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Tim Haynes" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Does anybody know of a class or a solution to converting an HTML page to a > text only page via PHP, but leaving in href links in and a certain degree of > formatting. > > Cheers, > > Tim > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: note 25286 added to function.mb-strcut
It means the $_GET or $_POST doesn't exist, just verify that it exists. a GET is on your URL like lala.php?irc=1 and $_GET['irc] = 1; a POST is on your form and it will appear like $_POST['lol']. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: php.notes To: <[EMAIL PROTECTED]> Sent: Wednesday, September 18, 2002 10:42 AM Subject: note 25286 added to function.mb-strcut > I always receive the error message: > > "Call to underfined function:..." > > when call this kind ( multiby string ) of function > -- > http://www.php.net/manual/en/function.mb-strcut.php > http://master.php.net/manage/user-notes.php?action=edit+25286 > http://master.php.net/manage/user-notes.php?action=delete+25286 > http://master.php.net/manage/user-notes.php?action=reject+25286 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange bug(?) when opening lots of files
Well, yes many issues about that we were fixed on the 4.2.3 and you should have anyway the latest version of PHP, if your ISP doesn't want to update it, change. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Shane Wright" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi my ISP keeps a little behind the curve - sometimes thats a good thing, but sometimes not. :( We could install our own PHP, but unless this is a known issue that has been fixed since I'd rather not risk any others by installing a new version (and having to deal with the update issues that causes with my ISPs updates) Thanks Shane On Wednesday 18 September 2002 1:20 am, [EMAIL PROTECTED] wrote: > Can't you upgrade to 4.2.3 many bugs were fixed. - -- Shane http://www.shanewright.co.uk/ Public key: http://www.shanewright.co.uk/files/public_key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9h8gz5DXg6dCMBrQRArHKAJ4w3TjYJpI4ZaRSIi1cXWqOj7DzdwCgu1et ofTLnvU/I9C4RQMNnpvwXIY= =JLHf -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange bug(?) when opening lots of files
Can't you upgrade to 4.2.3 many bugs were fixed. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Shane Wright" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for the input - but its definately not that; time limit is set to 600 seconds and it dies inside 1 second :( (i should have added this to the original mail, but it seems to supply the page but keep the connection open, strange...) S On Wednesday 18 September 2002 12:01 am, Tyler Longren wrote: > How long does the script tend to run before it just "quits"? Perhaps > a timeout is set too low in php.ini. > > Take a look at max_execution_time in php.ini > > tyler > > On Tue, 17 Sep 2002 23:14:46 +0100 > > Shane Wright <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi > > > > One of my pages opens ~100 files, reads from them, and closes them, > > (only one file open at a time). > > > > The problem is that the page just dies mid-way through execution - no > > errors, no segfault, it just dies and returns a blank page to the > > user. the problem goes away if I reduce the number of files accessed. > > > > its a build of PHP 4.1.2 on Linux running as an Apache module, (if it > > makes any odds, the configure line is below). > > > > I can't see anything on bugs.php.net about this - has anyone seen this > > before (and, of course, the crucial question; what can I do to fix > > it?) > > > > Any help appreciated, > > > > Thanks > > > > - -- > > Shane > > http://www.shanewright.co.uk/ > > Public key: http://www.shanewright.co.uk/files/public_key.asc > > > > > > './configure' '--with-gd' '--enable-gd-native-ttf' > > '--enable-track-vars' > > '--enable-sysvsem' '--enable-sysvshm' '--enable-calendar' > > '--with-zlib' '--prefix=/opt/php-4.1' > > '--with-config-file-path=/usr/local/etc/httpd/conf' > > '--enable-memory-limit' '--with-db2=/usr' '--with-db3=/usr' > > '--with-gdbm=/usr' '--with-ndbm=/usr' '--with-dbase' '--with-xml' > > '--with-expat-dir=/usr' '--enable-debugger' '--enable-ftp' > > '--with-ttf' '--with-jpeg-dir=/usr' '--enable-bcmath' '--with-openssl' > > > > '--enable-trans-sid' '--with-mysql=/usr' '--with-xpm-dir=/usr/X11R6' > > '--with-png' '--with-png-dir=/usr' '--with-imap' '--with-dom=/usr' > > '--with-bz2' '--with-curl' '--with-mhash=/usr' '--with-mcrypt=/usr' > > '--with-pgsql' '--with-gmp' '--with-gettext' '--with-iconv' > > '--with-kerberos' '--enable-xslt' '--with-xslt-sablot' > > '--with-freetype-dir=/usr' '--with-apxs=/usr/sbin/apxs' > > -BEGIN PGP SIGNATURE- > > Version: GnuPG v1.0.7 (GNU/Linux) > > > > iD8DBQE9h6lW5DXg6dCMBrQRAhhiAKCIo1xdyyDtx7fT8SO8Xz4bfWOg7QCfdjE3 > > STUVeNEID6bzu4+hq+PqCI4= > > =zZqL > > -END PGP SIGNATURE- > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php - -- Shane http://www.shanewright.co.uk/ Public key: http://www.shanewright.co.uk/files/public_key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9h8Q85DXg6dCMBrQRApEbAKCIewL9fgwPT1ey3byL2t2pg1BPRACfWJwN rUT+B2yFqGn6e2IO3XAGqeM= =qz1m -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test
It looks it worked, but php.tests is there for that. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Tom Ray" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Test message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: global variables or not??
No you shouldn't. Define : $rd1 = $_POST['rd1']; $rd2 = $_POST['rd2']; at the begining of your scripts. http://www.php.net/manual/en/security.registerglobals.php -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Skitum" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] Hi all, Help me please. I need $vartwo1 have the same value that $varone1. Look: function one(){ ?> http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Text from web form
Hi, If you have register global off on your php.ini, you should do: $name = $_POST['name']; $message = $_POST['message']; at the top of your script to enable the variables. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Rick King" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Apache: 1.3.26 > PHP: 4.2.3 > OS: HPUX-11 > > Hello PHP Guru's! > > After successfully installing PHP and viewing the phpinfo page, I decided to > create a simple web-form. Just a basic "Name" "Message" web-form, when the > form is complete it is emailed to an account. Everything works, except I > don't see the filled in contents in the email message. I don't see the what > the person filled out. But I see "Name:" ane "Message:" > > Any ideas? > > Here's my config line for installing PHP: > CC=gcc ./configure --prefix=/opt/php \ > --without-mysql \ (didn't have MySQL installed) > --with-apxs=/opt/apache/bin/apxs > > Here's my config line for installing Apache: > CC=gcc ./configure --prefix=/opt/apache \ > --enable-module=most \ > --enable-shared=max > > Any help would be greatly appreciated! > > Rick > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP help needed
Hi, is it a free assistance or a non-free one? -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Michael Plasse" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello, > > I need a PHP programmer to assist me with updates to childrens website. > > > Mike > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: is php-4.2.3 a stable version?
Sure 4.2.3 is a stable and portable version, feel free to upgrade. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Anil Garg" <[EMAIL PROTECTED]> a écrit dans le message de news: 018701c259c3$83778c60$[EMAIL PROTECTED] > Hi, > > i am using freebsd4.2 > I couldnt find if the latest php-versiono 4.2.3 a stable version ?? i mean > shall i use 4.2.2 or 4.2.3 ? > > thanx and regards > anil > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How do I upgrade my version of PHP?
You should use the patch command, feel free to "man patch". -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Monty" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I've downloaded the patch file for 4.2.2 to 4.2.3 from the PHP website, but, > not sure what to do with this file. I have a Linux 7.x server. Can anyone > tell me how to patch my version of PHP or point me to a source that explains > how this is done? > > Thanks! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: turn register_globals on
Hi, Look at www.php.net/ini_set -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Anup" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello I am working on a PHP server which has register_globals off. In my > script is there anyway to turn it on, just for my script? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: stupid question
Correction: /* Get the first character of a string */ $str = 'This is a test.'; $first = $str{0}; $first will be 'T' -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I have almost two years of experience in PHP. so don't think qualified for > being a newbie...However still found something don't know when reading > other's code :( > > Here is what I want to know: $Global{'hello'}. What this means? Is it a > Variable-variable? > > Alex > > -- > --- > TrafficBuilder Network: > http://www.bestadv.net/index.cfm?ref=7029 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Question about character acces, [] vs {}
Where did you seen that it is depreciated? -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Robert Cummings" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > > Some time ago i wrote some code where I used the now deprecated > form of accessing characters in a string $string[x]... Would there > be much of a performance gain for me to go take the time to update > the code to the newer $string{x} style? > > Cheers, > Rob. > -- > .-. > | Robert Cummings | > :-`. > | Webdeployer - Chief PHP and Java Programmer | > :--: > | Mail : mailto:[EMAIL PROTECTED] | > | Phone : (613) 731-4046 x.109 | > :--: > | Website : http://www.webmotion.com | > | Fax : (613) 260-9545 | > `--' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: stupid question
It looks like that some yrs ago, the variable $GLOBALS contains all the variable of the page so thats like describing the variable of the page. I'm not sure too, I've never tested/used it. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - H¨¦bergement de sites Internet "Alex Shi" <[EMAIL PROTECTED]> a ¨¦crit dans le message de news: [EMAIL PROTECTED] > I checked the code again...it is $Globals{'lala'}... > > > <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I never saw that is it really working? it is supposed to be > $_GLOBAL['lala'] > > too.. but.. > > > > -- > > > > Nicos - CHAILLAN Nicolas > > [EMAIL PROTECTED] > > www.WorldAKT.com - Hébergement de sites Internet > > > > "Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news: > > [EMAIL PROTECTED] > > > I have almost two years of experience in PHP. so don't think qualified > for > > > being a newbie...However still found something don't know when reading > > > other's code :( > > > > > > Here is what I want to know: $Global{'hello'}. What this means? Is it a > > > Variable-variable? > > > > > > Alex > > > > > > -- > > > --- > > > TrafficBuilder Network: > > > http://www.bestadv.net/index.cfm?ref=7029 > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: rasmus@lerdorf.on.ca
Ewps wrong location. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello, > > After using the master.php.net's users website since few years, I think > that we should put more fonctions at it, like levels, more utils etc. If you > allow me to do something, tell me I should make a _better_ user > administration page. If you have any idea, suggestions please tell me. > > Thanks you for your great work with PHP. > > -- > > Nicos - CHAILLAN Nicolas > [EMAIL PROTECTED] > www.WorldAKT.com - Hébergement de sites Internet > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] rasmus@lerdorf.on.ca
Hello, After using the master.php.net's users website since few years, I think that we should put more fonctions at it, like levels, more utils etc. If you allow me to do something, tell me I should make a _better_ user administration page. If you have any idea, suggestions please tell me. Thanks you for your great work with PHP. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: setting javascript variables on url
Take that to the correct newsgroup. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Raphael Hamzagic" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Anyone knows if there's a way to set a javascript variable in the calling > url. Like: > > http://www.www.com/index.htm?foo=bar > > in index.htm: > > <!-- > alert(foo) > //--> > > > Should print "bar" > > Thanks > > Raphael > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: stupid question
I never saw that is it really working? it is supposed to be $_GLOBAL['lala'] too.. but.. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I have almost two years of experience in PHP. so don't think qualified for > being a newbie...However still found something don't know when reading > other's code :( > > Here is what I want to know: $Global{'hello'}. What this means? Is it a > Variable-variable? > > Alex > > -- > --- > TrafficBuilder Network: > http://www.bestadv.net/index.cfm?ref=7029 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP 4.2.3 released
Nice work. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Zeev Suraski" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > PHP 4.2.3 has been released. It is a maintenance release and includes a > large number of fixes for the previous 4.2.2 version. 4.2.3 is a > recommended upgrade for all users of PHP, and particularly Windows users. > > Full list of changes: > - Enabled strcoll() on win32. (Markus) > - Fixed possible ASCII control char injection in mail(). (Stefan Esser) > - Fixed a potential crash bug in import_request_variables() (Zeev) > - Fixed several problems with directory functions on Windows. (Steph) > - Fixed xbithack bug in Apache module. (Rasmus) > - Fixed a bug that prevented touch() from working on various platforms. (Steph) > - Fixed ob_gzhandler()'s handling of requests that do have the Accept-Encoding >header, but do not allow compression. (Zeev) > - Fixed several bugs in the multithreaded version that could cause random parse >errors, especially on machines with multiple CPUs. (Zeev, Zend Engine) > - Fixed a build problem in bcmath. (Alan) > - Fixed several bzip2 issues. (Andrei, kalowsky) > - Fixed several COM issues. (Harald) > - Various exif fixes. (Marcus) > - Fixed domxml_xslt_process() and domxml_get_element_by_id() and several >other issues in DOMXML. (Christian) > - Fixed DOMXML crash on removing previously created attributes. (Christian) > - Fixed crash when converting $GLOBALS to an object. (Zeev, Zend Engine) > - Fixed ImageCreateFromGD2Part() (Jani) > - Fixed a build issue in the IMAP extension under IRIX. (kalowsky) > - Fixed a bug in imap_last_error() (Jani) > - Various mbstring fixes. (Yasuo, Rui) > - Fixed a build problem in the mcal extension. (Jani) > - Made MySQL rollback open transactions when the request ends. (Georg) > - Fixed a crash in the shutdown order of the ODBC module. (kalowsky) > - Fixed PCRE build problems. ([EMAIL PROTECTED]) > - Fixed a crash in pg_lo_write() (Yasuo) > - Fixed posix_isatty() and posix_ttyname(). (Markus) > - Fixed accidental pg_lo_import() API change. (Yasuo) > - Fixed ereg_replace() crash when the backreference number was greater than the >number of captured subpatterns. ([EMAIL PROTECTED]) > - Fixed array_rand() on thread-safe platforms such as Windows. (Edin) > - Report the right exit code after a call to exit(). (Edin) > > Shana tova, > > Zeev > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Link for downloading?
First, to create a link thats just a that point to the file. ie file Second, that depend of your windows's default configuration. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello, > > How to create a link that when click it will lauch file downloading at > client's end. > > And another question which might be biased from this topic, but > still related with the subject of this message: why some downloading > link will lauch a ftp client such as NetAnts or Download Accelerator > while other link will start a Window's builtin download window? > > Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: which version to use?
You should use both latest versions. PHP 4.2.2 www.php.net/downloads and MySQL 3.23.52 -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Anil Garg" <[EMAIL PROTECTED]> a écrit dans le message de news: 015701c255b3$a2704990$[EMAIL PROTECTED] > hi > > What version combinations of php and mysql should be used? > > regards > anil > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: refresh a php page
You can use header() : header(Refresh: time; URL:http://php.net); Or in javascript: Refresh (on click) Or in meta : -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Meltem Demirkus" <[EMAIL PROTECTED]> a écrit dans le message de news: 001b01c2559c$11d3af60$[EMAIL PROTECTED] > Hi, > > Is it possible to refresh a php page by a code?Or I should use meta or > javascript?. > > thanks > > meltem > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: unix timestamp
You should use mktime() mktime (PHP 3, PHP 4 ) mktime -- Get UNIX timestamp for a date Description int mktime ( int hour, int minute, int second, int month, int day, int year [, int is_dst]) www.php.net/mktime -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Andy" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi everybody, > > I am trying to create a unix timestamp which dates back a certain amount of > days. Lets say I would like to have a unix timestamp from 7 days ago. > > what I tryed is just to subtract values since this are counted s since the > start of the unix epoche, but this does not work in cases like the switch of > months. Has anybody an idea how to do that? > > Thanx, Andy > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Source code
You can't. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Roman Duriancik" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > How I show in IE source code of html page with php ? > > > roman > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Hardware Address
Hi, The best way I think is to use exec() or system() to ask that to the system. May be someone knows something better too. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Chris Cook" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hello all, > > I am working on a LAN application and am interested in obtaining the user's > network card address to limit usage of the program. Is there a way to do > this in PHP? > > I am on a network that uses DHCP so using the IP address probably wont work > and I am also worried about IP spoofing. > > Thanks for any help you can provide, > Chris > > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: XSLT - Sablotron
You should put the content into a file. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Devin Atencio" <[EMAIL PROTECTED]> a écrit dans le message de news: 067301c25516$ff18c4d0$[EMAIL PROTECTED] > > I am trying to find out a way I can pass a variable that is basically > an XML document to xslt_process and make it all work. My script > works if I have: > > > $xp = xslt_create(); > $result = xslt_process($xp, 'test.xml', 'test.xsl'); > > however, if I try to do: > > > $xp = xslt_create(); > $result = xslt_process($xp, $xmldata, 'test.xsl'); > > it won't work. $xmldata contains an XML document, but for some reason > it errors out on me, any ideas on how to make this work? I basically > have > the XML data generated dynamically from a database and then I want to > pass it to the XSLT to process the page. > > Any help would greatly be appreciated. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: file upload problem
Take a look at http://www.php.net/manual/sv/printwn/features.file-upload.php, your pages should be named .php and not .php3 if you support PHP4. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Ram K" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hey > > I have a prob with my php file upload. i am using windows > > my html file looks like > > > > > ENCTYPE="multipart/form-data"> > Upload the datafile here > > > > > > > > my php file looks like > > $endresult = "File Was Uploaded"; > > $newfile = "C:\\upload\\".$file_name; > > echo $newfile.""; > echo $file.""; > > @copy($file, $newfile) or $endresult = "Couldn't Copy File To > Server"; > > echo $endresult; > ?> > > > when i run i get an error > \\php2 > c:\upload\a.gif > cannot upload file > > any ideas why?? also i am not clear as to where the \\php2 comes > from > > thanks in advance > > regards > ram > > __ > Give your Company an email address like > ravi @ ravi-exports.com. Sign up for Rediffmail Pro today! > Know more. http://www.rediffmailpro.com/signup/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: formatting a filename
You shouldn't use str_replace as he said, but preg_replace() or ereg_replace(), ereg are easier to use. take a look at www.php.net/ereg_replace . -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Javier Montserat" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > i want to format the filename of an uploaded file as follows :- > > -- replace blankspace with "_" > > -- remove any illegal characters. > > Which string functions should I use to do this? > > Thanks, > > Javier > > > > _ > Join the world's largest e-mail service with MSN Hotmail. > http://www.hotmail.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Javascript ?
This has nothing to do with PHP, the best list of newsgroup is here : www.google.com -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Christopher J. Crane" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Does anyone know of a Javascript forum like this one that I can post a > question to? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: whitespace...
Hi, You should use $content = str_replace(" ","",$content); I assume that works, there is probably something better than it too but thats all I see at this hour. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Matt Zur" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > How do I remove the whitespace from a document? I consulted the manual > and it said to use the trim function. But in a large PHP document, with > lots of fuctions etc in PHP... is there a simple way to compress the > whitespace of the entire document? Rather than going through each var > and using the trim? Like add a header at the top: compresswhitespace() ?> > > > If you have a 300k php document, won't the source code reveal (after the > browser displays the page) a bunch of whitespace. Doesn't this add to > dl time and if so, how do I get rid of it. > > TIA, > > -Matt > > > > > -- > Matt Zur > [EMAIL PROTECTED] > http://www.zurnet.com > > Need a Web Site??? - Visit... www.zurnet.com > > 1997 - 2002 - 5th Anniversary!!! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Mail list/message board
Take a look at http://news.php.net/ -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Brian V Bonini" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Anyone now of a a PHP mailing list program that has a forum-like interface > as well? Somethign that functions similar to yahoo groups if your familiar > with that? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: post doesn't work?
If you have register globals off, you must use $_POST['name'] and not $name. Check your php.ini () -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Matt Zur" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I have a form that posts to another php file. But it won't display the > var? It just shows a blank screen. > > For example > > test.php has form input name > test2.php prints name > > On test2.php it shows a blank screen, but if I assign $name on test2.php > and reload, it will print the var. Is there something in the php.ini > that I have to change to get vars to post? or some setting somewhere else? > > -Matt > > > > -- > Matt Zur > [EMAIL PROTECTED] > http://www.zurnet.com > > Need a Web Site??? - Visit... www.zurnet.com > > 1997 - 2002 - 5th Anniversary!!! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: check for a number
Hi, if(is_numeric($return = substr("$f", 0, 1))) etc... You can look at the manual to get the list of the is_() functions: is_array is_bool is_callable is_double is_float is_int is_integer is_long is_null is_numeric is_object is_real is_resource is_scalar is_string etc. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Mike Fifield" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I am using > > substr("$f", 0, 1); > > to get the first character of a string but what to be able to tell if the > first character is a digit or a letter is there a way to do this? > > > > > > begin 666 box-0.gif M1TE&.#EA"P`'`(#_`,# P ```"'Y! $`+ `+``<`0 (-A(\6FAK? )HI0+U/1@*@`[ ` end begin 666 box-1.gif M1TE&.#EA"P`'`(#_`,# P ```"'Y! $`+ `+``<`0 (,A(\6&ZGL (HI2LN>H*`#L` ` end -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: simple problem
Sorry I hadn't read well, yes use if(!($i %3)) echo "lala"; -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi, > > On every loop, just put the text you want to add to a variable. > like > if($i == 0) echo "first print"; > elseif($i == 1) echo "second"; > elseif($i == 2) echo "third"; etc... > > -- > > Nicos - CHAILLAN Nicolas > [EMAIL PROTECTED] > www.WorldAKT.com - Hébergement de sites Internet > > "Cirkit Braker" <[EMAIL PROTECTED]> a écrit dans le message de news: > [EMAIL PROTECTED] > > what would be the best, most efficient way to print something every three > > times a loop runs > > > > for ($i=0; $i<$num_products; $i++) > > { > > echo "something"; > >} > > > > this happens every time it runs and has to stay that way but every three > > times i want to print additional info. > > > > Any help appreciated. > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: simple problem
Hi, On every loop, just put the text you want to add to a variable. like if($i == 0) echo "first print"; elseif($i == 1) echo "second"; elseif($i == 2) echo "third"; etc... -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Cirkit Braker" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > what would be the best, most efficient way to print something every three > times a loop runs > > for ($i=0; $i<$num_products; $i++) > { > echo "something"; >} > > this happens every time it runs and has to stay that way but every three > times i want to print additional info. > > Any help appreciated. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: SMS
Hi, This has nothing really to do with PHP, but, you can't excepted if you work for a company that got the right to do it. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Lejanson C. Go" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > what are the components to be use if you want to set > up a site that SENDS Free SMS and uses PHP? > > -- > Lejanson C. Go, SDE I > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: I need a useful sample code for opening from ftp servers using fopen() or file() commands
Note that you can use also: $content = implode("",file($filename)"); but I dont know if file() works with ftp. You should use my first tip anyway. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Javier Campo Martinez" <[EMAIL PROTECTED]> a écrit dans le message de news: 012e01c253ab$1669a310$[EMAIL PROTECTED] Hi, I will appreciate if you have some sample code about opening a file from a UNIX server. This is the code I wrote for this issue: ftp://usuario:clave@servidor/afiedt.buf","r";); while ($fich[$i]) { echo $fich[$i]; echo ""; $i++; } ?> This is the message error/warning: Warning: File not found in d:\apache\htdocs\lee_fichero2.php3 on line 3 Warning: file("ftp://...@servidor/afiedt.buf";) - No such file or directory in d:\apache\htdocs\lee_fichero2.php3 on line 3 In the other hand, my php version is 4.0 In the help of the command fopen(), it says: If filename begins with "ftp://"; (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned. If the server does not support passive mode ftp, this will fail. You can open files for either reading or writing via ftp (but not both simultaneously). phpinfo() returns me the following ftp topic: FTP support enabled I just don't know what more can I do ... Thanx in advance Javier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: I need a useful sample code for opening from ftp servers using fopen() or file() commands
Hi, You should read www.php.net/fopen : If filename begins with "ftp://"; (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned. If the server does not support passive mode ftp, this will fail. You can open files for either reading or writing via ftp (but not both simultaneously). If the remote file already exists on the ftp server and you attempt to open it for writing, this will fail. If you need to update existing files over ftp, use ftp_connect(). You should also read www.php.net/feof, www.php.net/fread You can't echo the var of fopen, you must use fread and verify you're not at the end of the file with while(!feof($fich))... -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Javier Campo Martinez" <[EMAIL PROTECTED]> a écrit dans le message de news: 012e01c253ab$1669a310$[EMAIL PROTECTED] Hi, I will appreciate if you have some sample code about opening a file from a UNIX server. This is the code I wrote for this issue: ftp://usuario:clave@servidor/afiedt.buf","r";); while ($fich[$i]) { echo $fich[$i]; echo ""; $i++; } ?> This is the message error/warning: Warning: File not found in d:\apache\htdocs\lee_fichero2.php3 on line 3 Warning: file("ftp://...@servidor/afiedt.buf";) - No such file or directory in d:\apache\htdocs\lee_fichero2.php3 on line 3 In the other hand, my php version is 4.0 In the help of the command fopen(), it says: If filename begins with "ftp://"; (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned. If the server does not support passive mode ftp, this will fail. You can open files for either reading or writing via ftp (but not both simultaneously). phpinfo() returns me the following ftp topic: FTP support enabled I just don't know what more can I do ... Thanx in advance Javier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: bugs/master are back
Yes, it looks its a new stuff because I get the reply to all my post too. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Eriol" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Ahh.. Okay.. Thanks.. > > I don't know if this is a normal issue (first time I've seen it), but in my > initial reply to your thread, I received the following back via email.. I > typically post through replies the newsgroup way at news.php.net and not the > mailing list route.. Didn't know if I should point it out or not, but decided > it couldn't hurt to do so.. > > > Your message was not delivered for the following reason: > > E-mail Account: lists-php is over the limit of 31457280 bytes. > > Automated Postmaster > > [snipped original email reply and headers] > > > Take care.. peace.. > eriol > > > > <[EMAIL PROTECTED]> disgorged: > > : Yes thats normal. master.php.net is used by the members of PHP (cvs accounts > : etc..) to manage their account. They've got the correct url to do that from > : master.php.net. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: bugs/master are back
Yes thats normal. master.php.net is used by the members of PHP (cvs accounts etc..) to manage their account. They've got the correct url to do that from master.php.net. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Eriol" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > http://master.php.net redirects me to http://www.php.net, but the "bugs" url > works fine.. I'm not sure what "master" would be which is why I tried > accessing it.. Is this normal to redirect to the main site? TIA.. > > Take care.. peace.. > eriol > > > > <[EMAIL PROTECTED]> disgorged: > > : For those who are interested, master.php.net and bugs.php.net are back. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] bugs/master are back
For those who are interested, master.php.net and bugs.php.net are back. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: XML vs Everything Else
Hi, XML, eXtensible Markup Language. Meta-language. XML allows you to create your own variables and meta names. You should read some doc about it. Btw your question has nothing to do with PHP but really with XML you should take a look to the XML's mailing list they will help you better than we can. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Taylor York" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Ok, Help me out on this one. > > As far as i can tell, xml documents store data..pretty much just a dababase. > Now please, correct me on anything I say incorrectly...But i just cannot > seem to grasp the point of using XML over MySQL. > > Can anyone direct me to a page with xml in use? Something that can help me > grasp what its all about. > > Thank you, > > Taylor York > DreamStar Group > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Parse errors: path?
Hi, I get no error with that syntax, thats pretty strange, btw why are you putting "..." into your directory? You shouldn't. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Wm" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I'm getting a parse error with this PHP statement: > > $dir = opendir($path) or die("Could not open $dir"); > while ($file = readdir($dir)){ > if (stristr($file, 'jpg') || stristr($file, 'jpeg')){ > echo "$file\n"; > } > } > ?> > The browser is showing me the following error though, with a changed path: > > Parse error: parse error in > /usr/local/psa/home/vhosts/.../httpdocs/fashion.php on line 144 > > That's the only PHP in the entire page, so the error has to be in there > somewhere. My webhost mapped/aliased my old path to a new directory when > they upgraded my server. Does anyone see any errors in the PHP, or should I > be troubleshooting the path info??? > > Wm > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: webmail without imap functions???
Hi, There are many webmails that don't use imap but just POP3. You should check at them. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi NG > > Is it possible to make a webmail without enabled imap functions on the > running version of .php? As far as I can see on > http://www.php.net/manual/en/ref.imap.php it is the various imap functions I > should use. > > I'd like to make a webinterface to my various POP3 email accounts, but my > isp does not support the imap functions :( So... What do I do? > > thnx > Ask -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Freelancer offer
We've got it. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Peter" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi to all > > I would like to take contract in PHP/MySQL as a freelancer. > my web page: http://dorwin.wz.cz > > best regards > Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Downloading php4.2.2.zip??
Hi, Yes, we're experimenting some problems with our downloads servers. Please wait a little and try again. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Andre Dubuc" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I'm wonder whether I doing something wrong. I've tried, without any success, > to d/l php 4.2.2.zip from all the US mirrors, the Canadian ones, Ireland, > Australia, and even the main php.net site. I get as far as get_download . > . . and nothing happens. > > Is there ftp access to get this file, or would some kind soul have a copy > of it? I'm trying to get php installed on a laptop: PHPTriad barfs on a > missing dll, and another combo tells me my 3 day limit has expired on the > installer. All I need is PHP to test my site. > > Any assistance or advice appreciated. > > Tia, > Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: sorting array question
There is readdir() to read a complete directory. It will put it into an array, then use asort to class it. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Javier Montserat" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > i have the following code which reads a list of files from a directory - > > $listcmd = "ls " .$dirPath; > $temp = exec($listcmd, $listoffiles, $status); > if($status == 0) { > for ($i =0; $i < sizeof($listoffiles); $i++) { >$this->fileName[$i] = $listoffiles[$i]; >$this->sizeofFile[$i] = sprintf("%01.2f", > (filesize($dirPath."/".$listoffiles[$i])/1024)/1024); >$this->fileDate[$i] = date("d-M-y H:i", > filemtime($dirPath."/".$listoffiles[$i])); > } > $this->displayFiles(); > > What I want to do is display the files sorted by date. > > Okay, so I've just realised that the really easy way to do this is by adding > -St (sort by time) to the ls command... > > $listcmd = "ls -St " .$dirPath; > > But how could this be achieved by sorting the three arrays? What if I > alternately wanted to sort the files by name, size or date without > re-reading the directory each time? > > Would an associative array structure be better suited to this type of > operation? > > Thanks for your insight, > > Javier > > _ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP freelancer offer
This has nothing to do with this newsgroup. This is not jobless.general. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Peter Turcan" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi! > > I would like to work as a freelancer on some PHP projects. > see my web page for skills/experiences: http://dorwin.wz.cz > > best regards > Peter > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: ftp question
Hi, Your script upload the file to /home/victor/argilent-www/sites/kodak/user_pictures/vic/ are you sure that is the correct path name? If its not, just put the entier name and not only a part of it. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Victor" <[EMAIL PROTECTED]> a écrit dans le message de news: 01c252ea$36e90160$[EMAIL PROTECTED] > I took the scriopt from php manual and adapted it to my needs, but I get > an error: > > Warning: ftp_put(): user_pictures/vic/: No such file or directory in > /home/victor/argilent-www/sites/kodak/upload_picture.php on line 103 > > This is the code: > > # set up basic connection > $conn_id = ftp_connect($ftp_server); > > # login with username and password > $login_result = ftp_login($conn_id, $ftp_user, $ftp_pass); > > # check connection > if ((!$conn_id) || (!$login_result)) { > echo 'FTP connection has failed.'; > exit; > } > $destination = $picture_location.'/'.$f_username.'/'; > # upload the file > $upload = ftp_put($conn_id, $destination, $picture, FTP_BINARY); > > # check upload status > if (!$upload) { > echo 'FTP upload has failed.'; > } > > # close the FTP stream > ftp_close($conn_id); > > I added the destination variable so that I can easily edit the > destination if I sweitch servers, I'm guessing the error occurs because > php doesn't know where to take the file from?! I'm guessing here, but it > would be nice if someone tough me a bit more about ftp with php. > > user_pictures/vic is the directory the $picture has to go in, but I > dunno why it doesn't work. > > - Victor > www.argilent.com > > > __ > Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: crontab programmed with mysql ??
Take that to the correct newsgroup. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hebergement Group. www.WorldAKT.com - Hebergement de sites Internet <[EMAIL PROTECTED]> a ecrit dans le message de news: 003201c252cb$ac4f1da0$[EMAIL PROTECTED] > I'm looking for the approximate solution of mailing out (or doing anything > else ) > timed by cron(tab) along with use of mysql as means of identification and > storing > of the dates in multiuser enviroment. > Initial date and interval of recurring event is to be set up by a user. > May you know some open source code as an example to do that or so? > Thank you, > Oleg > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Upload
are you using global vars? like $file or you use new var like $_FILES? -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I have a form where i upload files. > > When I was using windows there was no problem, now I have switched to Linux, > and I cannot upload anymore. The form simply does not pass any of the variables > on. If i remove enctype="multipart/form-data" from the form tag, then the > variables are passed. > > Does anybody have an idea of what is going on? > > regards > > Martin Hjort Eriksen > Studenterrådet, Roskilde Universitetscenter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: header()-question
Dont use a directory but an url like header("Location: http://www.php.net";); -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "ØYstein HåLand" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I use this code with the intension to REDIRECT to the file login.php > > if (!isset($login)) { > header("Location: /ha/login/log.php?goal=log&goback=$PHP_SELF"); > } else { > some code here > } > > When I load the page the following happens: The source show the filename > with this script and not the log.php, but the content is from log.php > I don't understand nthing. > So, if header() don't do redirection, which php-function does? > (Or, is there a better way to achieve the same?) > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: coockie expiration problems
Hi, I see really nothing wrong in your example. Did you tried to verify with isset() if the cookie is still here or not? And well, you should use double quote on setcookie("referrer", $user_id, time()+10); You call should be also $_COOKIE['referrer'] and not $_COOKIE[referrer]. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Andy" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi there, > > I am trying to save a var inside a cookie for a certain time (in this > example 10s): > setcookie('referrer', $user_id, time()+10); //expires in one hour > > Now I would like to get the value, but only if the coockie is valid (if > cockie not older than 10 s in this example) > echo 'referrer: '.$_COOKIE[referrer]; > > Unfortunatelly this does not work, the cockie value is always valid, even > after expiration time. > > What am I doing wrong? > > Thanx for any help on that, > > Andy > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: How to escape " in hidden field?
Hi, Its really stupid to use that command because there is not any function to come back to the real way. You should just addslashes() to it then remove them. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hebergement Group. www.WorldAKT.com - Hebergement de sites Internet "Steel" <[EMAIL PROTECTED]> a ecrit dans le message de news: [EMAIL PROTECTED] > Hi Martin, > > Monday, September 2, 2002, 2:21:10 PM, ß ïîëó÷èë: > > >> Using the htmlspecialchars() function, so that "Hello \"world\"" will be > >> written in pure HTML: "Hello "world"" > > MT> Thanx a lot! But how do I get it back to 'Hello "world"'? Do I have to do it > MT> manually? > > MT> Martin > > Yep. But you can use some Regexp features. > EX: > $string = preg_replace("/\$quot/","\"","Hello "world""); > > > -- > The Same, > Steelmailto:[EMAIL PROTECTED] >http://www.none.ru > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: fopen() and flock()
Hi, You should use a while(!feof) syntax so that can verify that the file is not empty. You should also use $text = implode("",@file($filename)); Thats the easiest way to read a file. It will put each lines into an array and you will just implode it into a variable -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "David McInnis" <[EMAIL PROTECTED]> a écrit dans le message de news: 021001c25210$21c38010$[EMAIL PROTECTED] > I use fopen() in a template system that I have developed. I noticed > that occasionally I get blank pages served up. Here is one of my > snippets. > > $filename = "$ROOTDIR/content/myfile.txt"; > $fd = fopen ($filename, "r"); > $PAGE_CONTENT = fread ($fd, filesize ($filename)); > fclose ($fd); > > Doing this I get the contents of the file read into the $PAGE_CONTENT > variable. > > I never use fopen() to write to files. Only read with the "r" > directive. So what could be causing my conflicts? Do I need to flock > the file to shared? > > I am running Linux PHP, Apache and Linux. > > David McInnis > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: linking to secure ssl page using php and Microsoft Explorer - general error serviing up page from MSE... Netscape works fine
Hi, No, this has nothing to do to with us, call Microsoft or get Linux. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Phplist" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Get general MSE error when using PHP to go from a non-secure page to an ssl > page. If I use the back button and try it again it will work, so the code > seems solid. Does not fail on Netscape. I heard that there is a Microsoft > Explorer issue with secure pages and/or php. Any ideas on how to resolve? > Stan > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Am I just being stupid or something?
Hi, Yes sometimes it is treated as null. You should reconsider your code and use empty() and not != "". -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Francis" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Ok whats going on here: > > echo "Location: ".$_SESSION["Project"]["location"]; > // above echo's "Location: 0" > if($_SESSION["Project"]["location"] !=""){ >if (checkAccess("folder", $_SESSION["Project"]["location"], "create")){ > newfile(); >}else{ > reportError(1, "Access Denied"); >} > }else{ >fatelError(1, "Session Location Error"); > } > > Ok $_SESSION["Project"]["location"] is set to 0 but for some reason it > always calls fatelError? even tho $_SESSION["Project"]["location"] is set to > 0 can anyone see anything wrong? is 0 treated as null or something? > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php