[PHP] host name

2003-08-14 Thread viraj
Hi all, I want to get the current domain name in to a PHP variable. This is the case.. I have a web site and four diferent domian names pointing to that site. I want to redirect users from the four domains to their specific home pages. eg: if a visitor from http://domain1.com the header should b

Re: [PHP] bug in code - can't find it!

2003-08-14 Thread AciD
just a little point; u can replace by which is better imho. AciD On Wed, 6 Aug 2003 14:57:23 -0700, Jennifer Goodie <[EMAIL PROTECTED]> wrote: Ok, here is my query and the bit of code I can't figure out: $query = "SELECT * from apt_user_t a, apt_company_t b "; $query .= "WHERE a.user_c

Re: [PHP] How to point at a spot and get relevant information?

2003-08-14 Thread Robert Cummings
ou should be able to use an image map form input widget to get the coordinates that the user selects from some image you display to them. Then the determination of relevant information can occur server side via PHP. I don't have experience with this, but it appears to be how mapquest works: http:/

[PHP] mail error

2003-08-14 Thread merryE
I am using php 4 with apache in windows. I created a form in html with this code: your name: your email: Additional message: In php, I wrote this and save as do_feedback.php: Thank You, $sender_name"; echo "We appreciate your feedback"; ?> I got an error message ssy Undefined variable:sen

Re: [PHP] Re: why doesn't default values for this function work

2003-08-14 Thread anders thoresson
Change your logic here... if($max_length == -1) then you did not send a value for $max_length and act accordingly. or if(!($max_length == -1)) you did send a $max_length value and act accordingly. But I want to make the same things, with some additions if $max_length is set. That's why I star

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Step Schwarz
Hi Amanda, Yeah, terminology is definitely tough to get a handle on at the start -- it was for me. I tried a couple of different books but had no luck until I picked up Larry Ullman's PHP Visual QuickStart Guide. Then it all kind of clicked into place. I highly recommend it -- it's like a big i

[PHP] undefined function imagecreate()

2003-08-14 Thread Marco Moonen
Just new at PHP and learning. Trying to execute simple script to draw a line: Browser returns: Fatal error: Call to undefined function: imagecreate() in c:\inetpub\wwwroot\draw4.php on line 4 Why is imagcreate() not understoodMarco -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] preventing output dump of passthru()

2003-08-14 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Curt Zirzow > on Tuesday, August 05, 2003 7:18 PM said: > > > thats the backtick operator. > > http://php.net/manual/en/language.operators.execution.php > > Oh... I SEE! Now I get it! > > So /that's/ w

Re: [PHP] setting function variables

2003-08-14 Thread Mark
--- Micah Montoy <[EMAIL PROTECTED]> wrote: > Tried this and it returns errors of type: > > Warning: Wrong parameter count for mssql_result() in > c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php > on line 78 > > Warning: mssql_result(): supplied argument is not a valid MS > SQL

[PHP] Re: module to display e-mail from source

2003-08-14 Thread Dan Phiffer
I don't think I've seen anything like what you're describing, but you ought to be able to use the standard mod_imap functions to determine whether a message has MIME components, HTML and the like, then output to the client as desired. If you haven't, you should take a look at http://us2.php.net/ma

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Chris Sherwood
Hitler is it? why is it everytime someone mentions a proper ettiquette, or some common sense thing that it is immeadiately taken to an extreme.. is this reasonable behaviour? does it portray us as adults, maybe adults who have a major chip on our shoulders... all I am saying is if you feel nasty

[PHP] configure smtp in php.ini

2003-08-14 Thread merryE
Help.How to configure SMTP in php.ini ? I am a beginner. no clue at all.

[PHP] on specific time in the month do script!!

