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%20news&o=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 moreo

Re: [PHP] Compution of Fibonacci

2001-07-31 Thread Saquib Farooq
On Tue, 31 Jul 2001, Stig Venaas wrote: > 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

RE: [PHP] PHP_SELF

2001-07-31 Thread Ralph Guzman
I personally think it is best to display a form error on the form itself, rather than given them a blank page that shows an error, then have them click a button or link to go back to the form. Here is somewhat a quick and dirty example of how I go about forms and error checking. For this example I

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

2001-07-31 Thread Tim Ward
I have used this for a simple site map, it (or at least the principles involved) should do what you want. The trick is to put your search in a recursive function, that calls itself when the file is a directory. function sitemap($path) { if ($dhandle = opendir($path)) { echo(""

RE: [PHP] PHP_SELF

2001-07-31 Thread Ralph Guzman
echo "$formerror"; " METHOD="post"> "> "> -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 3:30 PM To: PHP Subject: [PHP] PHP_SELF Im trying to introduce some logic into a form.I am unsing $PHP_SELF as the target.

[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 (ht

[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

[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 --- http://yoursite.com/forward.php?ID=$ID>http://yoursite.com/image.php/whatever.jpg?ID=$ID>" ?> --- - file: forward.php ---

[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 = rou

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 you

[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 sugge

[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 er

[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_

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 ca

[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

[PHP] Re: fopen not opening url

2001-07-31 Thread Richard Lynch
Their CGI *MIGHT* be checking all sorts of things and determining that you are not a real browser and denying access... -- 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

[PHP] Re: move_uploaded_file permissions

2001-07-31 Thread Richard Lynch
> I tried the new move_uploaded_file() function. It seems to work fine > but doesn't assign any permissions to the moved file, not even for > reading. > > Is there any way around this? Can I define the permissions myself? http://php.net/chmod http://php.net/umask http://php.net/chown -- WARNING

[PHP] Re: Large Calculations

2001-07-31 Thread Richard Lynch
> I have a mySQL database holding baseball stats and I want to calculate > rankings on these players. Now I'd obviously want this to be as fast as > possible since I go through about 600 players but where is it best to make > them? In the SQL command itself or in PHP? Not even a close race: SQ

[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 and one at the end > , and i want to be able to read in everything between > these two comments. How sure are you that these comments won't change...? http://whatever.com/navbar.htm";)

[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 tha

[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 . &bar= ...> &bar= ...> &bar= ...> &bar= ...> -

[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 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 your .

[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; $ihttp://www.mp3.com,MP3 Site,Official mp3 site,0 http://www.winamp.com,Winamp,Winamp - MP3 Player,0 ---

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

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] Re: What tools do you use to develop PHP?

2001-07-31 Thread Ralph Guzman
Homesite: http://www.allaire.com/products/HomeSite/ -Original Message- From: Matt Rogers [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 7:55 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: What tools do you use to develop PHP? I like PHPCoder for Winblowz: http://www.phpide.de The

[PHP] problems configuring PHP

2001-07-31 Thread Peter Yung
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 enable Zend debugging... no checking for inline.

Re: [PHP]DB Logic help...

2001-07-31 Thread Michael Egan
Chris, You don't say which database package you're using so perhaps it is the underlying design logic you're after rather than specific code. One book I've seen recommended in a number of places is by Michael Hernandez (I think it's called 'Database Design for Mere Mortals'). I've had a look at

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 > > checki

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 9

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, FALS

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 PR

[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_H

[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 \

[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 PHP

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 ju

[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(*) fr

[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 Messag

[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!\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: http://chatmusic.c

[PHP] Re: storing array in mysql

2001-07-31 Thread elias
when you submit this form, PHP will give a array variable called $name you can store in in MySql as: now to reget the array, you can select it back from MySql and split it as: //elias "Matthew Delmarter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi a

[PHP] Re: Making graphs from within PHP?

2001-07-31 Thread elias
You can use the GD Image Library calls to draw a graph, http://www.php.net/manual/en/ref.image.php "Dr. Evil" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have a PHP application, and I need to display some dynamic data as a > simple line graph (a gif or

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

2001-07-31 Thread elias
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 between each text line??? > > $linkFile='link.txt'; > $links=file($linkFile); > $fs=fopen($linkFile,'w+'); > for ($i=0; $i if (count(e

[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 serv

[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: http://www.domain.sk/index

[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 within

[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

[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 libr

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 empt

[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 administrato

[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: Test: "; print $test; print "\n";} if ($adicionais){ print "Informações adicionais: "; print $adicionais; print "\n";} ?> This

[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 i

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 usin

[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 fro

[PHP] Upgrading to Windows 2000

2001-07-31 Thread Amarjit Jutley
We are presently running PHP on a Windows NT 4.0 platform and all is working correctly, we however want to upgeade to Windows 2000 server platform My question is the application compatible with Windows 2000. I cannot find the version but listed the size and date of the files installed. PHP.exe

Re: [PHP] Regex question

2001-07-31 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Boaz Yahav) wrote: > In case anyone is interested, eregi("HTTP/1.[01].302",$output) seems to > work :) "." == "any character" (including, but not necessarily, a period). If you want to match a period, escape it or put it in square braces: e

RE: [PHP] Re: HTTP header question.

2001-07-31 Thread Dave
>Matt has it right. I'm trying to go for a more professional looking >thing... and I do want it to display a notice when the login fails. I >have thought of another way to do it... but it's not pretty, so I'm >still open to suggestions. A while back I posted a pseudo-code >explanation of what i

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: > >ht

[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. How

[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 fin

[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 f

[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

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. \n";

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

2001-07-31 Thread Dave
have used the following on occasion, 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'); } http://mydomain.url/file.php?var=value')">link don't recall any probl

[PHP] Trying to avoid code exploits..

2001-07-31 Thread Meir Kriheli
Hi, I need another pair of eyes to see if I've overlooked something. I'm developing a form class for a project. The class can generate the form and upon submission validate it through a rules system. Rules are a valid php command which can evaluate as boolean, e.g.: $form->addRule('strlen({una

[PHP] Customer info PHP script

2001-07-31 Thread Kraa de Simon
Hi, I want to make (technical) information about our customers available to our developers though the web. Things like phone numbers, addresses, logins, passwords, IP's, dial-up info etc. Anyone know a good (open source) PHP script that can do this? Thanks. Met vriendelijke groet / With kind

[PHP] Embedding PHP into another application...

2001-07-31 Thread Richard Lyle
Hi Everyone, I'm currently looking at "Lua" for use as a embedded scripting language for our game, DarkSpace, http://www.palestar.com. However, I'd like to find out if PHP can be compiled into a LIB and linked into another application to be used as a embedded scripting language, much in the way

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=$nome&curriculo=$curriculo&interesse=$interesse&adicio nais=$adicionais&publicacoes=$publicacoes"; "Eduardo Kokubo" <[EMAIL PROTECT

[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 Wi

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) Thank

[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 present

[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 -e add: 30 7-19/2,23 * * * /backup/dumpit which runs /backup/dumpit

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 = unserialize(stripslashes($r

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 unsubs

[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 easie

[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 drive

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 0

[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 m

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 authenticatio

Re: [PHP] Customer info PHP script

2001-07-31 Thread B. van Ouwerkerk
Hi, Checkout sourceforce.net and freshmeat.net (I think).. one of them might have something.. If you've got the wrong freshmeat you'll get a lot of meat on your screen.. not the one that needs lots of coding ;-) Or you could code one yourself.. Bye, B. At 15:10 31-7-01 +0200, Kraa de Simon

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 y

[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 complet

[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 li

[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, e-mai

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 <[E

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

  1   2   3   >