Re: [PHP] Gripe

2003-08-29 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > > Chris Shiflett > > on Friday, August 29, 2003 2:16 PM said: > > > > > if ($foo) { if ($bar) echo 'blah'; else { echo 'else'; } > > >^ ^

[PHP] Hardening php.ini for an ISP environment

2003-08-29 Thread Roman Medina
Hi, I'm looking for good and complete documentation about hardening a PHP box which is going to be used to offer hosting services. The machine will have Apache + PHP with VirtualDomains. Assuming Apache config is secure, which aspects would be affected for the activation of php module? I'd li

[PHP] PHP - XHTML converter to HDML or WML

2003-08-29 Thread Joe Harman
Hey maybe you guys can help me out here. I would like to start developing for WAP enabled devices. since there are a lot of people out there who still have phones that use different version of WML and still some that use HDML. and then the new phones being able to display XHTML. I would like to ei

Re: [PHP] Approaches to Logging In

2003-08-29 Thread Chris Sherwood
Honestly if you have the users logging in use a session variable to contain a session id then verify against that sessionid as they browse the sensitive sections and use a class to verify that they are a valid user so yes Ideally sessions are the way to go Chris - Original Message - Fro

RE: [PHP] Approaches to Logging In

2003-08-29 Thread Chris W. Parker
Seth Willits on Friday, August 29, 2003 3:24 PM said: > Are sessions the way to go? Well you could use cookies also but those can be tampered with. Sessions aren't hard to work with really. All you need to do is start the session, write a variable to $_SESSION if t

RE: [PHP] Gripe

2003-08-29 Thread Chris W. Parker
Curt Zirzow on Friday, August 29, 2003 3:12 PM said: >> Here +--+-/ >| | > Or Here -+--/ >| > Or Here -/ Oh yeah of course. But I tho

[PHP] Approaches to Logging In

2003-08-29 Thread Seth Willits
I'm currently working on a portion of a website for my high school's band (though I'm now in college) and one of the sections contains contact information for all of the students which should only be accessible if you have are a member of band staff and have a password. In order to access th

RE: [PHP] creating a development log

2003-08-29 Thread Chris W. Parker
Merlin on Friday, August 29, 2003 3:03 PM said: > Unfortuantelley this looks way more complicated than I thought. How to > group by date and still get the entry, and how can I arange it, that > it outputs only the one for the date and then closes the list`? To displ

Re: [PHP] Gripe

2003-08-29 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Chris Shiflett > on Friday, August 29, 2003 2:16 PM said: > > > if ($foo) { if ($bar) echo 'blah'; else { echo 'else'; } > >^ ^ ^ > > Where is the missing brace?

[PHP] creating a development log

2003-08-29 Thread Merlin
Hi there, I would like to create a small dev log. Output should be somehow like this: Aug 30, 2003 1. Member galleries added sort option rating Aug 31, 2003 1. Travel log entries can be dated now. 2. Member galleries added 5 star rating system NOw I have created a table with 2 rows

[PHP] Apache and forward slash

2003-08-29 Thread Christian Calloway
Hey, I am setting up Apache 1.3.27 on a linux box (I really dont know much about linux) and I am having small problem. When a specify a subdirectory off of my document root, I must include a "/" forward slash in order for the index page to load, otherwise I get the "The page cannot be displayed" m

RE: [PHP] Gripe

2003-08-29 Thread Chris W. Parker
Chris W. Parker <> on Friday, August 29, 2003 2:23 PM said: > I'm pretty sure I've seen an error message from something (maybe, > asp.net, or classic asp) that shows a line like i've drawn and points > to where it thinks the problem is. (And no it wasn't always the end > of the last line.) But

RE: [PHP] Gripe

2003-08-29 Thread Chris W. Parker
Chris Shiflett on Friday, August 29, 2003 2:16 PM said: > if ($foo) { if ($bar) echo 'blah'; else { echo 'else'; } > ^ > Where is the missing brace? :-) |

Re: [PHP] jpeg libraries.

2003-08-29 Thread Jason Wong
On Saturday 30 August 2003 03:49, Mike At Spy wrote: [snip] > However, I still have the issue that while the jpeg libraries were > installed, the weren't. :\ > > This is what was installed through the only binary for jpeg libaries I can > find on the net off hand: > > jpegsrc.v6b.tar.gz [snip]

Re: [PHP] Gripe

2003-08-29 Thread Chris Shiflett
--- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > How could the parser possibly know that one was missing as it's going > through the file? It just keeps a count and can only realize something > is wrong when it gets to the end of the file and sees the count is off. I can't see how a human could

Re: [PHP] Gripe

2003-08-29 Thread John W. Holmes
Jackson Miller wrote: Why is it that when you forget a "}" the error says: Unexpected $ on line [last line of file] Why can't it just say: Missing } on or before (best guess). How could the parser possibly know that one was missing as it's going through the file? It just keeps a count and can only

Re: [PHP] Gripe

2003-08-29 Thread Jackson Miller
On Friday 29 August 2003 3:27, Pete James wrote: > Cuz the the way the PHP parser is written makes it impossible to > discover the error before it gets to the end of the file, and realizes > that there are no more braces to go around. Yeah, i understand the difficulty. It was a gripe and not a bug

Re: [PHP] open php from

2003-08-29 Thread Jasper
Alvaro Martinez wrote: Hi! I'm a beginner. I want to redirect from one php page to another php page and I dont know what method to use. How can I do it? Thanks http://php.net/header says http://www.php.net/";); /* Redirects the browser to the php website */ exit;/* make

Re: [PHP] Gripe

2003-08-29 Thread Pete James
Cuz the the way the PHP parser is written makes it impossible to discover the error before it gets to the end of the file, and realizes that there are no more braces to go around. It definitely sucks... almost as badly as a stray backtick. Try finding that little bugger at 1600x1280... Jackso

[PHP] Gripe

2003-08-29 Thread Jackson Miller
Why is it that when you forget a "}" the error says: Unexpected $ on line [last line of file] Why can't it just say: Missing } on or before (best guess). -Jackson -- jackson miller cold feet creative 615.321.3300 / 800.595.4401 [EMAIL PROTECTED] cold feet presents Emma the world's easies

[PHP] Ticket Master-type script

2003-08-29 Thread Scott Miller
I'm looking for some sort of script/software that will allow website viewers to purchase seats at events. Mainly I'm donating space and a site to the local Fair committe, building the site to sell reserved seating tickets at the local rodeo. Any help as to where I can start looking would be great

RE: [PHP] String substiion for flash text

2003-08-29 Thread Chris W. Parker
Luis Lebron on Friday, August 29, 2003 12:41 PM said: > Is there a way I can change something like > My Link to My > Link Yes. Probably best to use regular expressions. Read up on www.php.net/preg_replace as a starting point. If you don't know how to use regular e

RE: [PHP] jpeg libraries.

2003-08-29 Thread Mike At Spy
Jason et al; Thanks for all of your help up - I really appreciate it. However, I still have the issue that while the jpeg libraries were installed, the weren't. :\ This is what was installed through the only binary for jpeg libaries I can find on the net off hand: jpegsrc.v6b.tar.gz yields:

[PHP] String substiion for flash text

2003-08-29 Thread Luis Lebron
I have a script that creates html files to be used with a flash scroll box. The problem I am having right now is that the Flash scroll box does not underline the hyperlinks. Is there a way I can change something like My Link to My Link thanks, Luis

Re: [PHP] disable "notice" errors

2003-08-29 Thread Ernest E Vogelsinger
At 20:56 29.08.2002, fatih olcer said: [snip] >how to disable "notice error" output > > >i have set "error_reporting = 2039" (in PHP.ini); >but it doesnt work.i still get "notice :Undefined index".. [snip] as a third

Re: [PHP] disable "notice" errors

2003-08-29 Thread Pete James
You have two solutions, one of which is better. A. Fix the problem, and define your indexes. B. Set error_reporting = E_ALL & ~E_NOTICE I'd strongly recommend doing A before B, as PHP doesn't carp for the sake of carping. fatih olcer wrote: how to disable "notice error" output i have set "er

[PHP] disable "notice" errors

2003-08-29 Thread fatih olcer
how to disable "notice error" output i have set "error_reporting = 2039" (in PHP.ini); but it doesnt work.i still get "notice :Undefined index".. RH9,PHP4 thanks for help. fatih. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Parameters

2003-08-29 Thread Seth Willits
D'oh! Okay, thanks for pointing me to those variables. Is there a list of global variables somewhere? I'm only using the online documentation and it's arranged a little awkward. After playing with $_POST, I couldn't figure out why it wasn't working, but I just realized that the names are ca

Re: [PHP] Form Parameters

2003-08-29 Thread Chris Sherwood
depends on whether or not you post or get then you use $_POST["varname"] or $_GET["varname"] hope this helps - Original Message - From: "Seth Willits" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 11:00 AM Subject: [PHP] Form Parameters > This might be st

Re: [PHP] Form Parameters

2003-08-29 Thread David Otton
On Fri, 29 Aug 2003 11:00:14 -0700, you wrote: >This might be staring straight at me, but I can't seem to figure out >how to reference form parameters in php code. For example: > > > if ($formName["fieldName"] == "this") { > // do this > } else { > // do t

[PHP] Re: Form Parameters

2003-08-29 Thread DvDmanDT
$_REQUEST["fieldName"] (there are also $_GET and $_POST, but $_REQUEST works with both of them, although, with cookies and env vars as well)... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Seth Willits" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > This might

Re: [PHP] Form Parameters

2003-08-29 Thread Chris Shiflett
--- Seth Willits <[EMAIL PROTECTED]> wrote: > This might be staring straight at me, but I can't seem to figure out > how to reference form parameters in php code. For example: > > >if ($formName["fieldName"] == "this") { > // do this > } else { > // do

[PHP] Form Parameters

2003-08-29 Thread Seth Willits
This might be staring straight at me, but I can't seem to figure out how to reference form parameters in php code. For example: Thanks, Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw

Re: [PHP] open php from

2003-08-29 Thread Chris Shiflett
--- DvDmanDT <[EMAIL PROTECTED]> wrote: > Yes, I's said so... Although, I use "Location: newfile.php" in lots > of places and it sure works even if it's the wrong way to do it... > Although, it's not tested with very many browsers so I guess not > everyone can view it (the new page)... Faced with

Re: [PHP] imagejpeg function output

2003-08-29 Thread DvDmanDT
Well, at the page where you want to show the image, you must type like , and then in generate_image.php, you have the image generation code... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Mike At Spy" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > > Hye

Re: [PHP] open php from

2003-08-29 Thread DvDmanDT
Yes, I's said so... Although, I use "Location: newfile.php" in lots of places and it sure works even if it's the wrong way to do it... Although, it's not tested with very many browsers so I guess not everyone can view it (the new page)... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECT

Re: [PHP] PHP Interview questions

2003-08-29 Thread Pete James
Binary search. I'd say I have too much time on my hands, but I don't. $eggs = array(1,1,1,1,1,2,1,1,1,1,1,1); $eggs1_6 = array_slice($eggs, 0, 6); $eggs7_12 = array_slice($eggs, 6, 6); if (array_sum($eggs1_6) > array_sum($eggs7_12)) $half_eggs = $eggs1_6; else $half_eggs = $egg

Re: [PHP] open php from

2003-08-29 Thread Alvaro Martinez
Thank you to you them all "Curt Zirzow" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] * Thus wrote Jonathan Pitcher ([EMAIL PROTECTED]): > Alvaro, > > To redirect use the header function (http://www.php.net/header) > > The call would be something like: > > header("Location: ano

Re: [PHP] Foring a file download *and* page reload

2003-08-29 Thread Marek Kilimajer
Curt Zirzow wrote: ... (suggested by Marek Kilimajer) This will only work if the browser supports multipart/mixed. And I don't think any browser supports this. I bet any browser except explorer ;) But because explorer does not support multipart/mixed and it is still the major browser (thought

Re: [PHP] imagejpeg function output

2003-08-29 Thread Marek Kilimajer
With a page? Well you must decide if you want to send html or image, you cannot send both at the same time. Calls to header() must be placed before any output is sent to the browser. Mike At Spy wrote: Hyeah, but since this is with a page, I keep getting the 'error, headers already sent

RE: [PHP] imagejpeg function output

2003-08-29 Thread Mike At Spy
Hyeah, but since this is with a page, I keep getting the 'error, headers already sent' thing. How do I get past that? :) Thanks for your help! -Mike > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: Friday, August 29, 2003 12:51 PM > To: Mike At S

Re: [PHP] jpeg libraries.

2003-08-29 Thread Jason Wong
On Saturday 30 August 2003 00:47, Mike At Spy wrote: > > --with-gd --with-jpeg-dir=/directory/where/jpeg/libs/are/installed > > > > manual > Image functions Read the above again (see below). > Ok, now I did instal what I believe were the jpeg libraries, or at least > were lead to believe they we

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
Hi, Thanks for the advice. I will run this past the people in charge of the network. I'm afraid that I'm not really very familiar with our network here (I'm just an intern :) ) I am pretty sure that all of our files are sent from a single server, which is neither the php server or my comput

Re: [PHP] imagejpeg function output

2003-08-29 Thread Marek Kilimajer
You need to send the right header, in this case header('Content-type: image/jpg'); Mike At Spy wrote: Just to make sure no one is lead astray - I still have an issue getting jpeg enabled on a server with gd and php. I am asking this question 'cause I am doing some work on a different server where

RE: [PHP] jpeg libraries.

2003-08-29 Thread Mike At Spy
> > > > Does anyone know how to get jpeg enabled in gd? > > Yes. > > > I'm using php 4.3.3. > > Unless dramatic changes were made in 4.3.3 then the procedure > should be the > same as the previous versions. Namely: > > --with-gd --with-jpeg-dir=/directory/where/jpeg/libs/are/installed > > manual >

Re: [PHP] jpeg libraries.

2003-08-29 Thread Curt Zirzow
* Thus wrote Jason Wong ([EMAIL PROTECTED]): > On Friday 29 August 2003 23:19, Mike At Spy wrote: > > > * Thus wrote Mike At Spy ([EMAIL PROTECTED]): > > > > It did install some jpeg stuff under /usr/local/bin, but I don't see > > > > anything added to /usr/local/lib. > > > > > > > > After that, I

Re: [PHP] speed of mail() on two servers

2003-08-29 Thread David T-G
Raditha, et al -- ...and then Raditha Dissanayake said... % % Hello David, Hi! % looks like a bit of a tough one :-) guess you might be better off trying Indeed. % one of the qmail groups instead of this one. Sorry my own qmail Oh, whoops! Yes, I'm already being a general pest on the qm

Re: [PHP] Re: speed of mail() on two servers

2003-08-29 Thread David T-G
Manuel, et al -- ...and then Manuel Lemos said... % % Hello, % % On 08/27/2003 11:34 AM, David T-G wrote: % >% For the delivery, you can always tune qmail to try deliverying messages % >% to more recipients at the same time tweaking concurrencyremote option. % >% The default it 20 recipients a

Re: [PHP] jpeg libraries.

2003-08-29 Thread Jason Wong
On Friday 29 August 2003 23:19, Mike At Spy wrote: > > * Thus wrote Mike At Spy ([EMAIL PROTECTED]): > > > It did install some jpeg stuff under /usr/local/bin, but I don't see > > > anything added to /usr/local/lib. > > > > > > After that, I re-compiled php with: > > > > > > --with-jpeg > > > > > >

Re: [PHP] open php from

2003-08-29 Thread Curt Zirzow
* Thus wrote Jonathan Pitcher ([EMAIL PROTECTED]): > Alvaro, > > To redirect use the header function (http://www.php.net/header) > > The call would be something like: > > header("Location: anotherpage.php"); I'd like to add that the location MUST be an absolute url. ie: Location: http://host.

Re: [PHP] PHP Interview questions

2003-08-29 Thread David T-G
murugesan, et al -- ...and then murugesan said... % % In a group of 12 eggs only one is having weight less or more. % Can we have a program to find the egg, provided we have to weigh only three % times with a weighing machine with two pans,without using weights. *Without* a balance scale? Hmmm.

Re: [PHP] speed of mail() on two servers

2003-08-29 Thread Raditha Dissanayake
Hello David, looks like a bit of a tough one :-) guess you might be better off trying one of the qmail groups instead of this one. Sorry my own qmail expertise isn't as good as it should be. best regards raditha David T-G wrote: jabber, et al -- ...and then [EMAIL PROTECTED] said... % % Hello

[PHP] imagejpeg function output

2003-08-29 Thread Mike At Spy
Just to make sure no one is lead astray - I still have an issue getting jpeg enabled on a server with gd and php. I am asking this question 'cause I am doing some work on a different server where jpeg is enabled. Anyway, I have this sort of setup: $src_img = imagecreatefromjpeg($rand_image);

Re: [PHP] jumping to an html anchor with ? syntax

2003-08-29 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Merlin <[EMAIL PROTECTED]> wrote: > > index.php?var1=value#jumppoint > > index.php#jumppoint?var1=value > > The first syntax is the correct one. What isn't working exactly? Technically the second one is correct too but only if the 'a' name is

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
Hello there, The line: \\vesuvius\home\users\grant\Parts.txt Gives the object not found page in Mozilla, even when clicked on from the vesuvius computer. I think that it is treating this like a relative link. Thanks for the help, Grant CPT John W. Holmes wrote: Can't you just link to \\comp

Re: [PHP] Foring a file download *and* page reload

2003-08-29 Thread Curt Zirzow
* Thus wrote Jean-Christian IMbeault ([EMAIL PROTECTED]): > I've asked about this before but could not get a working solution. > > I have a database. Users put data in the DB :) I have a page with a list > of accessible data "block". Each "block" has a button next to it. > > When a user click a

Re: [PHP] speed of mail() on two servers

2003-08-29 Thread David T-G
jabber, et al -- ...and then [EMAIL PROTECTED] said... % % Hello, Hi! % % I recall someone (pardone me i don't save list mails) pointing out that % the delay could actually be in generating the message rather than in the Yep. Nope. % sending. You are sending a customized message to each

Re: [PHP] Array Push and Keys

2003-08-29 Thread David Otton
On Fri, 29 Aug 2003 11:18:18 -0400, you wrote: >The question for anyone out there is simple - does array_push allow you to >push key=>value pairs? That is what is causing errors - nothing else, >everything else is a result of inherited systems, and other developers >crappy design. I agree with y

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Raditha Dissanayake
Hello, More suprising is that the html you have below works perfectly on my mozzilla 1.4 running on Red Hat 9 :-) provided i do have this exact path on my computer. /home/users/grant/Parts.txt From what you are saying it looks like in your case '/home/users/grant/Parts.txt' does not exist on yo

Re: [PHP] open php from

2003-08-29 Thread Jonathan Pitcher
Alvaro, To redirect use the header function (http://www.php.net/header) The call would be something like: header("Location: anotherpage.php"); remember that to use this command nothing can have been printed to the browser before hand. HTH Jonathan On Friday, August 29, 2003, at 11:13 AM, A

Re: [PHP] open php from

2003-08-29 Thread Chris Sherwood
header('Location: ' . $newLocation); - Original Message - From: "Alvaro Martinez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 9:13 AM Subject: [PHP] open php from > Hi! > I'm a beginner. I want to redirect from one php page to another php page and > I dont k

RE: [PHP] jpeg libraries.

2003-08-29 Thread Mike At Spy
Actually, I am using php 4.3.3 - which has gd 'bundled' in it. :) I couldn't actually re-compile it then, could I; meaning, is there some way of doing that separatly from php from the 'bundle'? :) Thanks, -Mike > -Original Message- > From: Tom Rogers [mailto:[EMAIL PROTECTED] > Sent

[PHP] open php from

2003-08-29 Thread Alvaro Martinez
Hi! I'm a beginner. I want to redirect from one php page to another php page and I dont know what method to use. How can I do it? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
Thanks for your reply, I think my mail was blocked for a few days here. Sorry for the delay. file:///home/users/grant/Parts.txt This link will not work in Mozilla. (Does nothing) However, if I copy and paste the address into the addess bar, it works fine. I suspect this is a security thing.

RE: [PHP] Can we control the content of MS Outlook Express

2003-08-29 Thread Wouter van Vliet
I think not every server allows the mail() command ... That's why: > SubjectLine"; ?> mailto:[EMAIL PROTECTED]&subject=">click here to mail me Is probably what you would be looking for .. Notice the urlencode.. -> -Oorspronkelijk bericht- -> Van: Duncan [mailto:[EMAIL PROTECTED] -> V

Re: [PHP] Array Push and Keys

2003-08-29 Thread Ernest E Vogelsinger
At 00:14 29.08.2003, Mike Morton said: [snip] > >I am trying to loop through some database results to build an array similar >to: > >Array ( >[33]=>Array ( >[usa]=>52.00 >[sa]=>553.00 >) >) > >And the problem that I am having is that a

Re: [PHP] Accessing objects of other objects?

2003-08-29 Thread David Otton
On Fri, 29 Aug 2003 15:19:23 +0200, you wrote: >On page "A" of my homepage I create an object "1" which itself creates an >object "2". >Now how can I access the properties of object "2" from "A" ? Two approaches. C contains an instance of A or E extends A. input : $s"); }

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
The code that I ended up using was: $res=mysql_query("select distinct dealercode from transactions where dealercode!='' order by dealercode",$intranet); $count=0; while($row=mysql_fetch_array($res)) { $amt=mysql_query("select sum(amount) as total from transactions where date between '2003-04-0

Re: [PHP] Array Push and Keys

2003-08-29 Thread John W. Holmes
Ford, Mike [LSS] wrote: Having said that, I've just given you a clue: since array_push($array, $var) is equivalent to $array[] = $var, you can get the result you want by doing: $array[] = array($k, $v); (with, of course, appropriate values for $array, $k and $v substituted to suit your code!).

RE: [PHP] Array Push and Keys

2003-08-29 Thread Ford, Mike [LSS]
-Original Message- From: Mike Morton To: David Otton Look - David - I do appreciate your efforts to help - and I realize that working blind on an email list is tough, but the question is not about the structure of the code, the database, reserved words or anything else. The question for a

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
And as a follow up, from the phpbuilder list where I posted the very same question today, I think this answers the question: "I don't think its a bug. I think the problem you're having is to do with what type of argument you can give to array_push. There are two possibilities ... 1) variable 2)

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
Look - David - I do appreciate your efforts to help - and I realize that working blind on an email list is tough, but the question is not about the structure of the code, the database, reserved words or anything else. The question for anyone out there is simple - does array_push allow you to push

RE: [PHP] jpeg libraries.

2003-08-29 Thread Mike At Spy
> > * Thus wrote Mike At Spy ([EMAIL PROTECTED]): > > > > It did install some jpeg stuff under /usr/local/bin, but I don't see > > anything added to /usr/local/lib. > > > > After that, I re-compiled php with: > > > > --with-jpeg > > > > But nothing changed. > > > > I re-compiled again with: > > >

Re: [PHP] Array Push and Keys

2003-08-29 Thread David Otton
On Fri, 29 Aug 2003 07:54:45 -0400, you wrote: >Correct on the brackets - but not on the results still working... The code >I had in the email was just a sample - here is the real code... Ack. For anyone watching, if you have a problem please post a minimal code snippet that illustrates the prob

Re: [PHP] jumping to an html anchor with ? syntax

2003-08-29 Thread Chris Shiflett
--- Merlin <[EMAIL PROTECTED]> wrote: > index.php?var1=value#jumppoint > index.php#jumppoint?var1=value The first syntax is the correct one. What isn't working exactly? Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing

[PHP] Exec submits prog 2 times !!!

2003-08-29 Thread Olivier Lepretre
Hi all, I need to execute a command that will remotely exec another one on another server. Here is the code (really simple) : print "Launching ssh"; flush(); $pgm = "ssh -fnl oracle diamond \"/home/oracle/myprog.sh &\" >/dev/null 2>/dev/null"; exec ($pgm, $output, $res); The ssh ... goes well w

[PHP] jumping to an html anchor with ? syntax

2003-08-29 Thread Merlin
Hi there, I am wondering how it is possible to jump to a name anchor with an url containing a questionmark. Things like: index.php?var1=value#jumppoint index.php#jumppoint?var1=value do not work. Can anybody help please? Thanx in advance, Merlin -- PHP General Mailing List (http://www.php.net

[PHP] session variables

2003-08-29 Thread Diana Castillo
I am having a weird problem, when I close all my browser windows and restart my application, the session variable which I set comes back suddenly, but only when I call a certain class . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] searching for javascript (or others) that can be used in conjunctionwith PHP for file folder uploads

2003-08-29 Thread Kenn Murrah
Greetings. (I've seen this subject discussed, but cannot find a solution in the archives.) I have a file upload site to which I need to add code for uploading of an entire folder/subdirectory ... I realize this can't be done in PHP alone but I'm hoping that a solution (possibly involving Javas

[PHP] Accessing objects of other objects?

2003-08-29 Thread Webmaster
Hi, I have the following problem: On page "A" of my homepage I create an object "1" which itself creates an object "2". Now how can I access the properties of object "2" from "A" ? It doesn't seem to work. I am fairly new to Object Oriented Programming. Thank you very much. -- PHP General Mail

Re: [PHP] converting date into database date format(newbie)

2003-08-29 Thread John W. Holmes
Anil Garg wrote: I am reading date in the format "08-Aug-03" from a text file. While writing this date into the myqsl database's date column it shows '00-00-'. Is there a function or some other way to convert "08-Aug-03" type of dates in to format which is acceptable by date field of the mysql

Re: [PHP] Absolute URLs with Require & Include

2003-08-29 Thread John W. Holmes
Seth Willits wrote: Is there anyway to get an absolute URL to work with Require & Include? Why doesn't it work already? I did see the tip about using $_SERVER, but this slows down page-loading considerably. You can use URLs in your include() or require() calls. include("http://www.google.co

Re: [PHP] problem with a mysql query with data from a form

2003-08-29 Thread Raditha Dissanayake
You might also want to use addslashes() . like '%something%' puts a big load on the database server. and it seems you are doing mulitples of these queries. Please make sure you have the correct indices on your tables. You might want to look at fulltext indexing instead. all the best murugesan

[PHP] Re: Foring a file download *and* page reload

2003-08-29 Thread Catalin Trifu
Hi, You could use the wrote in message news:[EMAIL PROTECTED] > I've asked about this before but could not get a working solution. > > I have a database. Users put data in the DB :) I have a page with a list > of accessible data "block". Each "block" has a button next to it. > > When

[PHP] Re: PDF Problem

2003-08-29 Thread Joerg Behrens
"Jack" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Dear all > I want to convert a text file to pdf format and store it in somewhere in my > harddisk. > I had found out that there is a dll inside my php4.04 directory > ("c:\php\extensions\php_pdf.dll") and from php.ini i had

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
Correct on the brackets - but not on the results still working... The code I had in the email was just a sample - here is the real code... $res=mysql_query("select distinct dealercode from transactions order by dealercode",$intranet); $transactions=Array(); while($row=mysql_fetch_array($res)) {

Re: [PHP] problem with a mysql query with data from a form

2003-08-29 Thread murugesan
use $det=trim($det); then assign the $sql value. -murugesan - Original Message - From: "Vincent Fievet" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 11:55 AM Subject: [PHP] problem with a mysql query with data from a form -Message d'origine- De : Vin

Re: [PHP] undefined variable

2003-08-29 Thread Viraj Kalinga Abayarathna
did you solve this problem? i checked the coding in my linux box, it's working fine. Viraj Chris Kay wrote: > > You seem confused with POST & GET, instead of using _POST to retrieve > values from the form, you use $senders_name, and further down you set > $_POST["msg"], which will only be used i

Re: [PHP] Re: Loading advise (no problem)

2003-08-29 Thread Ryan A
Hey, Thanks for the reply, will do. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 3:21 AM Subject: [PHP] Re:

php-general Digest 29 Aug 2003 08:52:40 -0000 Issue 2265

2003-08-29 Thread php-general-digest-help
php-general Digest 29 Aug 2003 08:52:40 - Issue 2265 Topics (messages 161078 through 161124): Some cookies are being set, some aren't 161078 by: Thaddeus J. Quintin post v get 161079 by: andu 161082 by: Jim Lucas 161088 by: John W. Holmes 161097 by: D

[PHP] PDF Problem

2003-08-29 Thread Jack
Dear all I want to convert a text file to pdf format and store it in somewhere in my harddisk. I had found out that there is a dll inside my php4.04 directory ("c:\php\extensions\php_pdf.dll") and from php.ini i had check that the extension_dir=c:\php\extensions; extension=php_pdf.dll had actived;

Re[2]: [PHP] building php witk libiconv

2003-08-29 Thread Tom Rogers
Hi, Friday, August 29, 2003, 4:09:14 PM, you wrote: AB> Hi Tom, AB> configure ... --with-iconv AB> doesn't change anything, configure is ok but make ends with: AB> gcc: /usr//lib/.libs/libiconv.so: No such file or directory AB> gcc: /opt//lib/.libs/libiconv.so: No such file or directory AB> I d

[PHP] Foring a file download *and* page reload

2003-08-29 Thread Jean-Christian IMbeault
I've asked about this before but could not get a working solution. I have a database. Users put data in the DB :) I have a page with a list of accessible data "block". Each "block" has a button next to it. When a user click a button what I would like is: - I extract the data block from the DB -

[PHP] Re: register globals question

2003-08-29 Thread Kae Verens
Merlin wrote: Hello, I am wondering if an application written to work with register globals set to off ($_GET[variable] etc.) would work with a system, where register globals is set to on? yes. Kae -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] register globals question

2003-08-29 Thread Merlin
Hello, I am wondering if an application written to work with register globals set to off ($_GET[variable] etc.) would work with a system, where register globals is set to on? If not, is there a way to make it work for boty configurations? thanx for any help on that, Merlin -- PHP General Mai

RE: [PHP] Urgent help required for using Cron

2003-08-29 Thread Javier Tacon
It seems problems with permissions. Can you pass me the output from "ls -la /var/spool/cron/" May be exists a directory called root inside /var/spool/cron, so, if exists, you should delete it and try again. -Mensaje original- De: Safal Solutions [mailto:[EMAIL PROTECTED] Enviado el:

[PHP] Re: GD & PHP

2003-08-29 Thread Kae Verens
Mike At Spy wrote: Is there anything special I have to do to enable GD when using PHP 4.3.2? I'm getting an error of: Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/sites/site37/web/photos/functions.php on line 594 When I use the imagecreatefromjpeg() function. Is it not

Re: [PHP] problem with a mysql query with data from a form

2003-08-29 Thread Binay Agarwal
- Original Message - From: "Vincent Fievet" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 11:55 AM Subject: [PHP] problem with a mysql query with data from a form -Message d'origine- De : Vincent Fievet Envoyé : mercredi 27 août 2003 10:44 À : '[EMAIL

RE: [PHP] WYSIWYG online editor for Macintosh?

2003-08-29 Thread Adrian Teasdale
Step (and everyone else who has replied directly) thanks for the links. I'll do some research and will post my results. The client is using OS9 and OSX so I need to find something that works with both. It's looking like Java at this moment in time. Thanks again Ade > -Original Message-

Re: [PHP] server/browser dependancies?

2003-08-29 Thread Binay Agarwal
Hi! Use instead of Find and so Hope this helps .. Cheers Binay - Original Message - From: "VB" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 11:36 AM Subject: [PHP] server/browser dependancies? > Hi, > > I am trying to come up with a form with m

  1   2   >