2003-08-14 Thread Nabil
HI all; how can i run somthing or a function that only run on every month from the first untill the second on a specific time: in other word : the first two day of every month but it end on like 2pm of the second.. if ( today is 1/of any month untill 2/ of the same month at XX hour ) { return tru

Re: [PHP] greedy preg

2003-08-14 Thread skate
> Do you need to use ".*?"? If there will be only white characters, use > \s* instead. > unfortunately there's some content either side of $file before this content is different for each item, so i can't define it in the pattern. -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Stop neurotic posting

2003-08-14 Thread daniel
> This is a very busy list, over 100 message in a quiet day and most > people are helpful and decent, don't mind reading and learning. > Unfortunately there are some who mostly post stuff like 'read the > manual' and other shit like that. Stuffing e-mailboxes with such > garbage day after day do

Re: [PHP] host name

2003-08-14 Thread Mike Migurski
>I want to get the current domain name in to a PHP variable. print_r() the contents of $_SERVER to see all the information given to you by the webserver -- the host name will be in there. - michal migurski- contact info and pgp k

RE: [PHP] FDF support in RedHat

2003-08-14 Thread Jay Blanchard
[snip] You must compile PHP with --with-fdftk[=DIR]. Maybe for you, Jay, this is crystal clear, but for me, is like greek. =) I will ask again... how do you compile php with fdf support in red hat? [/snip] First, run phpinfo(); in a web page on your server and copy the Configure Command (shoul

Re: [PHP] How to point at a spot and get relevant information?

2003-08-14 Thread skate
> > > Dear all, > > > > Anybody knows how to write a graphic plotting code such that when users > > point > > at that spot, they can get the information relevant to that spot? Thanks > > in advance. > > that'd be pretty intense. to do this feasbly with PHP, you'd have to analyse the picture fir

Re: [PHP] host name

2003-08-14 Thread Justin French
Have a look at the output, find the variable you need, then manipulate it if needed. Justin French On Friday, August 15, 2003, at 01:32 PM, [EMAIL PROTECTED] wrote: Hi all, I want to get the current domain name in to a PHP variable. This is the case.. I have a web site and four diferent dom

[PHP] [HELP] - Session_Unregister Not working

2003-08-14 Thread Christopher J. Crane
I can not get a variable in a session to unset() and then re-populate and it is destroyed. Please follow below to get the flow of what I am doing. I have created a helpdesk application with a login. I am using sessions to keep track of information I need for the session. That information is User'

[PHP] Building an XML Parser Class

2003-08-14 Thread Donald Tyler
Hi, I am trying to create a Class that will parse an XML document. It all works fine as individual functions but I cant get it to work as a class. For example, when I do the following in my class: xml_set_element_handler($this->xml_parser, '$this->startElement', "$this->endElement"); xml_set_cha

[PHP] configure smtp error

2003-08-14 Thread merryE
I am using LAN in my college and there is firewall. will it effect my mail function in php. I configure my server name as localhost at apache http.conf. and inphp.ini i configure my SMTP like this: [mail function] ; For Win32 only. SMTP= POP ; for Win32 only ; For Win32 only. sendmail_from

RE: [PHP] Stop neurotic posting

2003-08-14 Thread andu
--On Wednesday, August 06, 2003 10:09:06 -0500 Jay Blanchard <[EMAIL PROTECTED]> wrote: neurotic \Neu*rot"ic\, a. [Gr. ? nerve.] 1. Of or pertaining to the nerves; seated in the nerves; nervous; as, a neurotic disease. 2. Uself in disorders of, or affecting, the nerves. I am being a smart-ars

[PHP] Downloding files once

2003-08-14 Thread Boaz Yahav
Hi I'm trying to allow users to download files from my servers. Files can be hundreds of MB in size and sometimes even a few GB. This is a closed section of the site and i would like to allow only members to be able to DL the files. I thought of using a download function that uses headers and rea

Re: [PHP] 4.3.3RC download mirror sites?

2003-08-14 Thread Jean-Christian IMbeault
Jason Wong wrote: > When you go to the download page you *are* presented with a choice of mirror > sites. Or are you saying that you cannot even get to the download page? I guess that is what I am saying since when I click on the download link I get: "The operation timed out when trying to conn

[PHP] Stop neurotic posting

2003-08-14 Thread andu
This is a very busy list, over 100 message in a quiet day and most people are helpful and decent, don't mind reading and learning. Unfortunately there are some who mostly post stuff like 'read the manual' and other shit like that. Stuffing e-mailboxes with such garbage day after day doesn't do

RE: [PHP] preventing output dump of passthru()

2003-08-14 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, August 05, 2003 4:56 PM said: > Trying to prevent the output dumping of passthru() and instead store > the output in a variable. [snip] > But that didn't work. Is there *ANY* way to achieve what I want? Ok I've found one solution so far* and it's doing what I

[PHP] Suppress errors when running as CGI?

2003-08-14 Thread Jeff Rizzo
Hi- I'm using PHP 4.2.3 under thttpd as a CGI. Things work pretty well, but I can't seem to get it to suppress displaying errors, even though display_errors is set to 'Off' in php.ini. Any suggestions? Thanks, +j -- Jeff Rizzo http://boogers.sf.ca.us/~r

Re: [PHP] Stop neurotic posting

2003-08-14 Thread John Manko
I tend to think that PHP will take over the world Just my $0.02. Robert Cummings wrote: Hitler began his conquest by taking a country here, a country there while other countries sat around saying to each other oh he won't keep doing it. Let's DO NOTHING! Obviously that plan was flawed -- and t

Re: [PHP] Re: why doesn't default values for this function work

2003-08-14 Thread CPT John W. Holmes
From: "anders thoresson" <[EMAIL PROTECTED]> > I want the $max_length to be optional. With your solution it isn't? I > thought I could make it optional by assigning a default value of -1, which > would tell the function not to bother with max_length and continue the > execution. > > All in all my

[PHP] Stop neurotic posting

2003-08-14 Thread Alberto Brea
If you allow me to make a comment, I think that perhaps the size of the list makes is difficult for everybody to be aware of and stick by the guidelines. In smaller lists this might be easier. Maybe an idea could be if the organizers could send a message or reminder (weekly perhaps?) reminding us o

[PHP] GD: ImageCreateTrueColor

2003-08-14 Thread Kai Poppe
Hello NG ! I am using php-4.3.2 and gd-2.0.15 and when using ImageCreateTrueColor, my server cowardly refuses the show any image, instead he tells me, that the image dimensions were invalid ... anyone any idea ? please answer to ng or ia mail, need help !!! Greetings Kai -- PHP General Mail

RE: [PHP] dev style guide

2003-08-14 Thread Jay Blanchard
[snip] I've found a few articles on Hungarian notation but none of them have been all that great. Real wordy and without good examples. Do you have any examples/articles to contribute? [/snip] There is a lot to go on out there http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Hungarian+notati

[PHP] How can I load load Additional extensions ?

2003-08-14 Thread Dennis Lee
My OS is Winxp . My web server is apache 2 which is installed as a NT service . My php version is 4.32 , and I extracted it into "c:\php" . I run php as a apache module . I want to load Additional extensions .They are php_mbstring.dll, php_xslt.dll and php_domxml.dll . I have made changes to p

Re: [PHP] setting function variables

2003-08-14 Thread Juan Nin
"Micah Montoy" <[EMAIL PROTECTED]> wrote: > Anyone know of way to do this, so I can use a generic name for all the functions > and be able to distribute it to those using either SQL Server or MySQL > without them having to go through the code and manually change it? use Pear's DB abstraction laye

[PHP] how to auto create a new page on the fly

2003-08-14 Thread DougD
I would like to create a new page on the fly - basically having the PHP file to export content into a new static HTML file and save it as content.php. Make sense? Appreciate your help and insights. -Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] How can I change ? to %3F

