[PHP] Submitting form in new window!

2002-07-09 Thread Thomas Edison Jr.
Hi, When i press the Submit button, i would like it to open in a new Javascript Windows with well-defined characteristics like size, width etc. I create a window.open function and gave the name of my PHP page .. but the Form Variables are not passing into it.. Thanks, T. Edison Jr. = R

Re: [PHP] Re: mbstring: Japanese conversion not working for me

2002-07-09 Thread Jean-Christian Imbeault
I tried the following but it did not seem to do anything. [some text here in japanese ...] 1 : 111$B$"$$$&$($*!!4A;z$R$i$,$J(B1235 [now i want to change the charset so] 2 : 111$B!"!V!"!"!"%r!"%#!"%'!#!#%(%A%5yh%a!"r&%c!"%O(B1235 (I tried EUC/EUC-JP/EUC_JP but nothing worked). Jc -- P

[PHP] Delete me from this fuckin list!!!!!!!! My mailbox is full

2002-07-09 Thread Erik Hegreberg

[PHP] PLZ HELP -- - GET & POST form problem

2002-07-09 Thread Lucam
Hi, I've this problem: Server Apache / PHP v.4.1.2 At the moment the parametere register_globals is still set to on; I'm triyng to use $_POST and $_FILES between different pages, but variables are always empty !!! Page1

RE: [PHP] don't want to receive but email please

2002-07-09 Thread Brian McGarvie
> only if user stupidity can be considered a virus. It can indeed ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mbstring: Japanese conversion not working for me

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! > > 2 : 111??1235 > language codes are zh = chinese ko = korean ja = japanese the charset codes must be fully specified, such as ISO-2022-JP (the one you are using yourself) SHIFT-JIS EUC-JP otherwise it will make no sense to your browser. Usually looking at wh

[PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread JJ Harrison
Sorry :} I get a SQL syntax error at line two of the query: $query = "select 2count(*) as tececo_stats.views, meta_data.title from meta_data, tececo_stats where meta_data.id = tececo_stats.id"; I have stared at this 'till i felt dizzy. can someone tell me what I am doing wrong so that I can lea

RE: [PHP] imagecopyresized() problems

2002-07-09 Thread joakim . andersson
Hi, Output the correct headers before you output the image ie header("Content-type: image/jpeg"); imagejpeg($dst_img, '', 50); Remove all print statements from this code. You cannot output anything but the headers and the image itself. Use imagecopyresampled if you can. It gives much better q

[PHP] Re: Session data not being deleted on browser close.

2002-07-09 Thread Yasuo Ohgaki
Don't cross post such question... All you need to understand is how cookie is managed unless you are passing session id via URL. Read RFC2965 and RFC2964. You probably want to read netscape cookie spec also. -- Yasuo Ohgaki Youngie wrote: > Why would my session data not be deleted after my bro

