Re: [PHP] Script invocation similar to ASP %= %
I believe you just didn' try it: ? $PAGE_TITLE = Short PHP tags, ASP like!; ? html head title %=$PAGE_TITLE% /title /head ... /html -elias www.eassoft.cjb.net Bjoern Werkmann [EMAIL PROTECTED] wrote in message 9cuuc9$9av$[EMAIL PROTECTED]">news:9cuuc9$9av$[EMAIL PROTECTED]... Hi there, pedantic as it might seem, ..., but is there a way to implement the following ASP snippet in PHP % Dim PAGE_TITLE PAGE_TITLE = My Page % html head title %=PAGE_TITLE% /title /head ... /html Especially important is the use of '%='. I'd like to get rid of the echo in '?php echo $PAGE_TITLE?'. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[2]: [PHP] Netscape and post
Hello Chris, Friday, May 04, 2001, 10:40:12 PM, you wrote: Chris On 4 May 2001 21:48:46 -0700, Richard Kurth [EMAIL PROTECTED] wrote: I am having problems with Netscape and post in a form In I.E. post works fine but in netscape it just gives me a Method Not Allowed The requested method POST is not allowed for the URL /scripts/index.html. form method=post action= Why is this doing this. Sometimes I just hate Netscape Chris Presumably because the action attribute needs to have a value. Since your HTML Chris is broken, Netscape is creatively misinterpreting it, as it is wont to do. I probably better explain myself better this is a small sample of the form. The action is set at the bottom of the form ?php if (! (isset($action))) { ? form method=post action= input type=hidden name=plans value=?echo $plans? input type=text name=domainname size=20 input type=text name=ext size=5 maxlength=5 etc a whole bunch more then at the end input type=hidden name=action value=check -- Action is set hear input type=reset name=Button value=Reset input type=submit name=Okay value=Order Now! ?php } if ($action == 'check') { ? Then it does a bunch of error checking in php code This works just the way I planed it in IE but not at all in Netscape -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Script to interpret ssi include calls
Hi I am developing pages for a site that has been constructed using nested apache ssi virtual include calls to build each page. Each included page may contain calls to other pages etc This means that if I call page elements into a php page (using include()/require() ) the !--#include virtual= -- calls arent parsed by php. Does anyone have script that reads pages for server side includes and calls them in through php? Cheers james [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Script to interpret ssi include calls
Use the virtual() command to call SSI from PHP. -Roy on 5/5/01 2:43 AM, James Hamilton at [EMAIL PROTECTED] wrote: Hi I am developing pages for a site that has been constructed using nested apache ssi virtual include calls to build each page. Each included page may contain calls to other pages etc This means that if I call page elements into a php page (using include()/require() ) the !--#include virtual= -- calls arent parsed by php. Does anyone have script that reads pages for server side includes and calls them in through php? Cheers james [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] WinNT+Apache+PHP4 can't connect ODBC!!!
I have Win NT4.0/SP3 with OmniHttpd as my Web Server for S/W dev. project. It's about Web-Base MS Access Database with ODBC and it's run properly. Recently I decided to use Apache instead. So I remove Omni and install Apache instead, and then PHP. After that I move my program to Apache folder and run. I found it's can't connect to odbc from odbc_connect, the error is about this Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in c:\program files\apache group\apache\htdocs\test\odbc.php on line 6 So I decide to install Omni and shutdown Apache Service. It's work!!! ODBC is all right. But when I had shutdown Omni and start Apache service, It's doesn't. Why Help m!!! As soon as possible, Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] etags/ctags for PHP source (emacs/vi/etc)
I should have check the author's home page at first. If you are using emacs/vi and want to use tag file. See http://ctags.sourceforge.net/ RH7 comes with older version of ctags(etags) that does not support PHP source :( It was nothing but a pain w/o tag file. -- Yasuo Ohgaki ""Yasuo Ohgaki"" [EMAIL PROTECTED] wrote in message 9chle9$spq$[EMAIL PROTECTED]">news:9chle9$spq$[EMAIL PROTECTED]... Does anyone know where to get etags program that works with php source? Looked around, couldn't find any tag program works with emacs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] session_register() - Netscape workaround?
Johnson, Kirk wrote: -Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] session_register() 1. What browser are you using? I, and others, have seen erratic results with sessions using Netscape 4.x. If this is your browser, try your code with another browser, if possible. This appears to be the problem. Now what? So I have to forget about sessions or forget about the multitude of NS 4.x users that still exist? At least 3 of us have reported this problem here on this list. No one seems to have an answer. On the up side, it seems to be erratic, Netscape 4.x sometimes works. Realistically, this affects less than 10% of your visitors. So I don't know what else to say, except good luck! I thought of a workaraound for Netscape and would like some feedback on how to do it and whether it is a good idea. I manually edited the session file and Netscape was able to read the variable on subsequent pages. It just can't seem to write it. So I thought, until Netscape 4.x is more of a gonner, I could have my own custom_session_register() function that can open the file and write the info manually. 2 questions. 1) Is there some reason that this would be a bad idea? 2) What is the format of the file? My file contents are testing|s:24:Let's see if this works.; So that is variable_name|what is the s for? scalar maybe?:value_length?:value in quotes; And I'm assuming that a newline delimits the variables? Sorry, haven't tried a test with more than one variable yet. Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Search
At 04.05.01 22:44, you wrote: I need some sciprt to search my site. My site has about 700 pages. Also all the pages are HTML Pages Use grep Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: Re[2]: [PHP] Netscape and post
On Saturday 05 May 2001 08:24, Richard Kurth wrote: Method Not Allowed The requested method POST is not allowed for the URL /scripts/index.html. form method=post action= Chris Presumably because the action attribute needs to have a value. Since your HTML is broken, Netscape is creatively misinterpreting it, as it is wont to do. I probably better explain myself better this is a small sample of the form. The action is set at the bottom of the form ?php if (! (isset($action))) { ? form method=post action= That's exactly what he was saying. Change this to form method=post action=index.html input type=hidden name=action value=check -- Action is set Who cares about some field named action? The problem is the action *attribute of the form tag - the thing responsible for telling the browser where to send the data. You left that empty, the browser tries to send the data to - kawoom -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) World domination. Fast. (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to get RAW POST DATA!
This is not possible with current PHP. If you search recent php-dev list archive, you will find some more info. ""ondi"" [EMAIL PROTECTED] wrote in message 9cucc2$ae3$[EMAIL PROTECTED]">news:9cucc2$ae3$[EMAIL PROTECTED]... the array $HTTP_POST_VARS contains parsed data with "_" instead of spaces and split all RAW data by "=" !!! thats too bad! Sounds more like you are talking about HTTP GET. If it is the case, $HTTP_SERVER_VARS[' QUERY_STRING'] ? Regards, -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] File upload problems.
Sounds like you don't copy tmp files to other place. Most tmp files are deleted after program execution, PHP deletes tmp files as well. Refer to PHP manual for details. Regards, -- Yasuo Ohgaki Hilbert Mostert [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello all, I have some serious problems with file uploads, when i upload a file to the server it creates the $userfile, $userfile_type, $userfile_name and $userfile_size variables, but it doesn't create the actual file in the /tmp dir (the upload directory). I have used redhat 7.0 with apache 1.3.14 and php-4.0.4pl1, I have also tried redhat 7.1 with apache 1.3.19 and php 4.0.5 but the problem still exists. Can anyone help? Thanks , Hilbert Mostert. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] something like a C struct or union in PHP?
Hi Folks, I want to do the following: $f = fopen($filename, r); while( !feof($f) ) { $len=1; $RECSIZE=128 while($n=1;$n=$len;$n++) $data = fread($f, $RECSIZE); $rectype = $data[4]; switch($rectype) { case A: $numARec++; $len=1; // do something with the // contents of $data break; case C: $numCRec++; $len=2; // at least! // do something with the // contents of $data break; case E: $numERec++; $len=1; // do something with the // contents of $data break; } /* switch */ fclose($f); } /* while */ This snippet reads a data file in 128 bytes truncs and needs to analyse the contents. As each 128 bytes trunc has a certain structure (say: fields to access) I would appreciate a thing like a C struct or so. In C I could eaysly read the RECSIZE bytes into a struct and access certain bytes via a named part of it. Is there anything similar to this in PHP? I couldn't find a struct or so in the manual. The site's search engine said 41 hits for struct in the Web Site content, but didn't show the matching docs?! I need help on struct from you guys! TIA -Arne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Running from user home directory
Enabling script execution for user directory in httpd.conf does not work? Refer to Apache manual for details. Regards, -- Yasuo Ohgaki Alan Kong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, The web directory of users is www_docs. How could I allow users to access their php's using ~USER/MYphp.php The config of my server: Platform: Sun Sparc Solaris 2.7 WWW server: Apache 1.3.9 + mod_sll php: php4.0.3 Thanks. Regards Alan -- Alan Kong Tel: +852 2609-8286 Department of Electronic Engineering Fax: +852 2603-5558 Chinese University of Hong Kong Shatin, N.T. Email: [EMAIL PROTECTED] Hong Kong -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] zlib problem
Jeroen Geusebroek [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Php always says: Configure: error: Zlib module requires zlib = 1.0.9. Needless to say, i am using a version higher then 1.0.9. Sound like configure script cannot find your zlib. Where did you install the lib? ld.so.conf has directory for the lib? Did you run ldconfig? Regards, -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to get RAW POST DATA!
I suggest to read related FRCs. Look for HTTP and URI. Regards, -- Yasuo Ohgaki ""ondi"" [EMAIL PROTECTED] wrote in message 9cucc2$ae3$[EMAIL PROTECTED]">news:9cucc2$ae3$[EMAIL PROTECTED]... Hi there php people! Is there any way to get RAW POST DATA from cgi-bin php script with track_vars turned on? the array $HTTP_POST_VARS contains parsed data with "_" instead of spaces and split all RAW data by "=" !!! thats too bad! is there any other variable? Have a nice day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Netscape and post
Are you trying to post a form back to the same script, which will then process it? If so then the easiest way is just FORM METHOD=post ACTION=? echo($PHP_SELF); ? On Fri, 4 May 2001, Chris Adams wrote: On 4 May 2001 21:48:46 -0700, Richard Kurth [EMAIL PROTECTED] wrote: I am having problems with Netscape and post in a form In I.E. post works fine but in netscape it just gives me a Method Not Allowed The requested method POST is not allowed for the URL /scripts/index.html. form method=post action= Why is this doing this. Sometimes I just hate Netscape Presumably because the action attribute needs to have a value. Since your HTML is broken, Netscape is creatively misinterpreting it, as it is wont to do. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] something like a C struct or union in PHP?
PHP does not have struct. You can do similar things with class or array. You probably interested in wddx serialize or serialize function to make it work your snippet. Regards, -- Yasuo Ohgaki Arne Borkowski (borko.net) [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Folks, I want to do the following: $f = fopen($filename, r); while( !feof($f) ) { $len=1; $RECSIZE=128 while($n=1;$n=$len;$n++) $data = fread($f, $RECSIZE); $rectype = $data[4]; switch($rectype) { case A: $numARec++; $len=1; // do something with the // contents of $data break; case C: $numCRec++; $len=2; // at least! // do something with the // contents of $data break; case E: $numERec++; $len=1; // do something with the // contents of $data break; } /* switch */ fclose($f); } /* while */ This snippet reads a data file in 128 bytes truncs and needs to analyse the contents. As each 128 bytes trunc has a certain structure (say: fields to access) I would appreciate a thing like a C struct or so. In C I could eaysly read the RECSIZE bytes into a struct and access certain bytes via a named part of it. Is there anything similar to this in PHP? I couldn't find a struct or so in the manual. The site's search engine said 41 hits for struct in the Web Site content, but didn't show the matching docs?! I need help on struct from you guys! TIA -Arne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Vanishing files.
Could we take a look at your code? -- Yasuo Ohgaki "Andrzej Swedrzynski" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! Recently I wrote a php script which handle file uploads. I took an example from manual (and added some text fields) and every thing seemed to work. After I called move_uploaded_file( $userfile, $destination ) the file appeared in correct place. But after a few minutes the file dissepeared. I do not know why be cause I did not execute any scripts after file had been uploaded. There is PHP 4.0.4 installed on server I use. Please help because I can not find solution by myself. Thanks in advance. Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Array Assignment
Mark Cain [EMAIL PROTECTED] wrote in message 9cufuv$s20$[EMAIL PROTECTED]">news:9cufuv$s20$[EMAIL PROTECTED]... Two things: 1) Why does the code below produce this result? 2) How do I assign to an multidimensional array with dynamic keys? Here is the test code: $first = Elementary; $second = Middle; echo before assignment:BR; echo first = $firstBR;// prints: first = Elementary echo second = $secondP; // prints: second = Middle --- looks as expected here look, before the assignment: 0. both $first and $second are string-type variables. $first[$second] = pass; 1. In this case the brackets mean to index a character of the string (like in C), but 2. $second is converted into int because of using as a string-index, the integer value of $second (Middle) equals to 0. (how can you convert it in any other way?) 3. Things getting clearer... the your assignment says: - the 1st character of string $first let be pass, there is no room any other character, but p. (because of PHP think you'd like to change the 1st char only.) 4. so: Elementary --- plementary echo After Assignment:BR; echo first = $firstBR;// prints: first = plementary --- what is this !! echo second = $secondBR; // prints: second = Middle echo $first[$second];// prints: P what you want is the following - i think (i'm not familiar with perl at all): $first = array($first, $second); what this produces is can be tested with var_dump($first) not with echo, by the way var_dump($first); This is a one-dimensional array with two entries. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] session_register() - Netscape workaround?
Jennifer wrote: I thought of a workaraound for Netscape and would like some feedback on how to do it and whether it is a good idea. I manually edited the session file and Netscape was able to read the variable on subsequent pages. It just can't seem to write it. So I thought, until Netscape 4.x is more of a gonner, I could have my own custom_session_register() function that can open the file and write the info manually. 2 questions. 1) Is there some reason that this would be a bad idea? I would still really like to know this answer. 2) What is the format of the file? My file contents are testing|s:24:Let's see if this works.; I think I figured this out. variable_name|variable_type*:length*:value*; *variable_type is the first letter of the type *length can be diferent things depending on the variable type. I've only tried a few, but here is what I have gathered thus far. If type is string, then length is the length of the value, pretty simple. If type is integer then there is no length and it is skipped altogether rather than being left blank. If type is array, then length is the number of elements. *value can also vary depending on type. If type is string, then it is simply the value quoted, if the type is integer then it is simply the value. If type is array, then each element of the array is described by type and length etc. After trying a few, it's not too difficult to see the pattern. Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PEAR extensions/patches - where to send them?
Hi! If I patch/extend the PEAR classes, where can I send the diffs so that they are not lost on my local harddisk? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 20 hours 49 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Free Database Design Program
Anyone know a Free database Design program? I'm needing to organize my MySQL databases and design new databases. regards, Augusto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] nslookup function ?
visit the page: http://phpclasses.upperdesign.com/browse.html/package/13 and download it. - Original Message - From: Matthew Luchak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. május 4. 22:11 Subject: [PHP] nslookup function ? I'm working on a email address verification script and need to do a DNS lookup given the IP number of a remote host. ie: is [EMAIL PROTECTED] a viable address? get IP gethostbyname(here.net); nslookup IP to get mail server address pfsockopen blah...blah..blah... sois there a nifty yet undocumented nslookup() function out there? Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to catch the output of http:// - text file?
So sprach elias am Wed, May 02, 2001 at 04:28:41PM -0700: $lines = join('', file(http://www.mysite.com/generator.php?id=$i)); Easier: $lines = readfile('URL...'); Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 21 hours 0 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to catch the output of http:// - text file?
So sprach Kraa de Simon am Thu, May 03, 2001 at 10:19:49AM +0200: Warning: Bad arguments to join() in c:\program files\nusphere\apache\htdocs\test.php on line 2 See http://php.net/join and you'll see the error. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 21 hours 2 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to catch the output of http:// - text file?
So sprach Kraa de Simon am Thu, May 03, 2001 at 10:32:47AM +0200: I'm on Windows 2000, Apache 1.3.12 / PHP 4.0.4pl1 and MySQL 3.23.32. Fine - so? PS: No fullquotes, please... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 21 hours 2 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
phpMyAdmin is by for the most common... Check out http://www.phpwizard.net/projects/phpMyAdmin/ It can do pretty much everything you want, althuogh it does assume a knowledge of sql (i.e. it doesn't contain tools for helping y6ou construct comples queries...not that you can really get that complex in mysql) Hope this helps, Tom Carter Web Architect roundcorners ltd. On Sat, 5 May 2001, Augusto Cesar Castoldi wrote: Anyone know a Free database Design program? I'm needing to organize my MySQL databases and design new databases. regards, Augusto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to catch the output of http:// - text file?
So sprach Kraa de Simon am Thu, May 03, 2001 at 11:05:08AM +0200: Could it have something to do with the fact that the webserver is behind a firewall/proxy or something? When I enter the http addres in the browser everything works fine... I think the issue is, that PHP is not HTTP/1.1 compliant, meaning, it won't follow redirects. IIRC the URL you entered (http://www.ansilion.com) is technically wrong. Either try it with http://www.ansilion.com/ or with a fully qualified URL which also gives the file name on the server, ie. http://www.ansilion.com/index.html and see if this works. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 21 hours 3 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Array Assignment
So sprach Christian Reiniger am Fri, May 04, 2001 at 08:24:21PM +0200: On Saturday 05 May 2001 16:55, Mark Cain wrote: $first = Elementary; $second = Middle; $first[$second] = pass; echo After Assignment:BR; echo first = $firstBR;// prints: first = plementary --- what is this !! $first is a string, i.e. $first [$n] accesses the $n'th character in the string Elementary. Well, I think the issue is, that Mark first assigned something to $first, which then made this a string variable. Later on he assigned something to $first[$second]. This broke because of the reasons Christian mentioned. Mark, if you directly assign $first[$second] the value pass, then it should work. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 21 hours 11 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
Ops, no. In fact I'm working with phpadmin2. But I need a program that I can document my database and even the script. The relationships of tables, the primary keys. To describe what each script does, what funcions they have. All this stuffs, I want to document all my system. regards, Augusto On Sat, 5 May 2001, Tom Carter wrote: phpMyAdmin is by for the most common... Check out http://www.phpwizard.net/projects/phpMyAdmin/ It can do pretty much everything you want, althuogh it does assume a knowledge of sql (i.e. it doesn't contain tools for helping y6ou construct comples queries...not that you can really get that complex in mysql) Hope this helps, Tom Carter Web Architect roundcorners ltd. On Sat, 5 May 2001, Augusto Cesar Castoldi wrote: Anyone know a Free database Design program? I'm needing to organize my MySQL databases and design new databases. regards, Augusto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Free Database Design 2
Ops, no. In fact I'm working with phpadmin2. But I need a program that I can document my database and even the script. The relationships of tables, the primary keys. To describe what each script does, what funcions they have. All this stuffs, I want to document all my system. regards, Augusto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
I've not heard of such a thing, and I would doubt that there is such a thing for mysql...generally such tools are for the db2's etc. let me know if you find anything tho, quite intruged Tom Carter Web Architect roundcorners ltd. On Sat, 5 May 2001, Augusto Cesar Castoldi wrote: Ops, no. In fact I'm working with phpadmin2. But I need a program that I can document my database and even the script. The relationships of tables, the primary keys. To describe what each script does, what funcions they have. All this stuffs, I want to document all my system. regards, Augusto On Sat, 5 May 2001, Tom Carter wrote: phpMyAdmin is by for the most common... Check out http://www.phpwizard.net/projects/phpMyAdmin/ It can do pretty much everything you want, althuogh it does assume a knowledge of sql (i.e. it doesn't contain tools for helping y6ou construct comples queries...not that you can really get that complex in mysql) Hope this helps, Tom Carter Web Architect roundcorners ltd. On Sat, 5 May 2001, Augusto Cesar Castoldi wrote: Anyone know a Free database Design program? I'm needing to organize my MySQL databases and design new databases. regards, Augusto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
I happen to like phpMyAdmin (http://www.phpwizard.net/projects/phpMyAdmin/) and MySQLFront (http://www.anse.de/mysqlfront/). Matt Trollboy Wiseman www.shoggoth.net/trollboy/trollboy.jpg [EMAIL PROTECTED] I wish the world had one throat!! -Al Bundy - Please do not resell my e-mail address to anyone or send me unsolicited e-mail - - Original Message - From: Augusto Cesar Castoldi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 9:19 AM Subject: [PHP] Free Database Design Program Anyone know a Free database Design program? I'm needing to organize my MySQL databases and design new databases. regards, Augusto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
Hello: Anyone know a Free database Design program? I'm needing to organize my MySQL databases and design new databases. http://www.anse.de/mysqlfront/ MySQLFront is the best! Best Regards - ebnoud.com, El Boletín No Oficial de Usuarios de Delphi http://www.ebnoud.com VCLCrawler.com, tu motor de búsqueda de componentes VCL http://www.vclcrawler.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PEAR extensions/patches - where to send them?
pear-dev list. I think. news://news.php.net/ might be easier. -- Yasuo Ohgaki Alexander Skwar [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! If I patch/extend the PEAR classes, where can I send the diffs so that they are not lost on my local harddisk? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 20 hours 49 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
So sprach Augusto Cesar Castoldi am Sat, May 05, 2001 at 10:58:32AM -0300: I heard about ERWin, but I didn't find the 'crack' for version 4. We've got ERwin at work - does ERWin work with MySQL databases? PS: Please no fullquotes. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 22 hours 16 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PEAR where should I start?
Hello, after reading thorugh the short introduction about PEAR I'd like to know that where I should start. Can anyone give links to this PHP extension? At this moment, http://pear.php.net is very slim. Thanks in advance Papp Gyozo - [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ImageColorTransparent and Netscape?
Hello everyone, I am stumped with ImageColorTransparent and Netscape. In Explorer, everything seems fine with this function, but in Netscape, there is no effect whatsoever. I am using ImagePNG with GD1.8 and PHP4.0.4. Is this another Netscape limitation? Tx, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
No, I want somthing general, I just want to do the database model. Not just for mysql. regards, Augusto On Sat, 5 May 2001, Alexander Skwar wrote: So sprach Augusto Cesar Castoldi am Sat, May 05, 2001 at 10:58:32AM -0300: I heard about ERWin, but I didn't find the 'crack' for version 4. We've got ERwin at work - does ERWin work with MySQL databases? PS: Please no fullquotes. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 22 hours 16 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Apache/PHP4/SSL, downloads fail with IE 5.5 only when using sessions
Goto SquirrelMail http://www.squirrelmail.org/ and search for the "Infamous IE with SSL bug" (their wording). If I remember correctly it has to do with IE not implementing correctly HTTP/1.1 protocol (so you have to switch to HTTP/1.0 whenever an IE browser hits you) and something about the cache of SSL sessions (...and I don't remember what you should do in that case). -Stathis. Martn Marqus wrote: On Sb 05 May 2001 00:56, Bill Rausch wrote: Hi all, A customer has a problem. They've installed "Merlin" from Abriasoft. It is a pre-built Apache/PHP/SSL/MySQL/... package. Their problem is that they can't download files from my PHP application (which uses sessions) using IE 5.5 in Windows. Netscape works from all clients, IE 4 works, Mac clients work. Here's a sample php script that fails: ?php // simple download test but starts a session session_start(); session_register('rausch'); This may have nothing to do, but I would write this last line like this: session_register("rausch"); And I have to say that IE 5 sucks so much Really can't believe some may people use it. I needed 4 times more time to download my webmail (on a local net) with IE 5 then with Netscape 4.7. Saludos... :-) -- El mejor sistema operativo es aquel que te da de comer. Cuida tu dieta. - Martin Marques |[EMAIL PROTECTED] Programador, Administrador | Centro de Telematica Universidad Nacional del Litoral - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Session problem
I tried to put sessions to work, but i have a problem to start a session in each browser. When i close the browser and start it again the session_id is the same, if i start another browser he have the same session id as the first one and so on. Can someone tell me why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
php-general Digest 5 May 2001 17:49:28 -0000 Issue 668
php-general Digest 5 May 2001 17:49:28 - Issue 668 Topics (messages 51503 through 51549): Re: PHP on PWS not working! 51503 by: Data Driven Design Re: Netscape and post 51504 by: Chris Adams 51508 by: Richard Kurth 51515 by: Christian Reiniger 51522 by: Tom Carter PHP-GTK v0.0.4 released 51505 by: Andrei Zmievski Re: nslookup function ? 51506 by: Kurth Bemis 51529 by: Gyozo Papp Re: Script invocation similar to ASP %= % 51507 by: elias Script to interpret ssi include calls 51509 by: James Hamilton 51510 by: Roy Wilson, Jr. WinNT+Apache+PHP4 can't connect ODBC!!! 51511 by: Art Re: etags/ctags for PHP source (emacs/vi/etc) 51512 by: Yasuo Ohgaki Re: session_register() - Netscape workaround? 51513 by: Jennifer 51526 by: Jennifer Re: Search 51514 by: heinisch.creaction.de Re: how to get RAW POST DATA! 51516 by: Yasuo Ohgaki 51521 by: Yasuo Ohgaki Re: File upload problems. 51517 by: Yasuo Ohgaki something like a C struct or union in PHP? 51518 by: Arne Borkowski \(borko.net\) 51523 by: Yasuo Ohgaki Re: Running from user home directory 51519 by: Yasuo Ohgaki Re: zlib problem 51520 by: Yasuo Ohgaki Re: Vanishing files. 51524 by: Yasuo Ohgaki Re: Array Assignment 51525 by: Gyozo Papp 51536 by: Alexander Skwar PEAR extensions/patches - where to send them? 51527 by: Alexander Skwar 51543 by: Yasuo Ohgaki Free Database Design Program 51528 by: Augusto Cesar Castoldi 51533 by: Kath 51534 by: Tom Carter 51537 by: Augusto Cesar Castoldi 51539 by: Tom Carter 51540 by: Matt \TrollBoy\ Wiseman 51541 by: Augusto Cesar Castoldi 51542 by: José León Serna 51544 by: Alexander Skwar 51547 by: Augusto Cesar Castoldi Re: How to catch the output of http:// - text file? 51530 by: Alexander Skwar 51531 by: Alexander Skwar 51532 by: Alexander Skwar 51535 by: Alexander Skwar Free Database Design 2 51538 by: Augusto Cesar Castoldi PEAR where should I start? 51545 by: Gyozo Papp ImageColorTransparent and Netscape? 51546 by: martin helie Re: Apache/PHP4/SSL, downloads fail with IE 5.5 only when using sessions 51548 by: Rouvas Stathis Session problem 51549 by: MySQL Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- In the regedit file where you put the path assuming the path is C:\php\sapi\php4isapi.dll You would enter C:\\php\\sapi\\php4isapi.dll Into the places where it says to put the path. Then save that file, then double click it, and click ok. Then reboot windows. Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 1:44 AM Subject: Re: [PHP] PHP on PWS not working! Ummm...you could be onto something my dear friend.. know when I set it up once I had not taken into account that the .dll files are in the /sapi/ folder. they in fact are in the /sapi/ folder..do i have to declare this somewhere? in php.ini or something? because i have not referenced to this anywhere!!! in the extension_dir = in the php.ini, i have given C:\php4 only, which has only php.exe php4ts.dll among some other few files. Should i change this to c:\php4\sapi ? cheers, T. Edison jr. --- Data Driven Design [EMAIL PROTECTED] wrote: Sometimes windows just breaks, I've done clean installs lately. Reinstalling might fix your problems, who knows. Is the path in you regedit correct. I Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Sent: Friday, May 04, 2001 2:33 PM Subject: Re: [PHP] PHP on PWS not working! Did both Sir. checked the execute box and rebooted. i don't know where it is going wrong. suddenly i did find out that none of my ASP scripts are working either. Do you think my PWS has developed an internal problem? i'm thinking of re-installing it. suggestions? T. Edison jr. --- Data Driven Design [EMAIL PROTECTED] wrote: Did you check the execute box uder the home directory properties? I think that's when I got that error. Also you need to reboot after you make the registry entries, even though the
Re: [PHP] Session problem
I might be wrong, but AFAIK session is connected to the client and the window or application exactly. This means that if you close the browser and - Original Message - From: MySQL [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. május 5. 19:59 Subject: [PHP] Session problem I tried to put sessions to work, but i have a problem to start a session in each browser. When i close the browser and start it again the session_id is the same, if i start another browser he have the same session id as the first one and so on. Can someone tell me why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Session problem
Try to empty the web cahce of your browser. And one more thing, in PHP there is a default time limit while a session is not killed. [from the manual] session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. PHP sees your session a normal one until this time ellapses and continues from where you stopped. I might be wrong, but AFAIK session is connected to the client and neither the window nor application exactly. This means that if you close the browser and reopen it on the same box this will be the same client for the server. ps.: i beg your pardon to post the prevoius incomplete message. - Original Message - From: MySQL [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. május 5. 19:59 Subject: [PHP] Session problem I tried to put sessions to work, but i have a problem to start a session in each browser. When i close the browser and start it again the session_id is the same, if i start another browser he have the same session id as the first one and so on. Can someone tell me why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Vanishing files.
On Sat, 5 May 2001, Yasuo Ohgaki wrote: Could we take a look at your code? Of course. Shall I send whole application or this snippet will do? // How the form is specified form enctype=multipart/form-data action=edit_item.php4 method=post input type=hidden name=MAX_FILE_SIZE value=?php echo $metaItem-getMaxImageSize(); ? input type=hidden name=action value=?php echo $action; ? // Some other form elements... input name=userfile type=file // Some other form elements... /form // After the file is uploaded if ( is_uploaded_file( $userfile ) ) { $extension = strrchr( $userfile_name, '.' ); $item-setImageType( $extension ); $image = $metaItem-getImageDir().'/'.$item-getId().$extension; move_uploaded_file( $userfile, $image ); chmod( $image, 0400 ); // I've tried without this at first } // Class Item function getId() { return $this-id; } function setImageType( $image_type ) { $id = $this-id; if ( $this-image_type != $image_type ) { $res = db_exec( update ite_items set ite_image_type = '$image_type' where ite_id = $id ); } } // Class MetaItem function getImageDir() { global $imagedir; // Set in configuration file return $imagedir; } function getMaxImageSize() { global $ITEM_MAX_IMAGE_SIZE; // Set in configuration file return $ITEM_MAX_IMAGE_SIZE; } I can't find an error by myself. Please help if you can. Thank you. Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
On Sat, 5 May 2001, Augusto Cesar Castoldi wrote: But I need a program that I can document my database and even the script. The "relationships" of tables, the primary keys. The very limited capability of drawing ERD (Entity Relationship Diagram) in Chen notation can be found in dia (BTW great pro gram). I have used it successfully for small project. For larger ones I used Oracle Designer, but it's only for Oracle and I do not suppose that it's free. Good luck, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP on PWS not working!
nothing does seem to work...i don't know what the hell is the problem!! i did put this : C:\\php\\sapi\\php4isapi.dll in the regedit file and it looks great. everything is just so by the book. where the hell am i going wrong!! can't understand what's different here that was not before coz it was working before!!! did you define any path in the doc_root = in php.ini? because i didn't! Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Vanishing files.
Since I don't use register_globals=on, this might not be the problem what you have. If will have following data in $HTTP_POST_FILES = $HTTP_POST_FILES Array ( [userfile] = Array ( [name] = Array ( [0] = README.i18n_eng [1] = ) [type] = Array ( [0] = text/plain [1] = application/octet-stream ) [tmp_name] = Array ( [0] = /home/httpd/upload_tmp/phpeVlhZN [1] = none ) [size] = Array ( [0] = 23048 [1] = 0 ) ) ) == Your code is using $userfile as scaler value. Could it be the problem? (Just echo $userfile. Isn't it array?) Regards, -- Yasuo Ohgaki - Original Message - From: Andrzej Swedrzynski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Yasuo Ohgaki [EMAIL PROTECTED] Sent: Sunday, May 06, 2001 3:08 AM Subject: Re: [PHP] Vanishing files. On Sat, 5 May 2001, Yasuo Ohgaki wrote: Could we take a look at your code? Of course. Shall I send whole application or this snippet will do? // How the form is specified form enctype=multipart/form-data action=edit_item.php4 method=post input type=hidden name=MAX_FILE_SIZE value=?php echo $metaItem-getMaxImageSize(); ? input type=hidden name=action value=?php echo $action; ? // Some other form elements... input name=userfile type=file // Some other form elements... /form // After the file is uploaded if ( is_uploaded_file( $userfile ) ) { $extension = strrchr( $userfile_name, '.' ); $item-setImageType( $extension ); $image = $metaItem-getImageDir().'/'.$item-getId().$extension; move_uploaded_file( $userfile, $image ); chmod( $image, 0400 ); // I've tried without this at first } // Class Item function getId() { return $this-id; } function setImageType( $image_type ) { $id = $this-id; if ( $this-image_type != $image_type ) { $res = db_exec( update ite_items set ite_image_type = '$image_type' where ite_id = $id ); } } // Class MetaItem function getImageDir() { global $imagedir; // Set in configuration file return $imagedir; } function getMaxImageSize() { global $ITEM_MAX_IMAGE_SIZE; // Set in configuration file return $ITEM_MAX_IMAGE_SIZE; } I can't find an error by myself. Please help if you can. Thank you. Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Vanishing files.
Yasuo Ohgaki [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Since I don't use register_globals=on, this might not be the problem what you have. If will have following data in $HTTP_POST_FILES This line should be I will have following data in $HTTP_POST_FILES -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Vanishing files.
On Sun, 6 May 2001, Yasuo Ohgaki wrote: Since I don't use register_globals=on, this might not be the problem what you have. [snip] Your code is using $userfile as scaler value. Could it be the problem? (Just echo $userfile. Isn't it array?) No, it's string, I've checked it. I completely do not understand this behaviour of system... Thanks for interest. Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP on PWS not working!
would you believe it, i did!! still not working. still giving the 500 Internal Server Error. I uninstalled then reinstalled PWS. cooked up the settings again...and no response!! T. Edison jr. --- Data Driven Design [EMAIL PROTECTED] wrote: Did you copy the php4ts.dll to your windows/system directory? I think I had to do that even though it wasn't in the directions Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 2:44 PM Subject: Re: [PHP] PHP on PWS not working! nothing does seem to work...i don't know what the hell is the problem!! i did put this : C:\\php\\sapi\\php4isapi.dll in the regedit file and it looks great. everything is just so by the book. where the hell am i going wrong!! can't understand what's different here that was not before coz it was working before!!! did you define any path in the doc_root = in php.ini? because i didn't! Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP on PWS not working!
Maybe somebody who REALLY knows can help, because it appears to me that you've done everything right. Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 3:30 PM Subject: Re: [PHP] PHP on PWS not working! would you believe it, i did!! still not working. still giving the 500 Internal Server Error. I uninstalled then reinstalled PWS. cooked up the settings again...and no response!! T. Edison jr. --- Data Driven Design [EMAIL PROTECTED] wrote: Did you copy the php4ts.dll to your windows/system directory? I think I had to do that even though it wasn't in the directions Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 2:44 PM Subject: Re: [PHP] PHP on PWS not working! nothing does seem to work...i don't know what the hell is the problem!! i did put this : C:\\php\\sapi\\php4isapi.dll in the regedit file and it looks great. everything is just so by the book. where the hell am i going wrong!! can't understand what's different here that was not before coz it was working before!!! did you define any path in the doc_root = in php.ini? because i didn't! Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP_AUTH_TYPE variable
Has anyone been able to successfully use PHP_AUTH_TYPE? I've implemented PHP_AUTH_USER and PHP_AUTH_PW, but PHP_AUTH_TYPE doesn't seem to work. After assigning a value to it, on subsequent pages I get an Undefined variable message. I'm on PHP4 on an Apache server. Thanks in advance, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP_AUTH_TYPE variable, take II
Upon further investigation, I've found that I'm having problems with all 3 of the authentication variable: PHP_AUTH_USER, PHP_AUTH_PW and PHP_AUTH_TYPE I was under the assumption that these 3 were automatically global variables, and that if I initialized them manually in one page, they'd be available to any subsequent pages I link to. Is that thinking flawed? Is there something else I need to do to initialize these? I'm on PHP4 on an Apache server. Thanks in advance, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- End of forwarded message --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] scripts
If I have PHP scripts I want in a directory other people can't access, how do I let those scripts be read by the sever? Like scripts that contain user and password info or is just have them named filename.php secure enough? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP on PWS not working!
I couldn't find your original message, but here are some ideas: 1. Rename php.ini-dist to php.ini (if you haven't) 2. Simplify your script 3. Try changing your directory properties in PWS: Read/Execute/Scripts - try different combinations --- Thomas Edison Jr. [EMAIL PROTECTED] wrote: would you believe it, i did!! still not working. still giving the 500 Internal Server Error. I uninstalled then reinstalled PWS. cooked up the settings again...and no response!! T. Edison jr. --- Data Driven Design [EMAIL PROTECTED] wrote: Did you copy the php4ts.dll to your windows/system directory? I think I had to do that even though it wasn't in the directions Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 2:44 PM Subject: Re: [PHP] PHP on PWS not working! nothing does seem to work...i don't know what the hell is the problem!! i did put this : C:\\php\\sapi\\php4isapi.dll in the regedit file and it looks great. everything is just so by the book. where the hell am i going wrong!! can't understand what's different here that was not before coz it was working before!!! did you define any path in the doc_root = in php.ini? because i didn't! Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] scripts
You can make the files in the same group as the webserver. I keep my include files (with a .php extension) in a .phpinclude directory outside my web document root. -jack -Original Message- From: Paul O'Neil [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 05, 2001 4:02 PM To: [EMAIL PROTECTED] Subject: [PHP] scripts If I have PHP scripts I want in a directory other people can't access, how do I let those scripts be read by the sever? Like scripts that contain user and password info or is just have them named filename.php secure enough? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] class (not class instance) variables
Am I correct that PHP does not support class variables? That is, variables that belong to a class and not copied into every object. I need to put several arrays for information about a class, and I do not want to bloat every object with this data (since potentially I will create many instances of the class). Currently I do this with methods. Any other alternative? -- sh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] libphp4.so loading problem
Hi list, i've compiled php-4.0.4pl1 with ldap support. It compiled nice and clean. A make install put the lib in apache's libexec directory. When I start apache I get the following : cannot load .../libphp4.so into server undefined symbol : ldap_value_free I checked the ldap.c file and found multiple references to ldap_value_free but did not find any declaration of the function. How should I proceed to get a working libphp4.so ? I've got openldap-1.2.11 apache-1.2.19 Thanks for your help Wolfgang -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] class (not class instance) variables
On Sun, 6 May 2001, Steven Haryanto wrote: Am I correct that PHP does not support class variables? That is, variables that belong to a class and not copied into every object. I need to put several arrays for information about a class, and I do not want to bloat every object with this data (since potentially I will create many instances of the class). Currently I do this with methods. Any other alternative? For every class I do create additional class called MetaXXX where XXX is the name of the original class. In the MetaXXX I do decla re all variables and methods which I would make static in other language such as C++ or Java. Then I do create one and only one object of class MetaXXX (called metaXXX for convenience) which is available in global scope. Hope this will help you. Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sorry, what is PWS
It´s time for me to ask: What is PWS? I wanna know what I´m reading about ;-) TIA Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] header() session problem...
hello, let me try to explain my problem.. i have one script in which i set some stuff like sessions and some cookies... now i need to call this script from almost every page on my site somehow like lets say i'm on page www.url.com/script.php?page=14 and then i call that other function Header(Location: /scripts/setvars.php?var1=foofar2=foo2); here's now the real problem..what should i put in setvars.php scripts so it returns to the page i called it from ? basicly i need to get back to script.php?page=14 ... can anyone help me if anyone knows any better way i'll be glad to listen one more thing, i cant use include(setvars.php) couze i need to refresh ... so i can use cookies right away and one more question bout sessions..when i set session like session_register(foo); do i need to refresh the page before i can use it like $HTTP_SESSION_VARS[foo] or can i use it right away ? (couze first way doesnt work for me( i need to refresh ), maybe i'm doin something wrong, so i would like some help on this too) thx in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] zlib problem
hi Jeroen, first, try to compile zlib like this: gunzip -c zlib-1.1.3.tar.gz | tar xf -; \ mv zlib-1.1.3/ zlib; \ cd zlib; \ ./configure --static ; \ make; \ cd .. then compile php 4.0.5 with the --with-zlib=../zlib directive in the ./configure that worked for me :) Kees Hoekzema [EMAIL PROTECTED] Sysadmin of www.tweakers.net www.fokzine.net www.realgamer.nl -Oorspronkelijk bericht- Van: Jeroen Geusebroek [mailto:[EMAIL PROTECTED]] Verzonden: zaterdag 5 mei 2001 2:33 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] zlib problem Hi there, I'm trying to compile php 4.0.5 with zlib support, but i can't get it to work. I'm using Mandrake Linux version 8, and tried to use their zlib packages, but i also tried to compile the zlib packege myself (which went well). Php always says: Configure: error: Zlib module requires zlib = 1.0.9. Needless to say, i am using a version higher then 1.0.9. I would appreciate it if someone good give me some help. I did not have this problem with PHP 4.04. Thanks, Jeroen Geusebroek P.s. please CC me in your reply, because at the moment i'm not subscribed to the list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] wordwrap
Is there a tag in php that acts like wordwrap=virtual does in html? I have a script that is sending out variables in a email from a contact form, but for a comments section it will not wordwrap in the email. Thanks Shawn
Re: [PHP] session_register()
So sprach Matthew Luchak am Fri, May 04, 2001 at 11:57:50AM -0400: I would be very interested in hearing of any developments with session anomilies.. Although you've posted the question twice in the message, I still think you've forgot one minor point - your question! :) Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 7 hours 28 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] wordwrap
Is there a tag in php that acts like wordwrap=virtual does in html? I have a script that is sending out variables in a email from a contact form, but for a comments section it will not wordwrap in the email. Thanks Shawn You need to use line breaks \n for lines to wrap in email. Jeff Oien http://www.webdesigns1.com/php/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] something like a C struct or union in PHP?
Hi Yasuo, thanks for the hint ... I'll give WDDX a try after some thought (and because I am using XML anyway). Regards, Arne -Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 05, 2001 2:11 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] something like a C struct or union in PHP? PHP does not have struct. You can do similar things with class or array. You probably interested in wddx serialize or serialize function to make it work your snippet. Regards, -- Yasuo Ohgaki Arne Borkowski (borko.net) [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Folks, I want to do the following: $f = fopen($filename, r); while( !feof($f) ) { $len=1; $RECSIZE=128 while($n=1;$n=$len;$n++) $data = fread($f, $RECSIZE); $rectype = $data[4]; switch($rectype) { case A: $numARec++; $len=1; // do something with the // contents of $data break; case C: $numCRec++; $len=2; // at least! // do something with the // contents of $data break; case E: $numERec++; $len=1; // do something with the // contents of $data break; } /* switch */ fclose($f); } /* while */ This snippet reads a data file in 128 bytes truncs and needs to analyse the contents. As each 128 bytes trunc has a certain structure (say: fields to access) I would appreciate a thing like a C struct or so. In C I could eaysly read the RECSIZE bytes into a struct and access certain bytes via a named part of it. Is there anything similar to this in PHP? I couldn't find a struct or so in the manual. The site's search engine said 41 hits for struct in the Web Site content, but didn't show the matching docs?! I need help on struct from you guys! TIA -Arne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Free Database Design Program
So sprach Andrzej Swedrzynski am Sat, May 05, 2001 at 08:23:21PM +0200: The very limited capability of drawing ERD (Entity Relationship Diagram) in Chen notation can be found in dia (BTW great pro Compared to ERWin, this is indeed *VERY* limited - but maybe I was just unsuccessful, but eg. how can you define keys in an entity in dia? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 7 hours 38 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ImageColorTransparent and Netscape?
So sprach martin helie am Sat, May 05, 2001 at 11:32:47AM -0400: I am stumped with ImageColorTransparent and Netscape. Netscape 4.x doesn't support transparent PNGs Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 7 hours 40 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] content-type added to php copy, changes file size , adds content-type to start of file
Hello Gurus, I have an issue, that I am trying to figure out if it is an Apache config issue or a PHP issue. I have written a script to upload file to a directory on my RH7.0 Linux Apache server. directory has been chmod 777. I have a problem with my php uploads. the content-type is added at the beginning of uploaded file. this makes file useless on server. here is my code for my upload page. ?php $archive_dir=../test; if ($upload) { $filename = basename($userfile_name); if(!copy($userfile, $archive_dir/$filename)) die ($filename not copied! - Error!); echo File $filename Uploaded; } ? table border=0 width=751 tr td form method=post enctype=multipart/form-data action=? echo $PHP_SELF ? Upload file! input type=file name=userfile input type=SUBMIT name=upload VALUE=upload /form /td /tr /table Any thoughts would be appreciated. wade
[PHP] content-type added to php copy, changes file size , adds content-type to start of file
Hello Gurus, I have an issue, that I am trying to figure out if it is an Apache config issue or a PHP issue. I have written a script to upload file to a directory on my RH7.0 Linux Apache server. directory has been chmod 777. I have a problem with my php uploads. the content-type is added at the beginning of uploaded file. this makes file useless on server. here is my code for my upload page. ?php $archive_dir=../test; if ($upload) { $filename = basename($userfile_name); if(!copy($userfile, $archive_dir/$filename)) die ($filename not copied! - Error!); echo File $filename Uploaded; } ? table border=0 width=751 tr td form method=post enctype=multipart/form-data action=? echo $PHP_SELF ? Upload file! input type=file name=userfile input type=SUBMIT name=upload VALUE=upload /form /td /tr /table Any thoughts would be appreciated. Wade Peacock Webmaster www.FamilyAlbum.ca [EMAIL PROTECTED] ICQ: 97998231
[PHP] Executing an External Program using exec()
Alright, I've been doing GTK work recently and decided I wanted a way to remove that damn PHP console that appears in the background. So to accomplish this, I wrote a C++ program to remove the window. Well the program works flawlessly on its own, but if php calls it using the exec() function nothing happens. Nothing at all. Any ideas? Chris Anderson aka Null PHP Developer / Nulltech PHP-GTK Documentation Writer / gtk.php.net STA-DoD, TO and D-Day Administrator / dod.stronger.org, to.stronger.org, dday.stronger.org Zeroping Staff Member / www.zeroping.com Volition Programmer / www.Volition-net.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quicker query?
Is there a faster (better) way to do the following: if ($result) { for ($cluster=1;$cluster200;$cluster++) { for($galaxy=1;$galaxy26;$galaxy++) { $sql=insert into galaxy select avg(cluster) as gcluster,sum(size) as gsize,sum(score) as gscore,avg(galaxy) as ggalaxy from universe where cluster='$cluster' and galaxy='$galaxy'; $result=db_query($sql); Thanks Michael
[PHP] Session save files are size 0
Session vars have stopped saving! code that was working no longer works because the session isnt saved.. I changed the user apache was running as from nobody to web, I'm not sure how this could have caused it, but this is when it started. the session files are created, in /tmp, but size 0 nothing is saved in them. changing back to user nobody doesnt help either. anybody have any idea what's gone wrong? thanks... ...Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] can we alias a php cgi in xitami web server?
Hi, I am new in PHP. I use Xitami and would like to know if we can aliase a php cgi in xitami like we can in Perl? Thanks, Sombat