2003-08-14 Thread CDitty
DUH Thanks all. This is exactly what I was looking for. Couldn't remember the exact term of the chars though. Thanks again. Chris At 05:19 PM 8/5/2003, David Nicholson wrote: Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 23:16, lines prefixed by '>' were originall

Re: [PHP] mail error

2003-08-14 Thread Jackson Miller
The from header has to be something like: $mailheaders = "From: My Web Site <[EMAIL PROTECTED]>\n"; There has to be an email address in the from header. It will show up like you want in your mail client. -Jackson On Thursday 14 August 2003 10:50, merryE wrote: > I am using php 4 with apache in

Re: [PHP] Stop neurotic posting - my take on it.

2003-08-14 Thread Larry R. Sieting
Hello, First.. I have nothing to say right now about PHP programming... except I am learning it and like what I have learned so far.(background in several languages). Second... I just did a little query of my mail and found that out of 165 messages received to day on this list alone, 41 of th

RE: [PHP] Unzipping Files

2003-08-14 Thread Matt Palermo
I am doing this for a client, and he doesn't have the ZZIPlib installed, and would like to avoid it if possible. Any other ideas? Thanks, Matt -Original Message- From: Adam Alkins [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 8:24 PM To: Matt Palermo Cc: [EMAIL PROTECTED] Su

