[PHP] Re: Text Database class

2001-07-31 Thread elias
I don't want to parse XML, nor to install or recompile PHP to support the DBM, I just want some class to do the text database manipulation from querying records, updating and inserting new ones. like simple SELECT form and UPDATE and INSERT. but not a complicated SELECT with tons of conditions

[PHP] Compution of Fibonacci

2001-07-31 Thread marke
hi! i want to write a php script for Compution of Fibonacci(it is a integer equal the sum of 2 numbers befor it).but there's a error:Fatal error: Maximum execution time of 30 seconds exceeded in C:\phpscr\Fibonacci.php on line 6.i don't know why it happens.it looks like the loop can't be

Re: [PHP] Re: Text Database class

2001-07-31 Thread Morten Winkler Jørgensen
Hi Elias This might be what you are looking for. Found on http://www.hotscripts.com - PHP - Scripts and Programs - Database Tools - TextDB (page 8 of 9, entry 76) Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Compution of Fibonacci

2001-07-31 Thread Pip Taylor
You need to find the php configuration script on your system. Under Windows, this is php.ini in you Windows directory. Search through this configuration file for: max_execution_time and change the value to something other than 30 seconds, this will allow your script to run for longer.

[PHP] extracting data from html

2001-07-31 Thread Adrian D'Costa
Hi, This mail is very looong as I have included the code. What I need is to extract certian text from the html file and dump it into mysql table. This is what the html looks like (code below). The mysql part can wait now. I have given comment between each file. As of now the php is just

Re: [PHP] Compution of Fibonacci

2001-07-31 Thread Muhv
Hi, Remove the ; after while! With ; while will loop only this line Muhv my code: ? $i=0; $a=0; $b=0; $c=0; while ($i 17); { print table; print trtd$i/td; $a=$c+$b; print td$a/td/tr; $b=$a; $c=$b; $i++; } ? -- Thanks.

Re: [PHP] Compution of Fibonacci

2001-07-31 Thread Saquib Farooq
sorry i said to remove the colon sign from the end of the while loop, what i meant was to remove the colon sign from the end of your while statement :). plus it looks better to change the $c=1 to $b=1 On Tue, 31 Jul 2001, Saquib Farooq wrote: hi well first of all you have to remove

Re: [PHP] Compution of Fibonacci

2001-07-31 Thread Stig Venaas
On Tue, Jul 31, 2001 at 11:59:07AM +0500, Saquib Farooq wrote: hi well first of all you have to remove the colon -- ; sign from the end of your while loop .. that will solve the problem for the time out. then there is problem with your code, this code will never get you

RE: [PHP] fopen not opening url

2001-07-31 Thread Lawrence . Sheed
Are you still having problems? Things to try: 1. Try and open the url directly in a browser. eg http://p.moreover.com/cgi-local/page?c=Music%20business%20newso=xml Does it return data (you may need to change the o=xml to o=html though). Some countries (like the one I'm in China, have

RE: [PHP] PHP_SELF