RE: [PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread Brian McGarvie
2count(*)? don't look right > -Original Message- > From: JJ Harrison [mailto:[EMAIL PROTECTED]] > Sent: 09 July 2002 9:10 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Grr SQL syntax error silghtly OT > > > Sorry :} > > I get a SQL syntax error at line two of the query: > > $query = "se

RE: [PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread joakim . andersson
I assume that 2count should really be count and 2 is just the line-number you added in this post... tececo_stats.views is (probably) the name of a column and cannot be used as an alias. Change it to something else. change count(*) to count(tececo_stats.*) (I think that's what you want) And you pr

Re: [PHP] Converting PCX to ...

2002-07-09 Thread BB
Thanks, installed and working "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Mon, 8 Jul 2002, BB wrote: > > I'm writing a reporting system and I have a problem. > > > > I need to insert PCXs into a PDF (using PDFLib), but it doesn't support >

[PHP] Sending data in table, multiple rows, via mail()

2002-07-09 Thread Thomas Edison Jr.
Hi, Ok i have a bunch of rows in my table, with some data. I want my mail() function to be able to pick up the data from the rows and send to a specified email. Basicall let's say there are 3 fields, and 3 rows, the data sent in email should be something like : row1field1 : dkjhdkj row1field2

Re: [PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread JJ Harrison
table structure for tececo stats(Stores information about the visitors to my site.visited is either 0 or 1 depending on whether or not the stats cookie has been set): id int(11) unsigned NOT NULL auto_increment, page_id int(11) NOT NULL default '0', visited int(11) NOT NULL default '0', t

RE: [PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread joakim . andersson
I would try something like this... SELECT COUNT(tececo_stats.id) as num_hits, meta_data.title FROM tececo_stats, meta_data WHERE meta_data.id = tececo_stats.page_id GROUP BY tececo_stats.page_id ORDER BY num_hits DESC /Joakim > -Original Message- > From: JJ Harrison [mailto:[EMAIL PROTE

RE: [PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread joakim . andersson
Forgot. You have to change $row['tececo_stats.views'] to $row['num_hits'] /J > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 09, 2002 11:15 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Grr SQL syntax error silghtly OT > > > I would

Re: [PHP] Converting PCX to ...

2002-07-09 Thread BB
im having problem getting this converter to work, im running the following code: exec("cmd /c f:; cd \Products\legacyipc\ipc_dev\Chapter 21; convert test.pcx PDF_Cache\test.gif"); which is built from a load of data from a database. Unfortunatly, nothing happens. I don't see the new gif, and I

[PHP] Delete me from list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2002-07-09 Thread Erik Hegreberg

Re: [PHP] Sending data in table, multiple rows, via mail()

2002-07-09 Thread Jason Wong
On Tuesday 09 July 2002 17:01, Thomas Edison Jr. wrote: > Hi, > > Ok i have a bunch of rows in my table, with some data. > > I want my mail() function to be able to pick up the > data from the rows and send to a specified email. > > Basicall let's say there are 3 fields, and 3 rows, the > data sen

Re: [PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread JJ Harrison
Thanks "Joakim Andersson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I would try something like this... > > SELECT COUNT(tececo_stats.id) as num_hits, meta_data.title > FROM tececo_stats, meta_data > WHERE meta_data.id = tececo_stats.page_id > GROUP BY tece

[PHP] Moderator where are you, delete me from the list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2002-07-09 Thread Erik Hegreberg

RE: [PHP] Moderator where are you, delete me from the list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2002-07-09 Thread Martin Towell
look at the footer > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -Original Message- From: Erik Hegreberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 7:40 PM To: [EMAIL PROTECTED]

RE: [PHP] Delete me from list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2002-07-09 Thread Brian McGarvie
Obviously you are one of those ppl who dont keep important emails... I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: For help and a description of available commands, send a message to:

[PHP] PHP Image Functions

2002-07-09 Thread Mark Colvin
I have a directory of jpegs that I want to display thumbnails of and have a link to the original jpeg. I would rather not create separate thumbnails images preferring to create them in memory to display them. I have installed GD v.1.8.4. The code below outputs jumbled text to the browser (possibly

[PHP] Bad table iso-8859-1

2002-07-09 Thread Philippe
Hello everyone, I have a problem with charset iso-8859-1. My configuration is : Apache 1.3.26 on MacOS X with PHP 4.2.1 when I execute this script : I have result 142 which is the code of the macinstosh table and when i send it to my browser or in a email, this doesn't work. I must have the wi

Re: [PHP] Converting PCX to ...

2002-07-09 Thread BB
batch files rock! :o) "Bb" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > im having problem getting this converter to work, im running the following > code: > > exec("cmd /c f:; cd \Products\legacyipc\ipc_dev\Chapter 21; convert test.pcx > PDF_Cache\test.gif"

Re: [PHP] Re: mbstring: Japanese conversion not working for me

2002-07-09 Thread Jean-Christian Imbeault
Alberto Serra wrote: > > the charset codes must be fully specified, such as > ISO-2022-JP (the one you are using yourself) > SHIFT-JIS > EUC-JP I tried EUC-JP and ISO-2022-JPand neither worked. Ah well ... so much for a nice idea quick hack to displaying multiple charsets at once. Jc -- P

[PHP] Browser Troubles...

2002-07-09 Thread Brian McGarvie
OK... I have developed a web-application... on Windows 2k Server, IIS5, PHP, MsSQL/MySQL. Now... on certain browser platforms the browser spuriously dies for no reason. (Primarily Oldish IE 5.0(but not all releases) and 5.5). I have tried MS's mailing lists/support but not had any usefull feed

[PHP] EXIF and thumbnails

2002-07-09 Thread Victor Spång Arthursson
Hello! I know it's possible to read thumbnails from the EXIF-headers in for example jpeg-images. But is it also possible to _write_ EXIF-data, that is, if I want to create a thumbnail where there is none? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: Figuring Out the Best Day in stats program

2002-07-09 Thread Richard Lynch
>$query = "select count(*) as monthly_views from visitors group by >extract('year', time), extract('month', time) order by monthly_view desc >limit 1"; >Warning: Supplied argument is not a valid MySQL result resource in >C:\Inetpub\TecEco_PHP\stats_interface\summary.php on line 75 >You have an er

Re: [PHP] Browser Troubles...

2002-07-09 Thread René Moonen
>Now... on certain browser platforms the browser spuriously dies for no reason. >(Primarily Oldish IE 5.0(but not all releases) and 5.5). > >Has anyone came accross this kind of thing before? > > > > What? M$ software crashing? Na... never seen that ;-) sorry... coudn't help that! What outp

Re: [PHP] Thanks

2002-07-09 Thread Richard Lynch
>Probably a stupid question. Is there anyway to force POSTing a form from >the refresh META? > > > >IMHO that is NOT possible, but maybe I am wrong. You are correct -- it cannot be done. If there is no JavaScript, you can only "force" a POST by getting the user to click on a FORM element, some h

[PHP] Re: PHP/MySQL and parameterized queries

2002-07-09 Thread Richard Lynch
>Does MySQL support parameterized queries (e.g., "INSERT INTO table >(Col1,Col2) VALUES (?,?)"), and if so, is there a PHP function that allows >you to create and attach parameters to MySQL queries? I don't believe MySQL supports that, so there's no PHP mechanism for it. However, you *can* inser

[PHP] Re: Error: Parse error: parse error, unexpected $ in...

2002-07-09 Thread Richard Lynch
>Hi all. Im getting the above mentioned error: *Parse error*: parse >error, unexpected $ in *c:\program files\apache >group\apache\htdocs\login.php* on line *38* when I try to view the page >I just created. As a forewarning, I am very new to PHP, so I may have >done something stupid, and if it

Re: [PHP] Thanks -> Actually POSTING without javascript

2002-07-09 Thread Richard Lynch
>javascript in this page verifies user configuration (screen, java >enabled, platform etc) and stuffs this data into a hidden form then >sends it back to index.html where data will be used to understand >whether we can rely on jscript and cookies within this session. Aha! What you probably sh

Re: [PHP] Problem with SQL query

2002-07-09 Thread Richard Lynch
>LIMIT was not included in the SQL92 SQL standards and very few vendors >implement all of SQL99; the use of ANSI standards to promote "portable" >programs has always been beset by this kind of problems. Wow! There's actually an SQL99 that vendors are targeting, kinda sorta? Hey, with any luck,

[PHP] Re: transporting variable via post to another site

2002-07-09 Thread Richard Lynch
>I do have a multisite form. There are several fields on page 1 and several >on page 2. > >Everything works fine exept of error handling. Which means if a user wants >to go back from step 2 to one and has already filled in some data in site 2 >he will loose this data for sure. It is not possible t

[PHP] Re: Mailing all the elements of a form

2002-07-09 Thread Richard Lynch
>I have looked in PHP manual but I cannot seem to find what I am looking for. > >I have a very large form that I need to be able to mail. I just don't want >to have to code all of the field into my mail() function. I think this one is still in the FAQ, so maybe it's time to re-read that. I asked

Re: [PHP] Re: Stored Procedures

2002-07-09 Thread Richard Lynch
>On Sat, 06 Jul 2002 15:27:47 -0500 >> Do you have *ANY* idea how quickly: >> >> "select * from MyTable" can be parsed and an execution plan selected?! >> >> It's CHUMP CHANGE in time. >> >> *ONLY* if your SQL is so incredibly complicated that you can't even >> understand it will the parse/comp

[PHP] Re: suppressing errors with "@"

2002-07-09 Thread Richard Lynch
>Doesn't @ surpress output (in general)? >Variables don't usually produce an output so putting @ before it shouldn't >make any difference. @ suppresses *ERROR* output, not just any old output. @ echo "foo"; will echo foo out. @ echo $foo; will echo out anything in $foo, but if you haven't *PU

Re: [PHP] inserting linebrakes in multisite forms

2002-07-09 Thread Richard Lynch
>That looks like the result of htmlentities(nl2br($string)). Actually, it's probably the result of just nl2br($string) and being in the midst of the INPUT tag in the first place... >Do it the other way around. > >Better yet, don't call nl2br or htmlentities or anything else on data that >you are

[PHP] Re: About submitting multipart.forms

2002-07-09 Thread Richard Lynch
>has anyone met with this problem.. using IE to submit multipart forms. in >text fields if there is "&" ... all text after it will disappear..quite a >nuisance when submitting You probably aren't using http://php.net/htmlentities as you pass data back out to the browser. Microsoft, in it's infin

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-09 Thread Richard Lynch
>I've been using MySQL/PHP for quite some time. Several months ago, I >wanted to port a project over to PostgreSQL. I found everything about pg >(eg the website, documentation, installation process) far less straight >ahead than MySQL. So much so, that I didn't get around to actually >installin

[PHP] Re: inserting linebrakes in multisite forms

2002-07-09 Thread Richard Lynch
>One Form has a textfield, I submit it to another html site where there is >another form with a textfield. Inside this textfield I place a hidden field >with the value of the field from page 1 then I submit to the actual php site >inserting the values into a db. On the "middle" page, use "View So

[PHP] Re: newbie: a couple basic questions

2002-07-09 Thread Richard Lynch
>1) in a fuction, does a return statment automatically exit the function as >well? Yes. Nothing more will get executed inside the function after the "return;" Some purists claim that you should *NEVER* have a return *ANYWHERE* except the last line of a function. EG: # WRONG function divide($n

[PHP] Re: configure breaks at return type of qsort...

2002-07-09 Thread Richard Lynch
>configure: error: Cannot find header files under /usr/include/mysql >Bad exit status from /home/askwar/RPM/tmp/rpm-tmp.64223 (%build) > >I called configure with these parameters: > >--with-mysql=/usr/include/mysql >host:/S.u.S.E. # ls -la /usr/include/mysql >Does anyone have an idea about why

[PHP] Re: Printing Problem

2002-07-09 Thread Richard Lynch
>I'll repeat my ealier question because some people can not think for >themselves.. There are actually two (2) possibilities here... One is that you actually want to print the invoices on the printer connected to the *WEB* *SERVER* If that is the case, you really should skip the whole JavaScrip

Re: [PHP] Re: suppressing errors with "@"

2002-07-09 Thread Richard Lynch
>I use it in front of variables (never tried it on $GLOBALS, etc though) > >eg: (using register_globals = on thingo - hey don't blame me, it's the >tech guys who have it on, and there's too much legacy code to turn it off :( >- anyway) > > if (@$var) { echo "Yep, var is there"; } else { echo "n

Re: [PHP] Software on web Accessing mySQL/PHP

2002-07-09 Thread Richard Lynch
>Basically we have created a Software in Visual Basic. >Now the software uses mySQL on the internet as >Backend. However, our server does not allow Remote >Host Connection, which means we cannot access our >mySQL Database on the Internet by our Software on a >local client. We need the mySQL Databa

[PHP] Re: A problem in mysql_fetch_array

2002-07-09 Thread Richard Lynch
>I have insert some text with space to mysql DB with varchar() > >When I use mysql_fetch_array function to retrieve the data from DB . I >found only the first session text can be shown . It means if any space >there . It will split like session by session. for example. my DB have a >text "Hello

[PHP] Re: Little php execution question.

2002-07-09 Thread Richard Lynch
>Hello php-general, > > I finally finish my work on one of the projects. I got a question > how PHP executes a script. > Let's say i got a little script but it takes him a long time to work > (don't blame me please) If a user stops loading page of will close > the window. Will Script continue

[PHP] Re: Parsing CGI for PHP?

2002-07-09 Thread Richard Lynch
>Can this be done with apache 1.3 ? >I want to have the output of my CGI-script to be parsed with PHP, or >rather, have the php within the parsed, of course, since the >script outputs alot more than just php-code. > >Is it possible? I don't think so. Apache 1.x was designed to "hand off" the

[PHP] Re: Converting PCX to ...

2002-07-09 Thread Richard Lynch
>I'm writing a reporting system and I have a problem. > >I need to insert PCXs into a PDF (using PDFLib), but it doesn't support >PCXs. > >So, to get round the problem, I need to convert the PCXs to JPGs or GIFs > >Does anyone know of a piece of PHP that can do this inline, (by that I mean, >can b

[PHP] Re: keep textformating ?

2002-07-09 Thread Richard Lynch
>Lets say I have a guestbook, and I want the text the visitors write in it be >saved in a database(mysql) and when retrieved, if should have the same >textformating, I guess this is a really basic thing, but I don't know what >to look for :) >I've caught \n and ereg*, but I'm not sure that's the t

[PHP] Re: Editing Word Documents

2002-07-09 Thread Richard Lynch
>I have an intranet, which provides access to, amongst others, Word >Documents about policies, etc. What the guys are looking for is a way to >do the following: > >1. Show a list of files available for editing >2. If a file is clicked, then it is locked for other users (no access) >3. The file o

[PHP] Re: add to basket

2002-07-09 Thread Richard Lynch
>What's the best way to implement functions like 'add to basket' or 'add to >wishlist' and so on. > >I mean: you are on a page with detail information about a product. If the >user clicks the link for 'add to basket' I have to perform a piece of >script and then go back to the detail page of th

[PHP] Re: regex for emoticon codes

2002-07-09 Thread Richard Lynch
>i have something like >$str = "sometext sometext [emoticon01] sometext [emoticon23] sometext"; > >i would like to use regex to replace those codes into: >sometext sometext /images/emot/01.gif sometext /images/emot/23.gif sometext > >all numerics after the code "emoticon" consisted of exactly 2 d

[PHP] Re: $_REQUEST???

2002-07-09 Thread Richard Lynch
>Can the $_REQUEST be trusted?? The documentation said it is the combination >of $_GET, $_POST, $_COOKIE & $_FILE. If the PHPSESSID is found in >$_REQUEST, I can tell it is from $_COOKIE. I wonder if the PHPSESSID can be >stored into $_REQUEST if hte $_COOKIE is unavailable or turned off? Sinc

[PHP] Re: Passing variables

2002-07-09 Thread Richard Lynch
>After reading Kevin Yank's "Managing Users ..." at www.sitepoint.com, I >tried the following 2 scripts. Unfortunately, the variable $course is NOT >being passed to the 2nd script. Thus, per the script, the Home page is >displayed. Why? In addition to needing session_start() in page 2, you sim

[PHP] Re: Cross-Site Sesison ID Propagation

2002-07-09 Thread Richard Lynch
>Hello all fellow-hackers > >I am working on a project that includes a number of web sites, which are >grouped together into one network. Kind of like the ‘OSDN’ network, of which >Slashdot.org, for example, is a member. > >I need to implement a cross-site session. Using a technique, similar to th

[PHP] Re: Time to Calculate Time

2002-07-09 Thread Richard Lynch
>i have variables $Start, $End each with a timestamp 2 hours apart >(2002070714, 2002070716) respectively 01234567890123 > >How do i calculate those to timestamps to get the answer 2? > >I've tried working them into unix timestamps and then calculating but no >luck... > >any one

[PHP] Re: PHP Script Speed

2002-07-09 Thread Richard Lynch
>but I am wondering if it is at the cost of a slower page loading. The reason >I think this is whenever I would like to display a variable I have to put in >a script tag like . I might have as many as 20 of >these on a page. Every time doesn't PHP have to start again and parse out >this informatio

Re: [PHP] Re: mbstring: Japanese conversion not working for me

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > I tried EUC-JP and ISO-2022-JPand neither worked. Ah well ... so much > for a nice idea quick hack to displaying multiple charsets at once. They should. I checked out w3c.org at that and it definitely should. No exception for japanese mentioned anywhere

RE: [PHP] Browser Troubles...

2002-07-09 Thread Brian McGarvie
There is rather a lot to check... i have checked *most* of it... the only JS is to open a pop-up window, but that functions correctly... In one particular version of IE it fails even to submit the login form ;\ Works perfectly in Mozzilla/NN(4->6)... also fine in IE 6, and as I mentiond most I

RE: [PHP] PHP Image Functions

2002-07-09 Thread joakim . andersson
Well, you're halfway there... You just have to separate the image-script from the rest like this: image_spewing_script.php: and in the other file (your actual page): Regards Joakim Andersson > -Original Message- > From: Mark Colvin [mailto:[EMAIL PROTECTED]]

[PHP] Bug in SQL can you help?

2002-07-09 Thread JJ Harrison
Here is my SQL(used in a PHP script so this isn't ot) SELECT extract(year FROM time), extract(month FROM time), count(*) as monthly_views, time FROM tececo_stats group by extract(year FROM time), extract(month FROM time) order by monthly_views desc limit 1 the problem

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Marek Kilimajer
The only way I see this can be done is simly let every user mount a share under the same letter, all you need to do then is file, then locking files is up to samba or windows server. Marek Richard Lynch wrote: >>I have an intranet, which provides access to, amongst others, Word >>Document

[PHP] Somehone having a problem to write to the list

2002-07-09 Thread Alberto Serra
To the *list* *maintainers*: this guy says he is registered but cannot write to the list. So he wrote me in instead. úÄÒÁ×Ï! (it's like that, right?) Djurovski Dejan wrote: > $aDBLink=@mysql_connect("$host", "$user", "$password"); > mysql_select_db("$db", $aDBLink); you might want to take the

Re: [PHP] Bug in SQL can you help?

2002-07-09 Thread Jason Wong
On Tuesday 09 July 2002 18:32, JJ Harrison wrote: > Here is my SQL(used in a PHP script so this isn't ot) Aside from the fact that this has _nothing_ to do with php, you would most likely get a better response from the php-db list where, hopefully, the sql experts hangout. > SELECT > extra

RE: [PHP] PHP Image Functions

2002-07-09 Thread Mark Colvin
Thanks for your reply. Its a bit further forward but still not working. I have split the files and the output now shows the text part of 'img alt="text" src="...' ie it won't recognise the image. Anything else you can think of? This e-mail is

Re: [PHP] Sending data in table, multiple rows, via mail()

2002-07-09 Thread Thomas Edison Jr.
Thank you for your *extreme* kindness... I do not know where to begin to make this happen. I created a variable and ran the entire do while loop to read contents of the table and tried storing them in the variable, which could be used as Content of the mail. However, i just get the Last Row in m

[PHP] Re: qmail with perl and php

2002-07-09 Thread adi
try to specify the sender with -f: mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3"," From: [EMAIL PROTECTED]" , [EMAIL PROTECTED]); > > - Original Message - > From: "Jeff MacDonald" <[EMAIL PROTECTED]> > To: "Qmail" <[EMAIL PROTECTED]> > Sent: Thursday, August 08, 2

RE: [PHP] PHP Image Functions

2002-07-09 Thread joakim . andersson
imagejpeg($thumbnail,'test.jpg',$quality); should of course be imagejpeg($thumbnail,'',$quality); Otherwise you are creating a new image on your server and not outputting it to the browser. /Joakim > -Original Message- > From: Mark Colvin [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July

RE: [PHP] PHP Image Functions

2002-07-09 Thread Mark Colvin
That's the winner!! Everything working good now. Thanks again. This e-mail is intended for the recipient only and may contain confidential information. If you are not the intended recipient then you should reply to the sender and take no furt

Re: [PHP] Submitting form in new window!

2002-07-09 Thread Chris Hewitt
Thomas, If using JavaScript to open the window, then php is not going to be able to transfer variables as it is not being used. As you form is not being submitted (you intercepted it with a JavaScript call, right?) then you need to transfer them manually by getting the JavaScript to add the v

Re: [PHP] Editing Word Documents

2002-07-09 Thread Chris Hewitt
I think what the OP meant (certainly what I meant), is that the Word doc is accessed from a normal link. Clients use windows and the browser has the .doc mime type set and spawns Word. The user edits it. I had (vainly) hoped for a way of setting the "File..Save As" to trigger PHP's File Upload

RE: [PHP] Sending data in table, multiple rows, via mail()

2002-07-09 Thread joakim . andersson
This bit looks kind of wierd. Don't know if it even should be possible to do like that... > $realcontent=" > > if ($myrow = mysql_fetch_array($result)) { > do { > > >$myrow[pid] >$myrow[nm] >$myrow[q] > > > } while ($myrow = mysql_fetch_array($result)); > } > > ";

Re: [PHP] Submitting form in new window!

2002-07-09 Thread Thomas Edison Jr.
Hi, Ok, let me show some code : Quantity This is the SUBMIT button that submits the form alongwith the Form Variables to a file called "Add2Cart.php" !! But this file simply opens in an unadministered new window. i would like to use the window.open function, or whatever ca

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Chris Hewitt
Marek, Yes I thought about windows shares. On the internet (as opposed to intranet) the word "security" leapt to mind and I went away from the idea. Has anyone used Samba shares on the internet or know if its secure/insecure? Thanks Chris Marek Kilimajer wrote: > The only way I see this ca

RE: [PHP] Bug in SQL can you help?

2002-07-09 Thread joakim . andersson
> -Original Message- > From: JJ Harrison [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 09, 2002 12:33 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Bug in SQL can you help? > > > Here is my SQL(used in a PHP script so this isn't ot) PHP-script or not, it's still an SQL-query, right? I

Re: [PHP] Bug in SQL can you help?

2002-07-09 Thread JJ Harrison
Thanks "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tuesday 09 July 2002 18:32, JJ Harrison wrote: > > Here is my SQL(used in a PHP script so this isn't ot) > > Aside from the fact that this has _nothing_ to do with php, you would most > likel

RE: [PHP] Sending data in table, multiple rows, via mail()

2002-07-09 Thread Thomas Edison Jr.
Hi, WOW... THANKS A LOT!! This actually did it .. i was on a slight wrong track.. > $realcontent = ""; > while ($myrow = mysql_fetch_array($result)) > { > $realcontent .= "$myrow['pid']"; > $realcontent .= "$myrow['nm']"; > $realcontent .= "$myrow['q']"; > } > Thanks, T. Edi

[PHP] Re: Converting PCX to ...

2002-07-09 Thread BB
I got a problem with that! I've written a batch file that sits in the same dir as the PHP script and when I exec it, it doesn't work! I've thouroghly thrashed the batch file for errors and it came up ok every time. if I echo the exec it only returns the first line of the batch file. Anyone? "

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

2002-07-09 Thread Kondwani Spike Mkandawire
Despite all downfalls of using IP addresses, if you are in North America most people in a University or business environment use a fast connection (DSL or Cable) you may choose to use the following chunk of code to retrieve someone's IP number if (getenv(HTTP_X_FORWARDED_FOR)){ $ip=getenv(HTTP

RE: [PHP] Re: Converting PCX to ...

2002-07-09 Thread Jay Blanchard
[snip] I've written a batch file that sits in the same dir as the PHP script and when I exec it, it doesn't work! I've thouroghly thrashed the batch file for errors and it came up ok every time. if I echo the exec it only returns the first line of the batch file. [/snip] I have found that even

[PHP] mbstring: php.ini: need help understanding some settings/functions

2002-07-09 Thread Jean-Christian Imbeault
I am trying to use the mbstring library so I can receive user input in japanese and then put it into my pgsql DB. But the documentation is really sparse and sometimes confusing. I can't understand some of the functions provided by mbstring or it's settings in php.ini. Some functions/settings d

[PHP] Re: Print Question

2002-07-09 Thread Kondwani Spike Mkandawire
I wasn't in the office hence haven't visited this group for a while... Here's an idea though I still may not understand the whole situation but from what I think it is here goes: I guess you will have to mix javascript and php in the following manner... use onclick for a particular HTML variable

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Marek Kilimajer
If you can use virtual private network, it is secure. But I don't know about plain Samba solution. Chris Hewitt wrote: > Marek, > > Yes I thought about windows shares. On the internet (as opposed to > intranet) the word "security" leapt to mind and I went away from the > idea. Has anyone used

Re: [PHP] Submitting form in new window!

2002-07-09 Thread Jason Wong
On Tuesday 09 July 2002 19:25, Thomas Edison Jr. wrote: > Hi, > > Ok, let me show some code : > >method=post target=\"blank\"> > > $result[vProID] > > $result[vProName] > >Quantity > type=\"submit\" value=\"Add To Cart\"> > > > This is the SUBMIT button that submits the form

[PHP] Executing Script through image

2002-07-09 Thread JJ Harrison
I am making a stats program. When the nessicary include file is included it does a reverse-DNS lookup to find the remote host's DNS name. The problem with this is that is seems slow(at least on my test server with a DSL connection). I thought the best way to speed things up would be putting the e

[PHP] Re: Executing Script through image

2002-07-09 Thread BB
$filename = "your/file.gif"; header("Content-Type: image/gif"); header("Content-length:".filesize($filename)); $fn=fopen($filename,"rb"); while(!feof($fn)) { echo fread($fn, 4096); } in fopen( , ""); the b denotes to read as binary and is only nessecary on a windows system "Jj Harrison" <[EMAIL

[PHP] I am out of pleases now get me off this fuckin list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2002-07-09 Thread Erik Hegreberg

[PHP] Re: newbie: a couple basic questions

2002-07-09 Thread Alexander Ross
Thank you kindly ... "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > >1) in a fuction, does a return statment automatically exit the function as > >well? > > Yes. Nothing more will get executed inside the function after the "return;" > > Some purists claim that

Re: [PHP] I am out of pleases now get me off this fuckin list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2002-07-09 Thread Zac Hillier
Maybe everybody should send him a copy then he'll get the message? Maybe To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: <[E

[PHP] another php_functions.c compile problem

2002-07-09 Thread ldadams
HI, I just joined the list - reviewed the archives, and found that Chip Weigand (2002-07-05) entered a problem with php_functions.c in the ~/php-4.2.1/sapi/apache2filter directory. I have a similar situation - my error: php_functions.c:93:27: missing binary operator before '!' make[3]: *

[PHP] Server does somethingwierd

2002-07-09 Thread AcIDeR
Whenn i acces a page then there will automatichly be a phpsesion id created but i dont have got any key pressed or used sersion start in the code. i just wanne login to my page wich the page sets a cookie in my browser but this doest work because the cookies does not be created in my browser

[PHP] php loopholes

2002-07-09 Thread Chris Taylor
Hi every1, i am currently undertaking some research into PHP security and its flaws / loopholes etc. What i am looking for is information on any aspects of PHP that can be hacked or cracked and how developers have got around these problems. Any help would b much appreciated Thanks

Re: [PHP] I am out of pleases now get me off this fun list!

2002-07-09 Thread 1LT John W. Holmes
My favorite part is that he requests a read receipt for every one of these messages. I hope everyone is sending him one of those, too, to clutter up his email even more. ---John Holmes... - Original Message - From: "Zac Hillier" <[EMAIL PROTECTED]> To: "Erik Hegreberg" <[EMAIL PROTECTED]

Re: [PHP] newbie: question about question marks

2002-07-09 Thread Alexander Ross
How bout the question marks in the following line of php generated html: what do they mean? "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sun, 7 Jul 2002, Alexander Ross wrote: > > Can someone explain to me what the ? does. I have a vagu

Re: [PHP] storing an array in mysql - what's the best data type?

2002-07-09 Thread Steven Jarvis
Kevin, >> I have an array that I want to store in a field of a mysql db. I've got >> it set as type text currently, but when I retrieve it, I can't get the >> arrary to parse. >> >> If I look at the listings in the mysql cli, it just says "Array" for >> that field. >> >> Here's my retrieval code:

  1   2   3   4   5   >