Re: [PHP] configure smtp error

2003-08-14 Thread Jackson Miller
It looks like sendmail_from should be an smtp server, not an email address. Try setting it to your outgoing mail server that you use with your email client (i.e. Outlook). If you can send email from your email client then the firewall will have no bearing. -Jackson On Thursday 14 August 2003

Re: [PHP] [HELP] - Session_Unregister Not working

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 04:33, Christopher J. Crane wrote: > I can not get a variable in a session to unset() and then re-populate and > it is destroyed. Please follow below to get the flow of what I am doing. When using header() to redirect you should always session_write_close() first. --

Re: [PHP] gettin parameters from url, architecture question

2003-08-14 Thread Merlin
they are dynamic. Would it make sence to put all requests to an error document? Is this not a huge load for the server? Lets say I redirect all 401 errors to one php page where I parse the url and find the right file to redirect. This would be possible, but I fear that it would slow down the serve

Re: [PHP] How can I load load Additional extensions ?

2003-08-14 Thread Leif K-Brooks
Dennis Lee wrote: what was wrong ? thanks for any useful words . Are those extensions in c:\php\extensions? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http

Re: [PHP] The stupidest question of the month.

2003-08-14 Thread Dan J. Rychlik
I wrote a similiar IO Socket script by what you are describing. I used perl and the IO::Socket module. It was pretty straight forward and their is plenty of docs out there on that module. Just a thought Good Luck! Daniel - Original Message - From: "René Fournier" <[EMAIL PROTECTED]

[PHP] why doesn't default values for this function work - resending because of bad formatting

2003-08-14 Thread anders thoresson
Hi, I'm having problem with a function that I'll use to validate user input before passing it to MySQL. For strings, I want to make sure that they aren't to long, so I have written this function: function secure_string($unsafe_string, $max_length = -1, $errormessage = "Too many characters." ) {

Re: [PHP] Stop neurotic posting

2003-08-14 Thread andu
--On Wednesday, August 06, 2003 14:40:35 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: On Wednesday 06 August 2003 14:35, John Manko wrote: perhaps there should be two lists (novice and advanced), and the advanced listed shouldn't answer questions if it's considered trivial enough for the novice

Re: [PHP] preventing output dump of passthru()

2003-08-14 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Here is my code: > > $command = "file -i ".$pictureDir."1"."_".$id."-*.gif"; // testing > $output = `$command`; > $outputArr = explode("\n",$command_output); > print_r($outputArr); > > If you'll notice line #2 is "$output = `$command`;". It has

[PHP] Enterprise PHP market research

2003-08-14 Thread Alexandru COSTIN
Hi, I represent a PHP software development company . We are conducting an open survey on PHP acceptance level in the enterprise. We think that only understanding how large companies conduct business we'll be able to introduce them to PHP - thus preventing competitive technologies close

Re: [PHP] gettin parameters from url, architecture question

2003-08-14 Thread Merlin
> RewriteRule ^file_html_22.html$ dospamfile.php this looks somehow faster than doing a errordocument redirect. Would it for example be possible to redirect all files starting with /travelogue_ to a specific file? Merlin PS: thanx for the great hint! --