[PHP] Where is the Error

2002-07-11 Thread millw0rm
y m i getting this error can ne 1 help me out Parse error: parse error, expecting `')'' in /home/test/public_html/mp3/music.php3 on line 10 ". "ID3 Tag info for:". "".$objFile.$Name.""; print "Artist: ". "".$strArtist.""; print "Track: ". "".$strSongName.""; print ; ?> -- PHP Gen

Re: [PHP] Re: Postal / Zip Code Proximity Search

2002-07-11 Thread Richard Lynch
> >Richard, > >I just tried performing a search on http://chatmusic.com/venues.htm > . >All I did was supply my zipcode. I didn't change/supply any other information. My trial just took 15 seconds, and that's pretty damn slow... I don't recall it being that sl

Re: [PHP] Where is the Error

2002-07-11 Thread John Legg
millwOrm There shouldn't be "." (full stop) before $strChar on line 10: $function_ret=ConvertBin(.$strChar); You also have issues on line 30 (the for loop). Rgds John - Original Message - From: "millw0rm" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 8:41

Re: [PHP] sort problem

2002-07-11 Thread andy
ok here we go: Table 1 user_table id points Table 2 reports report_id user_id rating The goal is to associate every user extra 50 points if he has a top 10 report. Top 10 report means the 10 reports with the highest ranking. This value is always changing, thats why I did not include it to the o

Re: [PHP] Table Making

2002-07-11 Thread Chris Hewitt
Jason, HTML tables will always be displayed left to right, top to bottom. This is why you should ensure that the data from your database table comes out in the right order. Use an ORDER BY clause in your SELECT statement. Designing the table layout to be suitable avoids the problem you curren

[PHP] Re: how to know upload progress status

2002-07-11 Thread val petruchek
> I don't know how to extract informations about upload progress status and how > to show informations to users. For example I want the users can see 30% of > upload completed, or the MByte just uploaded. It's impossible. PHP script starts when file is 100% uploaded on the server. -- Sincerely,

[PHP] Posting Problem

2002-07-11 Thread Sameh Attia
Hi, I have a problem with php.notes when I post to php.notes I get nothing...I have no error or no persmission ...nothing at all Regards -- Sameh Attia Senior System Engineer T.E. Data -- __ __ _ _ _/ /_/ /_(_)___ _ / ___/ __ `/ __/ __/ / __ `/ (__ ) /_/ /

[PHP] PHP CGI versus Module

2002-07-11 Thread Richard Lynch
>We have some cases where we run PHP as a standalone executable for scripting >certain processes that can be called from CRON, and we also have PHP for >Apache. Does the php.ini affect both? Specifically script times? Only if you compiled it with the exact same settings for that one --xxx-dir I c

[PHP] Re: getting the IP address off a visitor

2002-07-11 Thread Richard Lynch
>I am new to PHP and need some help. >I was wondering if there is a way to get hold of the IP address of a site >visitor with PHP. I'm trying to develop an interaction where the server >would recognise a new visitor from a returning visitor via the IP address. IP address is useless for identifica

Re: [PHP] Re: Cross-Site Sesison ID Propagation

2002-07-11 Thread Richard Lynch
>>All ya gotta do is have three invisible GIFs on all three sites that come >>from the *other* sites and the GIF does the set_cookie() of whatever their >>user ID is. > >I'm not sure where you got this idea, but you should investigate >further. A banner ad is usually nothing more than an image, a

[PHP] Re: Build-up of MySQL Sessions

2002-07-11 Thread Richard Lynch
>I'm running windows 2000 and the latest releases of PHP and MySQL. All >database connections are made with mysql_pconnect(). Connections build >up, however. The only person connecting to this webserver at the moment >is myself. It seems that it opens connections and keeps them open, but >doesn't

[PHP] Re:

2002-07-11 Thread Richard Lynch
Note that this only hides them from "dumber", not "dumb" :-) Your POST variables and such-like are all visible when doing "View Source", which is not particularly tricky, even for the average bear. The better way would be to use HTTP Authentication (search php.net for it). While this could stil

Re: [PHP] Dual Server...

2002-07-11 Thread Richard Lynch
It might be easiest to have: --- default.asp <% ' Some ASP I've forgotten that redirects to http://example.com:8080/index.htm %> And your real site, on port 8080, served up by Apache, will be fine, so long as the links are absolute, and httpd.conf is configured correctl

[PHP] Re: Qmail and PHP

2002-07-11 Thread Richard Lynch
>You know really anoying mailing lists that send you e-mail you don't want >Wait... thats called spam... well... >to unsubscribe all you have to do is send an email back >[EMAIL PROTECTED] with the subject "REMOVE" > >PHP >=== >Can this wonder process things like that Perhaps... You'll migh

[PHP] Re: No server var array, why

2002-07-11 Thread Richard Lynch
>I just moved an application from one Linux server running Apache to another >running Apache. The version of Apache on both is 1.3.12. The version of PHP on >one is 4.0.3pl1 and on the other it is 4.0.1pl2. > >Here is what is baffling for me: one the second server the $HTTP_ENV_VARS array >is em

[PHP] Re: Odd Request: Image 2 HEX

2002-07-11 Thread Richard Lynch
>I'm using a Zebra label printer in an application I have and in order to >display an image on the label, according to the ZPL II printer language, >any image must be converted to HEX code. Does anyone hvae a code snippet or >know of a free utility that will take a graphic image (BMP, GIF, JPG,

[PHP] Re: header()

2002-07-11 Thread Richard Lynch
>I'm trying to change some information in the header...lets say that User >Agent for example...but it just wont change. > >putenv() will change the User Agent..but nothing else will > >$ua = "Mozilla/4.0 (compatible;)"; > >header("User-Agent: $ua\n", TRUE); >header("Accept: */*", TRUE); > >//puten

[PHP] Re: Wait/Timeout

2002-07-11 Thread Richard Lynch
>Hi! > >I've been using PHP to write shell scripts and was wondering how to >implement the following: > > - I have a menuing system > - If a user does not give an input within a certain amount of time, I want >it to go to a default value > >I checked the PHP functions page and the closest thing I

[PHP] Re: Script File Permissions

2002-07-11 Thread Richard Lynch
>I've been trying and trying to get my site to work lately and all but one >part does. Of course that one part is the most important part (it always >is). > >My problem is probably rather simple to most of you, but I don't know how to >get around it: My script does not have permissions to write/a

[PHP] Re: exif_read_data to read, and to write ...?

2002-07-11 Thread Richard Lynch
>Hi, > >I am making a script to generate counter image on the fly for the office > >web site, and i have noticed that my dynamically generated jpeg images >bears following comment: "CREATOR: gd-jpeg v2.0 (using IJG JPEG v62), >quality = 100" > >Does anyone know how to insert user defined comments

Re: [PHP] sigh... forms

2002-07-11 Thread Richard Lynch
>Speaking of forms, and I'm sure lots have asked this before me, but anyone >know anywhere I can go to see some examples or existing code for >automatically generating and and validating dynamic forms? > >Wait though, I'm already doing this myself. To explain further, what I >really want is an

[PHP] Re: PHP code optimization

2002-07-11 Thread Richard Lynch
>Question on optimizing code for quicker runtimes. >Which is quicker (this is on a webpage also..NOT >commandline)? > > > >OR > > abc You will not be able to measure the difference until you have a zillion of them... >Both do the same thing and are legit but wondering >which is better from an

[PHP] Re: CANT GET STUFF TO WORK

2002-07-11 Thread Richard Lynch
>Hello, I am wondering if you could help me... I can't seem to figure out >how to get sessions working. >Thank You, >Mike > We'll need a lot more info than this... What part is not working? Set your browser Cookie settings to "Ask every time" for starters. Are you getting the cookies from:

[PHP] Re: multi dimensional arrays / radio buttons / mass confusion on my part

2002-07-11 Thread Richard Lynch
>Ok.. what I have is a database of first names and last names, and some other >columns that don't matter here. > >A form is presented to a user, lets them enter a bunch of names, attributes >of the person, etc. > >After submission, each record is checked against the current database to see >if the

[PHP] Re: The code to the pages that I can't figure out.

2002-07-11 Thread Richard Lynch
>it starts here ... >http://counter.funyon.com/autocounter/signup/signup.phps >then goes to here ... >http://counter.funyon.com/autocounter/signup/Signup1.phps " ; ?> You shouldn't need to send their session ID if Cookies are turned on, but if you want to send it, you'll have to spel

Re: [PHP] Script File Permissions

2002-07-11 Thread Richard Lynch
>I hope that I can get permissions, but I bet you're right. Probably just >have to create a database, which I planned on doing (and know how to). I >really did want to use XML though, oh well. Using a database does not in any way, shape, or form preclude you from using XML. XML is just text.

[PHP] Re: Mail() function

2002-07-11 Thread Richard Lynch
>I wonder if there’s a way to *HIDE* some parts from the Heading of the >emails sent with PHP. I’m trying to create an anonymous mail sender but >in the header of the message appears: > >Received: (from httpd@localhost) >by www.whateverdomain.com (8.10.2/8.10.2) id g69MEA527130; >

Re: [PHP] $_REQUEST???

2002-07-11 Thread Richard Lynch
>Considering all of this... Would it be better simply to turn >register_globals = On if the vast majority of the stuff you have on your >site is simple search engine type stuff and/or GET variables? That's the reason why register_globals was originally ON. Actually, going way back, I don't thin

Re: [PHP] php loopholes

2002-07-11 Thread Richard Lynch
>I just wish RedHat's updater worked as seamlessly as Microsoft's. MUHAHAHA >;) I dunno what I screwed up where, but I never have gotten up2date to work :-( Damn thing takes me to a web-page, I pick what I want, then it takes forever, then it pukes somehow. It's been so long since I bothered t

[PHP] Re: How do I import tables into MySQL from web page ...

2002-07-11 Thread Richard Lynch
>Hi, I am trying to import some tables from a dump file into a MySQL database >from a php web page. What is the best way to do this without using backticks >(fpassthru, system, exec or something else) and test for success or failure? >I tried the following and while it works, my test for success o

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-11 Thread Richard Lynch
>Thanks for pointing out the syntax error. I added the space after the -u but >it did not make any difference. It still gives the same result, that is >"Success", when it actually fails. What I am trying to figure out is how I >can tell if it failed (did not create the tables)? The $status variabl

Re: [PHP] Function source?

2002-07-11 Thread Richard Lynch
>No, they are written in C. And yes, you can of course download the C >source code from php.net. If you are interested in a particular PHP function, there's even a really nice interface at http://cvs.php.net that lets you look at it without downloading the whole darn thing. VERY nice. You don't

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-11 Thread Richard Lynch
>But if system() thinks it is a success because the command executed, even >though MySQL returns an internal error on the command line, why is'nt the >last line of the MySQL error message stored in the variable as the system() >manual suggests it should be when system() thinks it is a success? *M

[PHP] Re: T_string error

2002-07-11 Thread Richard Lynch
>Can someone tell me what the following error means, >and how to fix it...please? > >Parse error: >parse error, unexpected T_STRING in >c:\program files\apache >group\apache\htdocs\phpbb\language\lang_english\lang_main.php > on line 629 > >this is the code on that page: > >$lang['Avatar_filesize']

[PHP] Re: shtml & php in the same file?

2002-07-11 Thread Richard Lynch
>I'm working on this site that is all shtml files... in order to add >some dynamic content, it just includes php scripts in different >places. However, sessions don't work unless you start it before >outputting anything to the server and that's what's needed now... > >I don't want to change all

Re: [PHP] Exporting mySQL Table Data to .csv

2002-07-11 Thread Richard Lynch
>I use phpMyAdmin which enables me to take dump of >mySQL Table Data into Comma Seperated Values file >(.csv) > >Now, i have to create such a program that accomplishes >this, without using phpMyAdmin. Can someone guide me >to this procedure.. Since PHP has a fget_csv function (or something like t

[PHP] Re: strange php output

2002-07-11 Thread Richard Lynch
>I'm trying to do a little trick with my new site. i have one main php >script, index.php which includes the header and footer scripts and the >page script between them. the page script is determined by $page, which >is set to "main" if it doesnt exist already. $page . ".php" is then >inclu

[PHP] Re: PHP 4.2.1 / Apache

2002-07-11 Thread Richard Lynch
>HELLO, > >I just installed PHP 4.2.1. I am using a Redhat 7.3, installed as server >with Apache. > >My problem is I can t compile it as a module for Apache : > >./configure --with-apache=/usr/include/apache > >configure: error: Invalid Apache directory - unable to find httpd.h under >/usr/include

[PHP] Re: Storing values in Session

2002-07-11 Thread Richard Lynch
>I want to add a set of values to the session variable $BOOKS. This is the >code which I used. > > if($BOOKS=="") > { > #this seems to be the first book which the user has selected > $BOOKS = $bookid; #this param comes from the URL > } > else > { > $BOOKS = $BOOKS+","+$bookid; > } > >Here the '

[PHP] Re: cookie ( still not working )

2002-07-11 Thread Richard Lynch
>i simpley put an cookie with : > >setcookie("gfo_cms" ,$sessid , ''); That's wrong. You should be passing a TIME in for the third argument, or nothing at all. Also, due to an IE bug, if you *DO* pass in a TIME, you *MUST* also pass in a non-empty path. '/' will be fine. So, if you want a '

[PHP] Re: count number of downloads

2002-07-11 Thread Richard Lynch
>I have a php-script with which one can download a file with a specific format >like this: > > header("Content-type: application/specific"); > header("Content-Disposition: attachment; filename=$name.sqrfld"); > echo ("output funny stuff..."); > >and i will count the number of downloads in a datab

Re: [PHP] strange stuff in a class

2002-07-11 Thread Richard Lynch
>> class test { >> function test() { >> $globals['test2'] = &$this; >> } >> } >> $test1 = new test(); >> >> The problem hier is that $globals['test2'] is a copy of >> $globals['test1'] not a >> references. > >Use "$GLOBALS" rather than "$globals" I think he's building his o

[PHP] Re: Wildcard

2002-07-11 Thread Richard Lynch
>I’m trying to figure out how to do a search trough a MySQL db using LIKE >or = but the thing is that I have 3 select boxes from where to choose >the search terms. Can I use something like a wildcard instead of making >several IF statements like this? > >SELECT * FROM table_name WHERE col1 = value

Re: [PHP] Re: cookie ?

2002-07-11 Thread Richard Lynch
>> Do you remember to reload the page after the cookie is sent? (some >> browser cant see the cookie at the page it sent but first after it >> have been reloaded!). > >Actualy this is not browser issue but PHP issue No, that's just how cookies work. PHP can't get a cookie from the browser befo

[PHP] Re: Display criteria

2002-07-11 Thread Richard Lynch
>I want to display data based on the criteria selected by the user eg click >on size to display smallest to largest, or by price smallest to highest, >location etc etc > >what is the code I need? Assuming PHP/MySQL, you'd want something not unlike: \n"; echo " \n"; echo "^v\n"; echo "

[PHP] Re: cookies

2002-07-11 Thread Richard Lynch
>Nope thats not they way >If you don't specify a expire date it will live for ever or until you delete >it. > >The only way is to set it with an expiry date and then it will delete >it'self when the browser closes. >Check this by running a file on the same domain with phpinfo(); No. If you s

[PHP] Re: if syntax

2002-07-11 Thread Richard Lynch
>Is that also correct?? No brackets needed? Two Comments: The "alternate syntax" with the colons is passe -- I think you'd have to dig pretty deep to find a script old enough that uses it for anything other than demonstration purposes. (Rasmus?) You don't *HAVE* to have {} for one-line claus

[PHP] Re: Images in Mysql

2002-07-11 Thread Richard Lynch
>the web server, how should the image be named [uniquely]? The problem is >that if the user specifes the name of the image file, there's a chance >he'll name another one the same way (and thus overwrite the original). I >was thinking of maybe a dual approach, where the user gives the image >fi

[PHP] Re: Getting PHP to read the mail!

2002-07-11 Thread Richard Lynch
>I'm writting an autoresponder system in PHP. and I'm using wget in my cron >jobs to process it. Is there a way that I can process incoming mail in PHP >and call the PHP using a similar method? > >Basically I want to go through all the email messages checking if they are >to [EMAIL PROTECTED] and

[PHP] Re: Development Tools

2002-07-11 Thread Richard Lynch
>I am looking for a good Development tool to write my PHP in and was >wondering what people are using out there. I will confess to not reading the entire thread, and if it was mentioned, I apologize, but I think ActiveState's Komodo might be worth a try-out. The Zend IDE is great for huge projec

[PHP] Re: session error ... I think

2002-07-11 Thread Richard Lynch
>what does this mean: > >Warning: Cannot send session cache limiter - headers already sent (output >started at /home/.edy/alexross/bleen.net/forum/discussion_fns.php:88) in >/home/.edy/alexross/bleen.net/forum/index.php on line 5 On line 88 in discussion_fns.php there is an echo or print or even

[PHP] Re: Question about PHP

2002-07-11 Thread Richard Lynch
>Hi, >I am not sure if it is a right email address to ask question, if it is not >plz disregard this email :) >if it is this is my Q: >I am reading a book about php, in its security section, it says " it is more >secure, as well as more efficient when installing PHP, to install PHP as a >SAPI m

[PHP] Re: Security with XML

2002-07-11 Thread Richard Lynch
>I've created a db like system with XML and PHP, and I want to require a >username/password to change the contents of the file. > >How should I go about documenting the username/password? The contents of >the site aren't really all to important (no financial info or anything like >that, mostly ju

[PHP] Re: Appending to a file

2002-07-11 Thread Richard Lynch
>I'm just curious if there's a function that allows you to see how many lines >there are in a file. I could just set up a while(!feof($fp)) { fgets($fp); >count++; } obviously, but I'm curious if there's a function built in like >"flines($fp)" that I haven't noticed at php.net? If it's a relativ

[PHP] Re: Retrieving/Displaying hyperlinked images with PHP

2002-07-11 Thread Richard Lynch
>I am trying to build a "product detail" page that pulls data from a MYSQL >database using PHP. The data for the page includes product images, which I >am trying to link to (i.e. from their location on the web server) instead of >loading the images into the database. However, I cannot find any sam

[PHP] Re: Help with Configure Options

2002-07-11 Thread Richard Lynch
>I am thinking of moving PHP-based web site to a new server. In doing my due >diligence, I see that the new server has some different PHP configure >options. > >I was able to make sense of most of them by looking through the PHP web >site. But I'm still stumped by some of them. I'm hoping peopl

[PHP] Re: is their a jobs mailing list?

2002-07-11 Thread Richard Lynch
>But I found nothing about a jobs mailing list. I'm really a Perl programmer and >we have jobs.perl.org which has a list which does a really good job. There used to be a nifty jobs database tied into php.net, but I think it was not getting utilized well, and the original author ended up having

[PHP] Execute script then output image.

2002-07-11 Thread JJ Harrison
Sorry, I lost the email that contained the info and I can't find it in the archives. How do I output a static image through a php script? it had something to do with headers but I can't remember exactly what. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (htt

Re: [PHP] Re: cookies

2002-07-11 Thread Daniel
Surely it would be better to use Sessions in this case? "Danny Shepherd" <[EMAIL PROTECTED]> wrote in message 08c501c22825$932917c0$0200a8c0@DANNYS">news:08c501c22825$932917c0$0200a8c0@DANNYS... > No, I just tested it myself - if you set a cookie with no expire date it > exists until the browser

[PHP] Character Array

2002-07-11 Thread Daniel
Is there an easy way to get an array of characters from a string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Character Array

2002-07-11 Thread David Otton
On Thu, 11 Jul 2002 12:08:59 +0100, you wrote: >Is there an easy way to get an array of characters from a string? $str = 'string'; $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); print_r($chars); from http://www.php.net/manual/en/function.preg-split.php djo -- PHP General Mailing

Re: [PHP] sort problem

2002-07-11 Thread Justin French
"If he has a top-ten report"... is that a one-off thing? Or is it a weekly thing? Or is that every time his report get's into the top ten (in which case hovering around 10-11 would be the best bet!!)?? You need to decide WHEN the user is awarded the 50 points for being in the top ten. For exam

Re: [PHP] Table Making

2002-07-11 Thread Justin French
I hate to think what sort of a burden this would place on ther server, but... You could always find out how many rows there are, then run individual queries for each cell of the table. In other words, to achieve this layout: 1 4 7 2 5 8 3 6 9 You would do queries in this order: 1 4 7 2 5 8 3

Re: [PHP] Character Array

2002-07-11 Thread Jean-François GAZET
> >Is there an easy way to get an array of characters from a string? > $str = 'string'; > $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); > print_r($chars); A string is already an array of chars : $toto="test"; echo $toto[0]; // prints t echo $toto[1]; // prints e echo $toto[2]; // prin

[PHP] FW: [PHP-WIN] More bzip woes! No file written...

2002-07-11 Thread Mikey
I know it is cross-posting, but I thought I might get an answer here... TIA, Mikey > -Original Message- > From: Mikey [mailto:[EMAIL PROTECTED]] > Sent: 09 July 2002 19:51 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] More bzip woes! No file written... > > > Hi ng! > > Well, I have fi

Re: [PHP] Execute script then output image.

2002-07-11 Thread David Otton
On Thu, 11 Jul 2002 21:00:36 +1000, you wrote: >How do I output a static image through a php script? > >it had something to do with headers but I can't remember exactly what. You need to output the correct content-type header for the image (eg image/gif), take it's size and output it as content-

Re: [PHP] Execute script then output image.

2002-07-11 Thread JJ Harrison
There was a much simpler way. It just said the location of the file. I could use your method but the other one was much simpler. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 11 Jul 2002

Re: [PHP] Character Array

2002-07-11 Thread David Otton
On Thu, 11 Jul 2002 13:50:59 +0200, you wrote: >> >Is there an easy way to get an array of characters from a string? >> $str = 'string'; >> $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); >> print_r($chars); > >A string is already an array of chars : >$toto="test"; >echo $toto[0]; // pr

Re: [PHP] Character Array

2002-07-11 Thread Michal Dvoracek
Hello, IMHO string is array of characters so is possible: $str = 'string'; for ($i = 0; $ < count($str); $i++) echo $str[$i]; Regards, Michal Dvoracek [EMAIL PROTECTED] Capitol Internet Publisher, Korunovacni 6, 170 00 Prague 7, Czech Republic tel.: ++420 2 3337 111

Re: [PHP] Execute script then output image.

2002-07-11 Thread David Otton
On Thu, 11 Jul 2002 22:01:03 +1000, you wrote: >> You need to output the correct content-type header for the image (eg >> image/gif), take it's size and output it as content-length, and >> suppress error reporting. Then output the image data. >There was a much simpler way. It just said the locat

[PHP] session_start and HTTP headers in Mozilla, plz help

2002-07-11 Thread Lars Olsson
Hi! I've run across a problem when using session_start and HTTP headers in Mozilla. I'm trying to write a snippet of code that checks whether a user has logged in or not. If the user has a session variable set I want to display the page and if he or she hasn't I want to give them a 403 Forbid

[PHP] MAIL FROM NO ONE

2002-07-11 Thread vins
Hi... I've just checked out a script from hotscripts.com that send email from and smtp server... I've managed to say the email has come from a server that doesn't exist but the email can still be traced... is there know way to build a php smtp server ? -- PHP General Mailing List (http://www.

Re: [PHP] Re: Development Tools

2002-07-11 Thread Al Baker
I've picked up PHPed, Zend IDE, and Dreamweaver MX. - ZendIDE has the best code-completion and editing features out of all of them, best auto-tabs and auto completes. - PHPed is ok, better with database and total MySQL development then Zend IDE. - Dreamweaver MX has limited PHP support but it

[PHP] PHP 4.3.0-dev and gd

2002-07-11 Thread Kevin Waterson
trying to get the built in gd to work without luck I am using redhat and it has gd 1.8.4(or something) but the newer compiled version does not seem to install. I check with phpinfo and it just says 1.6.2 or higher but none of the 2.* functions work so I assume the new gd did not install. my confi

[PHP] HELP using Next() in session array

2002-07-11 Thread Leonid Vaner
Hey .. for some un known reason .. next doesnt work properly on session array ... when the code below gets execuded .. next only traverses to a seconde element :( IS it a bug or just me? -- CODE - Question = "1"; $questionData->Help = "1"; $_SESSION_program [] = $questionData;

RE: [PHP] Development Tools

2002-07-11 Thread Martin Clifford
I usually always have my content dynamically generated by functions, or displayed in include files. I'm not a fan of cluttering up my apps with content. Martin Clifford http://www.completesource.net (Now Open!) >>> "Lazor, Ed" <[EMAIL PROTECTED]> 07/10/02 05:38PM >>> I am too. I've developed

Re: [PHP] Re: how to know upload progress status

2002-07-11 Thread S.
Thanks for informations, I'll try to work on a different approach, maybe analyzing the dimension of the temporary file during upload (if it is possible identify the temporary file and monitoring it with another script). Thanks for your help, S. Il 11:55, giovedì 11 luglio 2002, val petruchek h

[PHP] Newbie Logical opertaor question

2002-07-11 Thread Rw
I have been trying this to no avail. Tryng to say the equivalent of: IF (var1 = 1 AND var2 = "a" or "b" or "c") i.e. yield true if 1 and a OR 1 and b OR 1 and c :-) Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Postal / Zip Code Proximity Search

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 03:11:08AM -0500, Richard Lynch wrote: > uname -a gives me: > OpenBSD o2 2.9 conf#0 i386 > But I don't even know how to get the /proc/sysinfo or whatever it is under > this OS... "less /var/run/dmesg.boot" works on my ISP's NetBSD system. --Dan -- PHP cla

RE: [PHP] Table Making

2002-07-11 Thread joakim . andersson
This is one way of doing it: - calculate how many rows are needed given the total number of records (mysql_num_rows()) and how many columns you want. - loop through all records and store them in a two-dimensional array starting at arr[0][0] to arr[maxrows][0] and then increment the 'column' and s

Re: [PHP] Generating word documents based on fields in a browser

2002-07-11 Thread Michael Davey
> $word=new COM("word.application") or die("Cannot start MS Word"); > print "Loaded word version ($word->Version)\n"; > $word->visible = 1 ; > $word->Documents->Add(); > $word->Selection->Typetext("This is a test"); > ?> > > does anyone recognise this? Oh yes - this would be Word via COM - i

Re: [PHP] Newbie Logical opertaor question

2002-07-11 Thread Martin Clifford
You'd have to separate it like so: if($var1 == 1 AND ($var2 == "a" OR $var2 == "b" OR $var2 == "c") { // do stuff here if true } else { // do stuf here if false } HTH Martin Clifford http://www.completesource.net (Now Open!) >>> "Rw" <[EMAIL PROTECTED]> 07/11/02 09:11AM >>> I have been

Re: [PHP] Newbie Logical opertaor question

2002-07-11 Thread Martin Clifford
Fixing the below, since it would produce a parse error (I forgot a parenthesis, hehe) Martin Clifford http://www.completesource.net (Now Open!) >>> "Martin Clifford" <[EMAIL PROTECTED]> 07/11/02 09:29AM >>> You'd have to separate it like so: if($var1 == 1 AND ($var2 == "a" OR $var2 == "b" OR $v

[PHP] MS SQL Server and ODBC

2002-07-11 Thread Tim Nields
I am attempting to connect to a MSSQL 2000 database from a linux box. I have installed freetds successfully and configured php with sybase as directed by freetds. I configured the freetds .conf file. However this is where I have questions. The freetds.conf file only asks for the ip address of

[PHP] Re: MS SQL Server and ODBC

2002-07-11 Thread Michael Davey
I don't really know much about freetds so this could all be wrong, but... when you set-up a DSN on a server, the database is specified there - hope this helps. Mikey "Tim Nields" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am attempting to connect to a M

Re: [PHP] sort problem

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 11:30:16AM +0200, andy wrote: > > Table 1 user_table > id > points > > Table 2 reports > report_id > user_id > rating > > The goal is to associate every user extra 50 points if he has a top 10 > report. > Top 10 report means the 10 reports with the highest ranking. This

[PHP] Re: setcookie then redirect

2002-07-11 Thread Cord Schneider
Hi David, Your question has seen much debate in this newsgroup. I had much the same problem and solved it by writing the following function: /** * wrapper for header( "Location: url" ) */ function redirect( $url, $showMoved=false ) { // set refresh to target $url header( "Refresh: 0; url=$

Re: [PHP] MS SQL Server and ODBC

2002-07-11 Thread Adam Voigt
Check out the "mssql_select_db" function. Call it right after the connection open. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-07-11 at 12:31, Tim Nields wrote: > I am attempting to connect to a MSSQL 2000 database from a linux box. I > have installed freetds successfully and configured php with

Re: [PHP] MS SQL Server and ODBC

2002-07-11 Thread Michael Davey
Errr - doesn't that function apply to mySQL databases only? Mikey "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Check out the "mssql_select_db" function. > Call it right after the connection open. > > Adam Voigt > [EMAIL PROTECTED] > > On Thu, 2

Re: [PHP] MS SQL Server and ODBC

2002-07-11 Thread Adam Voigt
I wouldn't have said it if it did. Notice that it's MSSQL_select_db not MYSQL_select_db. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-07-11 at 10:03, Michael Davey wrote: > Errr - doesn't that function apply to mySQL databases only? > > Mikey > > "Adam Voigt" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] MS SQL Server and ODBC

2002-07-11 Thread Michael Davey
doh! "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I wouldn't have said it if it did. > Notice that it's MSSQL_select_db not MYSQL_select_db. > > Adam Voigt > [EMAIL PROTECTED] > > On Thu, 2002-07-11 at 10:03, Michael Davey wrote: > > Errr - does

Re: [PHP] MS SQL Server and ODBC

2002-07-11 Thread Michael Davey
However, this still wouldn't work for ODBC... "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I wouldn't have said it if it did. > Notice that it's MSSQL_select_db not MYSQL_select_db. > > Adam Voigt > [EMAIL PROTECTED] > > On Thu, 2002-07-11 at 10

RE: [PHP] Re: if syntax

2002-07-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 10:54 > > The "alternate syntax" with the colons is passe -- I think > you'd have to dig > pretty deep to find a script old enough that uses it for > anything other than > demonstration purposes.

Re: [PHP] Generating word documents based on fields in a browser

2002-07-11 Thread Craig
Thanks for all the info, i have found a temporary solution which i am currently going to develop If anyone is interested, I found the following at http://www.pscode.com/xq/ASP/txtCodeId.625/lngWid.8/qx/vb/scripts/ShowCode.h tm Thanks Again Craig -- PHP General Mailing List (http://www.php.n

Re: [PHP] MS SQL Server and ODBC

2002-07-11 Thread Adam Voigt
Ofcourse not. I didn't say it would. ODBC and FreeTDS (which is what he said he was using) are two totally different drivers. Thats like saying mysql_select_db wouldn't work for Oracle databases, ofcourse they wouldn't, there different drivers. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-07-11 at

RE: [PHP] another splice?

2002-07-11 Thread Ford, Mike [LSS]
> -Original Message- > From: David Duong [mailto:[EMAIL PROTECTED]] > Sent: 10 July 2002 22:57 > > Is their 1 function method to remove an element within an > array using its > key instead of its position within the element? You mean like unset($arr[$n]) ?? Cheers! Mike -

[PHP] Customise Index page using PHP????

2002-07-11 Thread Craig
Is there a way to create a customised version of the index directory structure using php? Eg listing all the pages in the specific directory when an index page isnt created? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newbie Logical opertaor question

2002-07-11 Thread Johan Holst Nielsen
Rw wrote: > I have been trying this to no avail. > > Tryng to say the equivalent of: > > IF (var1 = 1 AND var2 = "a" or "b" or "c") > > i.e. yield true if 1 and a > OR > 1 and b > OR 1 and c I would do something like this: $CheckArr = array("a", "b", "c"); if($var1 == 1 && in_array($CheckA

[PHP] compiling with mysql

2002-07-11 Thread Michael Hall
Another PHP compilation question ... I've just compiled PHP 4.2.1 --with-mysql. I added no path to mysql, and it worked fine as it always does. However, I'm keen to add mod_python as a DSO to Apache as well, and noticed in PHP's INSTALL notes that I'll probably need to recompile PHP with a path

[PHP] compiling and php.ini

2002-07-11 Thread Michael Hall
I've just compiled PHP 4.2.1 with Apache 1.3.24 on RedHat 7.2. Everything works just fine as usual. I've got a couple of queries, however. I compiled with the --enable-magic-quotes option, then figured this was a bad move as I've been caught out before with scripts that assume it is on. So, I co

  1   2   3   >