2001-07-31 Thread Ralph Guzman
? If($HTTP_POST_VARS){ // check required fields if(!age || !$name){ $formerror = You did not fill in all required fields; } ... // if form passed all error checks continue processing if(!$formerror){ // continue processessing... } } ? ?

[PHP] Re: Newbie: Site search, more than one directory

2001-07-31 Thread Richard Lynch
$cmdstr = grep -i $searchstr *; Add a -r in there before or after the -i part. -r will have grep search recursively. Read man grep for details. Warning: This will impact the performance of grep considerably if your site is deep/broad... -- PHP General Mailing List

[PHP] Re: storing array in mysql

2001-07-31 Thread Richard Lynch
I want to store the results of a multiple select input box in a mysql db. Store each possible selection as a different record in a separate table and then create a three-table join for which selections match which main records. You'll be tearing your hair out for the rest of time otherwise.

[PHP] Re: PHP_SELF

2001-07-31 Thread Richard Lynch
the form is submitted, do the logic check and act accordingly. Is it possible using $PHP_SELF as the target, or do I have to use 2 files: a form 'front end' with the php logic in the 'backend'?? #1. Under no circumstances should you trust JavaScript to have sanitized your data in any way,

[PHP] Re: search based on array

2001-07-31 Thread Richard Lynch
For example suppose I had an array of array(1,2,3). And I want to search like so: SELECT * FROM table WHERE id=arrayvalues $values = array (1, 2, 3); $sql_values = implode(', ', $values); $query = select * from table where id in ($sql_values); -- WARNING [EMAIL PROTECTED] address is an

[PHP] Re: IMAP4, krb4 and PHP4 - tix not handled right under apache modulevers

2001-07-31 Thread Richard Lynch
The problem I'm having now, is that c-client is able to kerberos authentication properly if php is compiled as a CGI, but when compiled as a server module, the ticket file gets mucked up. imap_open() invokes Hm WILD GUESSES ABOUND: When you say the ticket file gets mucked up, do

[PHP] Re: Banner Exchange Schema ??

2001-07-31 Thread Richard Lynch
Where in the world does JavaScript come into it?... http://yoursite.com/banner.php - file: banner.php --- ?php # Use some formula to do a weighted random selection of a banner ID echo A HREF=http://yoursite.com/forward.php?ID=$IDIMG

[PHP] Re: Why no color in graphic?

2001-07-31 Thread Richard Lynch
I'm simply trying to resize an image, which is working - sortof. It resizes properly, but it loses it's color. Why, and how do I correct it? Thanks. ? $pic_dir = _uimages; $picture = $pic_dir/mypic.jpg; $size = GetImageSize($picture); $width = round($size[0]/4); $height =

Re: [PHP] storing array in mysql

2001-07-31 Thread Richard Lynch
a:4:{i:0;s:1:1;i:1;s:1:2;i:2;s:1:3;i:3;s:1: When I output this to the screen I get the same as above. But when I try to echo the unserialized result I get nothing. I am using: echo $db_result-lists_actual (nothing is returned) Show more code... Also use View Source in your browser to

[PHP] Re: exec'ing sendmail?

2001-07-31 Thread Richard Lynch
I write: Return-Path: [EMAIL PROTECTED]\n Get rid of the and in there, and use \r\n, not just \n to be RFC-compliant. Also check you sendmail.cf to see if maybe you've disabled various people from forging their Return-Path: and if you have, alter sendmail.cf to let PHP get away with it.

Re: [PHP] Can't write to file via php, just via ftp...Can anyonehelp?

2001-07-31 Thread Richard Lynch
in interarchy, after you have uploaded the file, select the file and choose Set Permissions... from the Listing diresctory. then make sure the box for group write is checked. If you can do that, you can *PROBABLY* make it world-writeable WARNING -- DANGER -- WARNING Either of these suggestions

[PHP] Re: session_set_save_handler

2001-07-31 Thread Richard Lynch
I have found that I can still use my customer save_handler with the session.save_handler in the php.ini being set to 'files'. Since I implemented this function, we noticed that our other applications that do not call session_set_save_handler started having the following error: Fatal error:

[PHP] Re: require() results in session and header-sent errors

2001-07-31 Thread Richard Lynch
Betcha a dollar there's a newline after that last ? in the first of the two included files: ? define(INTRANET_DB,intranet); define(INTRANET_APPS_TABLE,apps); define(INTRANET_APPS_FOLDER,apps); define(INTRANET_FOLDER,/); file://Server Root define(INTRANET_TEST_PASSWORD,test); ?

Re: [PHP]DB Logic help...

2001-07-31 Thread Richard Lynch
I have a few pages on my website which need to be divided up into different columns and rows based on a category in a table. for example, on a links page, I have three different columns, one for bands, one for sites, and one for other things. I'm storing those things in the table with a

[PHP] Re: Realm Auth Via Non-Sessions

2001-07-31 Thread Richard Lynch
When a user leaves a realm(.htaccess) from which they have logged into is there any kind of notification back to the server? Nope. I would like keep a log of such activities and do not want to do any session type of jizz jazz(cookies etc). You either do sessions or you don't keep a log of

[PHP] Re: Call to a member function on a non-object error!

2001-07-31 Thread Richard Lynch
Fatal error: Call to a member function on a non-object in /home/cmradmin/public_html/thus/basket.php on line 304 Does anyone know what the flaming heck that means? I'm trying to fix this little problem which has only appeared since my webserver upgraded to PHP4. Line 304 contains this:

[PHP] Re: Reading from remote files

2001-07-31 Thread Richard Lynch
I am trying to read in a nav bar from a remote web page into my web page. There is a comment at the start !-- 1st Column start -- and one at the end !-- 1st Column end --, and i want to be able to read in everything between these two comments. How sure are you that these comments won't

[PHP] Re: splitting a string in half

2001-07-31 Thread Richard Lynch
I wish to split my databased string in half to be shown on 2 seperate columns, but also preserve whole words. Is there a function that does this already? Maybe a quick fix? Hopefully something that doesn't include html tags as part of the string to split. If it's not that specific then that's

[PHP] Re: calling javascript functions inside PHP

2001-07-31 Thread Richard Lynch
I use a PHP self-validating form for taking orders off my site. (on submit it calls itself and if there are no errors a send variable is set and it emails me the information, etc - standard stuff). Relying on JavaScript as your only validation is a BAD IDEA. The user could trivially bypass

[PHP] Re: How to get the post variable ?

2001-07-31 Thread Richard Lynch
In authentication.php it will call one html which will inturn contains frames and in one frame 4 links r there. For every link i will call one php file. I want to get one variable that is posted during login in this php file . FRAMESET ... FRAME SRC=a.php?foo=?php echo

[PHP] Re: Find and Replace

2001-07-31 Thread Richard Lynch
So, I want to rename them to *.inc.php No, you don't. :-) That allows hackers to surf to individual pieces of your code in deity knows what circumstances and do an end-run around any data-sanitizing you have in your .php files... That's even worse for security than revealing the contents of

[PHP] textfile??????

2001-07-31 Thread Muhv
Hi Why this code will make empty line between each text line??? $linkFile='link.txt'; $links=file($linkFile); $fs=fopen($linkFile,'w+'); for ($i=0; $icount($links); $i++){ if (count(explode(',',$links[$i]))==4){ $fout=fwrite($fs,$links[$i]); } } fclose($fs);

RE: [PHP] PHP_SELF

2001-07-31 Thread Jon Haworth
if ($post = 1 $Age = ) {echo NO;} else {echo YES;} Now here is what happens. On a first time view of the page it outputs 'NO' (Good). If I dont enter anything in the age field and submit the form it outputs 'NO' (Good). If I enter a value into the age field and submit, it outputs

Re: [PHP] Why is XML parser so slow?

2001-07-31 Thread terry chay
No the XML parser is not slow at all. Especially since the only one available in PHP 3 would have to be expat base. Since expat is an event based parser and a very well coded one, you should be able to extract strings from the XML document very easily. Note that there are some

Re: [PHP] problems configuring PHP

2001-07-31 Thread David Robley
On Tue, 31 Jul 2001 17:51, Peter Yung wrote: Hi, I am having a problem configuring PHP 4.0.5 for my Red Hat Linux 6.2 server. I am using Apache 1.3.12. When I try to configure PHP it comes up with the following error? checking whether to enable a memory limit... no checking whether to

RE: [PHP] Example high-profile PHP sites

2001-07-31 Thread Ralph Guzman
here are a few: http://www.marketplayer.com: they provide the real-time stock market simulations for sites like etrade.com and smartmoney.com that have these games. http://www.chek.com/ -Original Message- From: Maurice Rickard [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001

Re: [PHP] search array for value

2001-07-31 Thread Lenar
How do I search an array? For example if I want to know if $array contains 1... Regards, Matthew Delmarter This is bad, use in_array() or array_search(). in_array() returns TRUE if element is found in array. array_search returns the key of matching element, FALSE otherwise.

Re: [PHP] problems configuring PHP

2001-07-31 Thread Peter Yung
Sorry forgot to be in my configuration arguments. Here they are: #./configure --with-mysql=/usr/local/mysql \ --with-xml --with-apache=../apache_1.3.2\ --enable-track-vars - Original Message - From: David Robley [EMAIL PROTECTED] To: Peter Yung [EMAIL PROTECTED]; [EMAIL PROTECTED]

[PHP] Re: Can't write to file via php, just via ftp...Can anyone help?

2001-07-31 Thread elias
Hmm...I'm not a *nix guru, but I remember there is a command that allows you to change current user. so suppose it was called: changeuser, do this with PHP as web user: 1)execute changeuser [ftplogin] [ftppassword] normally the ftp user have the rights to change mode and write to files 2)execute

[PHP] Re: Cannot connect to db when running PHP as Cron

2001-07-31 Thread Richard Lynch
Here is the crontab entry: */1 * * * * /usr/local/bin/php ora_test.php /tmp/cron_oralog Warning: Oracle: Connection Failed: Error while trying to retrieve text for error ORA-12154 The user running the cron job probably doesn't have the various ORA environment variables set such as ORA_HOME

[PHP] Re: Cannot copy a file to a dynamic folder

2001-07-31 Thread Richard Lynch
// Make new directory function $default_dir = (D:\www\Proj\$textfield2\); The ()'s are silly... They force the string to be evaluated before any other expressions in this statement, and there aren't any. The \'s are bad, though. \ is a special character inside of and you need to put \\ to

[PHP] Re: Regular expressions

2001-07-31 Thread Richard Lynch
Your three str_replace calls might be faster anyway... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message

Re: [PHP] How is the management of memory by PHP?

2001-07-31 Thread Richard Lynch
I would like to know like is the management, that recourses the php utlize. I am making a work to university and I need of more information. I find in www.zend.com a article about Reference Counting, but i stayed confuse, if o recourse is of PHP 4 or of ZEND Engine.. Deep inside of PHP4

Re: [PHP] md5 crypt question

2001-07-31 Thread Richard Lynch
Yeah, I'm getting 2 and 0. Lame. What's the answer to this. Go back to your PHP source directory and start digging through config.log and config.cache or even re-run the configure to see what's going on with various crypt libraries. If you installed them in a non-standard place, maybe PHP

[PHP] Re: formating numbers to two decimal points - money - best ways

2001-07-31 Thread Richard Lynch
You mean like PHP's number_format function http://php.net/number_format :-) -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

[PHP] Re: method=post destroys PHPSESSID??

2001-07-31 Thread Richard Lynch
What if you lose the JavaScript and keep the POST?... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message

[PHP] Re: How make the time

2001-07-31 Thread Richard Lynch
The client wants to get a report written out over each hour like this: 11:002 Customers 11:1532 Customers 11:3012 Customers ... ... 22:3014 Customers Assuming you only allow them to put in valid :15 minute data in the first place: $query = select time_field, count(*) from

[PHP] Re: How can i pop my mails?

2001-07-31 Thread Richard Lynch
Use IMAP, which supports POP. Search php.net for IMAP -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message

[PHP] Re: date

2001-07-31 Thread Richard Lynch
how do i check that the current date is the end of month ? In PHP? $now = date('m/d/Y'); $parts = explode('/', $now); list($month, $day, $year) = $parts; $tomorrow = mktime($month, $day + 1, $year); if ($month != date('m', $tomorrow)){ echo LAST DAY!BR\n; } Probably can be done in SQL as

Re: [PHP] problems configuring PHP

2001-07-31 Thread Richard Lynch
Missing \ after some lines, and don't use relative directory to Apache -- use full path from / -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: php-qmail-sendmail...cjk

2001-07-31 Thread Richard Lynch
Warning: mail() is not supported in this PHP build in /usr/local/htdocs/test/newsletter/phpmynewsletter/include/cls.php3 on line 141 I think that means that whomever configured PHP specifically dis-allowed use of the function known as mail()... Now i thought to install SENDMAIL in server A

[PHP] open_basedir problem?

2001-07-31 Thread uhlar
Hello, I have a virtual domain www.domain.sk in config file. the domain resides in /home/user/www.domain.sk directory. I set up php_admin_flag open_basedir /home/user for that virtual domain, and in php.ini I have open_basedir = /home The user created this script: ? if(ERegI(^www,$HTTP_HOST))

[PHP] file upload problem - urgent help needed

2001-07-31 Thread Steve Brett
i know this has been posted before but i still haven't figured it out. the bloke who runs the server for a 'client' of mine has set safe mode on and therefore the standard file upload scripts fail. i needed to create a 'dump' of the database in text files whihc i've done by creating a dir

[PHP] Regex question

2001-07-31 Thread Boaz Yahav
I'm trying to find if a string exists inside a string. Instead of using strstr() twice I want to use eregi() once. What I want to check is if HTTP/1.1 302 or HTTP/1.0 302 exists in some $output. I'm trying something like : eregi([\HTTP/1.\]+[0-1]+[\ 302\],$output) eregi([HTTP/1.]+[0-1]+[

[PHP] php_oci8.dll

2001-07-31 Thread Liviu Popescu2
I have installed PHP4 manually to use it with Win2000 I did everything according to installation guide specifications. I uncommented, in php.ini, the line: extension=php_oci8.dll Afer I stopped and started the Web server, and try to load a page, I get: PHP Warning: Unable to load dynamic

Re: [PHP] Re: textfile??????

2001-07-31 Thread Muhv
I have Apache 1.3.20 + PHP4.0.6 + Windows NT 4.0! Is this problem, that I use Windows and not Linux??? File formats??? Muhv I tried it and it works good! Muhv [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Why this code will make empty line

[PHP] Sort by bigger count(*)

2001-07-31 Thread elias
Hello, I made a query that uses count(*) now how can i get the results sorted following the biggest count(*) result? -- 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

[PHP] window.open (javascript)

2001-07-31 Thread Eduardo Kokubo
I passed some vars to another page using window.open and it worked fine (but had to hide the toolbar). The problem is that wen I check their values like this: ?php if ($test){ print bTest: /b; print $test; print brbr\n;} if ($adicionais){ print bInformações adicionais: /b; print

[PHP] Workaround for binary arithmatic

2001-07-31 Thread Richard Ellerbrock
I am looking for a php only workaround to do binary arithmatic on large numbers (ip addresses represented as integer). Works fine for small numbers (smaller than signed long), but ip addresses are unsigned long. The following yeilds incorrect results: echo 2473474821 4; The correct answer

RE: [PHP] Regex question

2001-07-31 Thread Boaz Yahav
In case anyone is interested, eregi(HTTP/1.[01].302,$output) seems to work :) berber -Original Message- From: Boaz Yahav Sent: Tuesday, July 31, 2001 2:03 PM To: PHP General (E-mail) Subject: [PHP] Regex question I'm trying to find if a string exists inside a string. Instead of using

[PHP] also window.open(javascript)

2001-07-31 Thread Eduardo Kokubo
I know I sent I message to this list 10 seconds ago, but I have forgot to ask this, it's a different problem. I asked for a file name to upload via html form and tried to pass this file to another page using window.open to redirect to a new window (I submited first and tried to redirect it

RE: [PHP] Example high-profile PHP sites

2001-07-31 Thread Dave
Napster follow-up Audio Galaxy http://www.audiogalaxy.com as well. -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 4:59 AM To: Maurice Rickard; [EMAIL PROTECTED] Subject: RE: [PHP] Example high-profile PHP sites here are a few:

[PHP] php3 - php4

2001-07-31 Thread Liviu POPESCU
I have a lot of php scripts developed with php3. I've installed php4 and I get some warnings when I evaluate variables there are not set (are empty). In php3 there was no problem (no warning). If I modify the code by using empty($var) or isset($var) it's ok, but there are lots of such issues.

[PHP] Re: window.open (javascript)

2001-07-31 Thread elias
can you show us the code that does the window.open('myfile.php?test=hey') for example ? Eduardo Kokubo [EMAIL PROTECTED] wrote in message 016e01c119b4$d784d920$a102a8c0@cttmar">news:016e01c119b4$d784d920$a102a8c0@cttmar... I passed some vars to another page using window.open and it worked fine

[PHP] exec problem

2001-07-31 Thread KPortsmout
Hi I'm trying to create a script which my cron will run once a day to backup my MySQL database, but the exec command doesn't want to work no matter what I try... exec(mysqldump -h localhost -u user -p pass --opt DataBase BACKUPS/backup.mysql) or die(Problem); I have tried adding the full

[PHP] Re: php3 - php4

2001-07-31 Thread elias
Edit your PHP.ini file and change the error_reporting to: error_reporting=E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; show only errors Liviu Popescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a lot of php scripts developed with php3. I've installed php4

Re: [PHP] Re: window.open (javascript)

2001-07-31 Thread Eduardo Kokubo
This is the code. I use print (php) three times but in the end the code is generated correctly (another test I'm doing) . I just noticed that the last variable a pass can be checked using if, but the others can't. I also changed the name of the variable. instead of $test I use $publicacoes. ?

RE: [PHP] Re: window.open (javascript)

2001-07-31 Thread Dave
have used the following on occasion, script language=Javascript function Popup(page) { OpenWin = this.open(page, PopupWindow, 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1, width=775,height=500'); } /script a

Re: [PHP] Re: window.open (javascript)

2001-07-31 Thread elias
There doesn't seem to be any errors, but why don't you try to put the names near the '' w/ space characters between them: print window.open (\professor.php?nome=$nomecurriculo=$curriculointeresse=$interesseadicio nais=$adicionaispublicacoes=$publicacoes; Eduardo Kokubo [EMAIL PROTECTED] wrote

[PHP] Re: Upgrading to Windows 2000

2001-07-31 Thread Steve Brett
instalation under windows 2000 is very simple. just reinstall php. Steve Amarjit Jutley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... We are presently running PHP on a Windows NT 4.0 platform and all is working correctly, we however want to upgeade to Windows

RE: [PHP] Example high-profile PHP sites

2001-07-31 Thread Maurice Rickard
Hey, thanks, everyone for the examples! I also dug up a few others that are worth considering: http://www.dc.com/ Deloitte Consulting. Now *that's* a big name. Also HP, IBM, and, yes, Microsoft all run _some_ Apache/PHP servers (looking it up on Netcraft--use their OS vendors search)

[PHP] Re: Upgrading to Windows 2000

2001-07-31 Thread Bernie Kruger
Hi, I am running PHP 4.0.5 on Win2K. The ISAPI module gave me lots of headaches and crashed the server every other minute, but the CGI one runs like a dream. I am using IIS5. BK Amarjit Jutley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... We are presently

[PHP] Re: exec problem

2001-07-31 Thread Steve Brett
if you have a shell account write a batch file and install it in the crontab of the user whihc mysql runs under. i did this at work for a postgresql database and it owrks perfectly. something like this will work. crontab -u user -e add: 30 7-19/2,23 * * * /backup/dumpit which runs

RE: [PHP] Re: storing array in mysql

2001-07-31 Thread Warren Vail
What I have used to store an array in mysql is; $value = addslashes(serialize($array)); $query = INSERT INTO table (column) VALUES (\$value\) and upon retrieval $query = SELECT column FROM table; .. while($row = mysql_fetch_array($result)) { $value =

Re: [PHP] Workaround for binary arithmatic

2001-07-31 Thread Phil Driscoll
Use the gmp extension. -- Phil Driscoll -- 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

2001-07-31 Thread MindHunter
Hi, Is it worth the while to read up on PEAR? I have seen much of it but I don't know much about it. I am not a complete newbie anymore and I have developed quite a few DB driven sites. Any good readings that you know of? Ciao BK -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Embedding PHP into another application...

2001-07-31 Thread elias
I suggest you go to http://www.nombas.com they have a library that can be easily implemented in almost any language. After you have it implemented you'll be having a new scripting language that is like ECMAScript (or JavaScript) So since you're looking for something easy, JavaScript is more

[PHP] Re: Pear

2001-07-31 Thread Henrik Hansen
[EMAIL PROTECTED] (Mindhunter) wrote: Hi, Is it worth the while to read up on PEAR? I have seen much of it but I I would say it is, but have in my that it's under development don't know much about it. I am not a complete newbie anymore and I have developed quite a few DB driven

Re: [PHP] Re: storing array in mysql

2001-07-31 Thread elias
Yes true, you can use serialize. But since you know the format of your $array variable (which is simply holding one data type) you can safely use split() and join() better and smaller when stored in that field because they are comma seperated. Warren Vail [EMAIL PROTECTED] wrote in message

[PHP] Re: php_oci8.dll

2001-07-31 Thread elias
Basically if you don't have this file you can't use it. try to see if it exist first. If not go to www.php4win.de or www.php.net and download the complete PHP Win32 binaries. Liviu Popescu2 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have installed PHP4

Re: [PHP] Re: window.open (javascript)

2001-07-31 Thread Steve Brett
ive used a very similar function and found that javascript like single queted strings passed into it. i.e. java_function('link/to/file') just noticed in the original post that double quotes were used Steve Dave [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: Session life time

2001-07-31 Thread Steve Brett
check this in php.ini session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up Steve Sheni R. Meledath [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am using sessions for user authentication on

Re: [PHP] Workaround for binary arithmatic

2001-07-31 Thread Richard Ellerbrock
I thought about that but that would require almost everybody using my app (OpenSource) requiring a rebuild of php. This would really detract from its usefulness. -- Richard Ellerbrock [EMAIL PROTECTED] Phil Driscoll [EMAIL PROTECTED] 2001/07/31 04:02:50 Use the gmp extension. -- Phil

[PHP] Session life time

2001-07-31 Thread Sheni R. Meledath
Hi, I am using sessions for user authentication on one of our sites. I want to set up a time period for each session, ie, after a particular time period the session should automatically expire. How can this be achieved? Could you please help me. Many thanks Sheni R Meledath [EMAIL PROTECTED]

RE: [PHP] Re: storing array in mysql

2001-07-31 Thread Warren Vail
I never seem to be lucky enough to be sure of the type of data stored in a php array, since php handles mixtures of types so forgivingly, and because most of my data comes from forms, with users key in what they like, including double and single quotes, parentheses (and especially commas, how do

[PHP] Re: Pear

2001-07-31 Thread Henrik Hansen
[EMAIL PROTECTED] (Henrik Hansen) wrote: [EMAIL PROTECTED] (Mindhunter) wrote: Hi, Is it worth the while to read up on PEAR? I have seen much of it but I I would say it is, but have in my that it's under development don't know much about it. I am not a complete newbie

[PHP] Re: Upgrading to Windows 2000

2001-07-31 Thread Steve Brett
indeed. i also use the cgi version. Steve Bernie Kruger [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am running PHP 4.0.5 on Win2K. The ISAPI module gave me lots of headaches and crashed the server every other minute, but the CGI one runs like a

[PHP] disable?

2001-07-31 Thread Jeremy Morano
Hi, I was wondering if there was any way to dissable something from the mouse right click? ex: When a user visits my site, I don't want them to be able to use the copy shortcut on the right mouse click. How would I do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Workaround for binary arithmatic

2001-07-31 Thread Phil Driscoll
On Tuesday 31 July 2001 15:26, Richard Ellerbrock wrote: I thought about that but that would require almost everybody using my app (OpenSource) requiring a rebuild of php. This would really detract from its usefulness. -- Richard Ellerbrock [EMAIL PROTECTED] Phil Driscoll [EMAIL

Re: [PHP] Worldpay module an Exchange Project e-commerce site

2001-07-31 Thread Java Jock
I recently just started using PHP. I searched this list's archives first, but couldn't find an answer to my question: Whenever I get a syntax error it's always reported on line 1, even when it's obviously not on line 1. I *never* get an error reported on any other line #. Any thoughts on

Re: [PHP] disable?

2001-07-31 Thread Daniel Rezny
Hello Jeremy, Tuesday, July 31, 2001, 4:29:22 PM, you wrote: JM Hi, JM I was wondering if there was any way to dissable something from the mouse JM right click? JM ex: When a user visits my site, I don't want them to be able to use the copy JM shortcut on the right mouse click. JM How would I

RE: [PHP] disable?

2001-07-31 Thread Jon Haworth
Don't bother. Whatever you do (and it's usually a naff Javascript, search javascript.internet.com or equivalents for examples), people can get round it. You are wasting your time trying to stop this. If someone really wants your content they can - write it down - take screenshots - use a safe

Re: [PHP] Java Jock - 1st line syntax

2001-07-31 Thread Greg Fyans
you got an example you can show us -- Greg Fyans www.syntonik.co.uk I recently just started using PHP. I searched this list's archives first, but couldn't find an answer to my question: Whenever I get a syntax error it's always reported on line 1, even when it's obviously not on line 1.

[PHP] Syntax Error On Line 1

2001-07-31 Thread PHP WannaBe
I recently just started using PHP. I searched this list's archives first, but couldn't find an answer to my question: Whenever I get a syntax error it's always reported on line 1, even when it's obviously not on line 1. I *never* get an error reported on any other line #. Any thoughts on

[PHP] whats wrong?

2001-07-31 Thread Jeremy Morano
Anythig visibly wrong with this? FORM METHOD=post ACTION=userinfolistbycompany2.php INPUT TYPE=hidden name=uid value=? echo $uid; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Good Tutorial

2001-07-31 Thread Steve Wright
Hey, I have done a few tutorials, but they aren't very long, and have only covered a small amount of what i need to know. Can anyone recommend any good comprehensive tutorials out thier, and/or any good books that would be worth purchasing. Kind Regards, Steven Wright

Re: [PHP] whats wrong?

2001-07-31 Thread Jeff Lewis
Remove the quotes around $uid Jeff - Original Message - From: Jeremy Morano [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 11:09 AM Subject: [PHP] whats wrong? Anythig visibly wrong with this? FORM METHOD=post ACTION=userinfolistbycompany2.php INPUT

[PHP] RE: php_oci8.dll

2001-07-31 Thread Liviu Popescu2
I've installed php in c:\php\ folder: Volume in drive C has no label. Volume Serial Number is E422-FD1C Directory of C:\php 07/31/2001 03:06p DIR . 07/31/2001 03:06p DIR .. 07/19/2001 09:31a DIR

Re: [PHP] whats wrong?

2001-07-31 Thread Matt Greer
on 7/31/01 10:09 AM, Jeremy Morano at [EMAIL PROTECTED] wrote: Anythig visibly wrong with this? FORM METHOD=post ACTION=userinfolistbycompany2.php INPUT TYPE=hidden name=uid value=? echo $uid; ? The quotes around $uid are ending value prematurely. html thinks value is ? echo Just drop

RE: [PHP] Good Tutorial

2001-07-31 Thread Kurt Lieber
The book discussion has been beat to death on this list -- check the archives (www.php.net) and you'll find a long list of opinions on various books. As for tutorials, the best way I've found to learn PHP is to come up with a project and simply do it. For instance, I created a PHP-based

Re: [PHP] Good Tutorial

2001-07-31 Thread DrWebPat
www.devshed.com www.phpbuilder.com www.thickbook.com www.phpwizard.net hotwired.lycos.com/webmonkey/programming/php/ www.hotscripts.com is great for finding php scripts that are available hth, Pat

  1   2   3   >