FAQ

Search Discussions

556 discussions - 567 posts

  • This page implies that variable functions work. They don't. At least, not if you try to do something like: $temp_array = explode(";", $filters); foreach($temp_array as $filt_func) $header[$filt_func] ...
    Dylan_gDylan_g
    Jun 29, 2001 at 4:57 pm
    Jun 30, 2001 at 2:54 pm
  • You can also omit quotes and double quotes when define()'ing the name of a constant, e.g.: define(WWWROOT, "/www/htdocs"); works perfectly for me (php3.0.18) ...
    RootRoot
    Jun 29, 2001 at 6:49 pm
    Jun 30, 2001 at 1:32 pm
  • This doesn't seem to be true at all. Well, it's half true. Yes, you can now expand object members inside double-quotes. However, you don't seem to need the curly braces, at least not on 4.0.4/Win32. ...
    JeroenJeroen
    Jun 28, 2001 at 11:30 pm
    Jun 28, 2001 at 11:32 pm
  • This doesn't seem to be true at all. Well, it's half true. Yes, you can now expand object members inside double-quotes. However, you don't seem to need the curly braces, at least not on 4.0.4/Win32. ...
    BenBen
    Jun 28, 2001 at 8:28 pm
    Jun 28, 2001 at 11:28 pm
  • OK there is one thing I am getting hung up on with this: Is it possible to rename the file after upload? In other words say my user wants to upload SomePic.jpg, but wants it written to the server as ...
    TnaossmpaanmianTnaossmpaanmian
    Jun 25, 2001 at 9:58 pm
    Jun 25, 2001 at 10:06 pm
  • I wonder how to close a pg_pconnect( .... ); can anyone help me? thanks in advance http://www.php.net/manual/en/function.pg-pconnect.php
    Mathieu HenriMathieu Henri
    Jun 25, 2001 at 8:07 am
    Jun 25, 2001 at 9:43 pm
  • link http://www.guidance.nl/php/dbx/doc/ is broken http://www.php.net/manual/en/ref.dbx.php
    PashaPasha
    Jun 25, 2001 at 12:12 pm
    Jun 25, 2001 at 9:38 pm
  • test test http://www.php.net/manual/de/function.each.php
    HartmutHartmut
    Jun 25, 2001 at 9:35 am
    Jun 25, 2001 at 9:45 am
  • Note the following: The === or !== operators do have a higher precedence than == or != operators. This can harm you in the case, that if you write sth like if ( $pos=strpos($hugo,'/') !== false ) ... ...
    AulbachAulbach
    Jun 20, 2001 at 3:46 pm
    Jun 21, 2001 at 1:33 am
  • Am I wrong, or should the "Converting to integer" section close with: "However, in most cases you do not need to use the cast, since a value will be autmatically converted if an operator, function or ...
    Hanford-smithHanford-smith
    Jun 19, 2001 at 12:51 am
    Jun 20, 2001 at 9:46 pm
  • Sorry, there are mistakes in the last entry. I'll try it again: For mailto links: eregi_replace("([ ]+)([[:alnum:]\.\-]+\@[[:alnum:]\-]+\.[\.[:alnum:]]+)([^\.[:alnum:]])","\\1<a href=\"mailto:\\2\" ...
    JasonJason
    Jun 30, 2001 at 10:14 pm
    Jun 30, 2001 at 10:14 pm
  • Here are 2 rather handy regular expressions I use for automatical in-lining text to HTML (AKA url_clickable): For mailto links: eregi_replace("([ ...
    JasonJason
    Jun 30, 2001 at 10:03 pm
    Jun 30, 2001 at 10:03 pm
  • Regarding JPEG color shifts in GD 2.0.1: They added the ImageCreateTrueColor function to create image resources with unlimited color palettes. In the process, they must have also changed ...
    SteveSteve
    Jun 30, 2001 at 9:34 pm
    Jun 30, 2001 at 9:34 pm
  • ImageCreateTrueColor is used to create an image resource with an unlimited number of colors, which is useful when manipulating JPEG images, for example. ImageCreate is used to create an image ...
    SteveSteve
    Jun 30, 2001 at 9:25 pm
    Jun 30, 2001 at 9:25 pm
  • For the life of me I can't get cookies to set if the client browser is IE 6.0! Has Microsoft gone and screwed with things again? Has anyone gotten this to work?
    ZakZak
    Jun 30, 2001 at 8:42 pm
    Jun 30, 2001 at 8:42 pm
  • For the life of me I can't get cookies to set if the client browser is IE 6.0! Has Microsoft gone and screwed with things again? Has anyone gotten this to work? ...
    MartinMartin
    Jun 30, 2001 at 7:59 pm
    Jun 30, 2001 at 7:59 pm
  • The mcyrpt functions seem to be doing some funny things with double-byte character strings. This may be related to Avinesh's example above, but I tried his code and it didn't work. Anyway, I have ...
    JromaloJromalo
    Jun 30, 2001 at 6:49 pm
    Jun 30, 2001 at 6:49 pm
  • at: petermcshnack@angelfire.com /e doesn't work with 3.0.14, too: Warning: Unknown option 'e' in... Is there any alternative?
    ZakZak
    Jun 30, 2001 at 4:55 pm
    Jun 30, 2001 at 4:55 pm
  • I've created a customer header name to use in mail(), but the header remains visible in the message when it arrives. I would like it to be hidden with the other hidden headers, behind a BlahBlah ...
    ZakZak
    Jun 30, 2001 at 4:55 pm
    Jun 30, 2001 at 4:55 pm
  • Here is a nice little function that I made after strugling with the is_dir for awhile....although it doesn't use is_dir I know this works for sure. It returns FALSE if the directory doesn't exist and ...
    ChadridgwayChadridgway
    Jun 30, 2001 at 3:45 pm
    Jun 30, 2001 at 3:45 pm
  • [Editor's Note: This should likely be: php_admin_value open_basedir "/path/to/document/root/" --zak@php.net] Also something useful would be to add this line in your apache config file open_basedir ...
    ZakZak
    Jun 30, 2001 at 3:34 pm
    Jun 30, 2001 at 3:34 pm
  • //Also something useful would be to add //this line in your apache config file //open_basedir "/path/to/document/root/" //that will limit PHP to only open //files in the document root which //makes ...
    ZakZak
    Jun 30, 2001 at 3:32 pm
    Jun 30, 2001 at 3:32 pm
  • I am using ODBC pconnect to access a system DSN linked to a M$ Excel spreadsheet. The formating of the cells in Excel is correct, but when the script is ran all of the '$500.00' turn into '500.0'.
    ZakZak
    Jun 30, 2001 at 3:30 pm
    Jun 30, 2001 at 3:30 pm
  • Hi everybody! It is strange but I spent 5 days to realise that "SELECT * FROM general" didn't work with MiCroSoFt Access database through ODBC and DAO. Why? I don't know. "general" table name seems ...
    ZakZak
    Jun 30, 2001 at 3:30 pm
    Jun 30, 2001 at 3:30 pm
  • ASP use Microstoft Jet Engine... can php use it or something like that?
    ZakZak
    Jun 30, 2001 at 3:29 pm
    Jun 30, 2001 at 3:29 pm
  • Use phpinfo() to see what configure options were used to build the version of PHP you are using. http://www.php.net/manual/install.configure.php.php
    ZakZak
    Jun 30, 2001 at 3:28 pm
    Jun 30, 2001 at 3:28 pm
  • When using versions of PHP below 4.04b4, the ftp_put command doesn't work on NT/IIS4. Most of the other functions will work, but there was a bug while trying to send upstream data to an IIS ...
    ClambertClambert
    Jun 30, 2001 at 3:26 pm
    Jun 30, 2001 at 3:26 pm
  • Unfortunately specifying that the configure command needs to contain --with-mysql=/path/to/mysql doesn't tell me everything. Path to what, exactly? The libraries? The include files? The binaries? In ...
    MasonMason
    Jun 30, 2001 at 3:10 pm
    Jun 30, 2001 at 3:10 pm
  • If you can't gain access to a server using unlink() try using ftp commands: $fp = ftp_connect("ftp.server.com"); $login = ftp_login ($fp, "user", "password"); ftp_delete ($fp, $FileName); ...
    BpotterBpotter
    Jun 30, 2001 at 3:04 pm
    Jun 30, 2001 at 3:04 pm
  • By the way, here are some examples of use of my class Node above to show how easy it makes life with classes and databases: //To create a new database record: $node = new Node ($db, false, $persID); ...
    NigelNigel
    Jun 30, 2001 at 3:00 pm
    Jun 30, 2001 at 3:00 pm
  • It looks like the reason for the double vision is so that when you want to use the sql results, you can call the array elements via either indices (e.g. $line[0], $line[1], etc.) or by their database ...
    KeithKeith
    Jun 30, 2001 at 2:50 pm
    Jun 30, 2001 at 2:50 pm
  • at: petermcshnack@angelfire.com /e doesn't work with 3.0.14, too: Warning: Unknown option 'e' in... Is there any alternative? http://www.php.net/manual/de/function.preg-replace.php
    AdminAdmin
    Jun 30, 2001 at 2:44 pm
    Jun 30, 2001 at 2:44 pm
  • I've created a customer header name to use in mail(), but the header remains visible in the message when it arrives. I would like it to be hidden with the other hidden headers, behind a BlahBlah ...
    BotanicusBotanicus
    Jun 30, 2001 at 2:43 pm
    Jun 30, 2001 at 2:43 pm
  • It seems like the scale parameters leads to a rounding error while bcdiv'iding a number: correct: 105/6.55957 returns 16.007146809928 2-dec rounded should be: 16.01 bcdiv: bcdiv(105, 6.55957, 2) ...
    BrunoBruno
    Jun 30, 2001 at 2:36 pm
    Jun 30, 2001 at 2:36 pm
  • with PHP 3.0.12 (I know, old but the client Im working for wont upgrade for some odd reason, dont ask why), I ripped my hair out over a simple little problem: When using ereg(), you cannot use a ...
    ZakZak
    Jun 30, 2001 at 2:35 pm
    Jun 30, 2001 at 2:35 pm
  • Hi! I have a small problem with my ereg function. I need a function to check a email field in one of my forms. The function should only accept upper & lowecase letter's, digits and . - No other ...
    ZakZak
    Jun 30, 2001 at 2:35 pm
    Jun 30, 2001 at 2:35 pm
  • hello hello
    ZakZak
    Jun 30, 2001 at 2:35 pm
    Jun 30, 2001 at 2:35 pm
  • The mysql_fetch_row function returns an array with numeric indices. For example, a row from the query: SELECT bookid,title,author FROM books would look like: $record[0]=3 $record[1]="A Farewell To ...
    DaveyDavey
    Jun 30, 2001 at 2:34 pm
    Jun 30, 2001 at 2:34 pm
  • This page implies that variable functions work. They don't. At least, not if you try to do something like: $temp_array = explode(";", $filters); foreach($temp_array as $filt_func) $header[$filt_func] ...
    ZakZak
    Jun 30, 2001 at 2:31 pm
    Jun 30, 2001 at 2:31 pm
  • ok maybe someone can help im running a web server using xitami on win 95. i dled the latest php today and installed it. i know xitami is configured right because the install program did it for me and ...
    ZakZak
    Jun 30, 2001 at 2:29 pm
    Jun 30, 2001 at 2:29 pm
  • Is there any way so it prints "<SDA Oxi" ??.. i know that like this it will only print Oxi, because it recognize < as html tags <?php $example = "<SDA Oxi"; echo "$example"; ?
    ZakZak
    Jun 30, 2001 at 2:27 pm
    Jun 30, 2001 at 2:27 pm
  • I'm looking for a function in PHP (or mySql) that calculates the age of someone out of his birthday (type: date (mySql) f.e. 1981-04-29). Concerning all special cases (like FEB-29, etc.). I haven't ...
    ZakZak
    Jun 30, 2001 at 2:26 pm
    Jun 30, 2001 at 2:26 pm
  • Here is a simple example of a class that represents a row in a MySQL database. I have been using this format for all my work on a large data driven site for some months now and it is _really_ useful. ...
    NigelNigel
    Jun 30, 2001 at 2:24 pm
    Jun 30, 2001 at 2:24 pm
  • It would be nice to have an appendix that displayed the commandline options. I find it easier to debug my classes on the commandline. I only recently discovered that I could use the -q flag to ...
    NelsonNelson
    Jun 30, 2001 at 2:16 pm
    Jun 30, 2001 at 2:16 pm
  • I look "int imagecreate(..." and "resource imagecreatetruecolor(..". I can't understand the difference. Can someone show me a brief example? Truecolor image have antialias supporto for lines or other ...
    Php-generalPhp-general
    Jun 30, 2001 at 2:08 pm
    Jun 30, 2001 at 2:08 pm
  • Okay, I think I can definitely say that this is an impossibility. I made a script to hit all 10 of my buttons in succession, so that the second you select the first file, the second dialog pops up. ...
    ZakZak
    Jun 30, 2001 at 2:02 pm
    Jun 30, 2001 at 2:02 pm
  • Does anyone know who to incorporate JS to make the browse select multiple files?
    ZakZak
    Jun 30, 2001 at 2:01 pm
    Jun 30, 2001 at 2:01 pm
  • I was wondering the same thing-- It's really annoying to browse 10 times for 10 files in the same directory. Maybe something using DHTML that would populate all the file fields?
    ZakZak
    Jun 30, 2001 at 2:01 pm
    Jun 30, 2001 at 2:01 pm
  • How can you find a space into a string.
    ZakZak
    Jun 30, 2001 at 2:01 pm
    Jun 30, 2001 at 2:01 pm
  • When I do files uploading, like $upload = ftp_put($connFTP, "$Local", "$Remote", FTP_BINARY); it often writes this warning: ftp_put: PORT command successful. and the value of $upload is not null This ...
    ZakZak
    Jun 30, 2001 at 2:00 pm
    Jun 30, 2001 at 2:00 pm
Group Navigation
period‹ prev | Jun 2001 | next ›
Group Overview
groupphp-notes @
categoriesphp
discussions556
posts567
users342
websitephp.net

342 users for June 2001

Zak: 70 posts Danbeck: 26 posts Php-general: 26 posts Sniper: 24 posts Jeroen: 22 posts : 7 posts Ronabop: 7 posts Jimw: 6 posts Darren: 4 posts Franck: 3 posts Jromalo: 3 posts Raj: 3 posts Aaron Cameron: 3 posts Plorillou: 3 posts Tychay: 3 posts Nzamani: 3 posts Zak Greant: 3 posts Mike_thibault: 2 posts Tom: 2 posts Steve: 2 posts
show more
Archives