[PHP] create pop account via fsockopen...
All, I'm having trouble creating an pop account usaign fsockopen(), here is whaty I have... is connects ok but does not seem to execite the GET. $fp = fsockopen ($host, 2082,$errno,$errstr); if (!$fp) { echo "$errstr ($errno)\n"; } else { $authstr = "$cpaneluser:$cpanelpass"; $pass = base64_encode($authstr); $in = "GET /frontend/$cpaneltheme/mail/doaddpop.html?email=$newuser&domain=$domain&pass word=$mpassword"a=$quota\r\n HTTP/1.0\r\nAuthorization: Basic $pass\r\n "; fputs($fp, $in); fclose ( $fp ); echo "ACCOUNT CREATED"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: numbers to text
> >?> just not even be bothered with Google > I did but didnt find any to be fair... nor did I when i was looking :\ :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: numbers to text
> Anyone know of a class or function that converts numbers to readable text Oh how old... coud you just not even be bothered with Google or any other search engine? To save you the trouble: http://www.phpclasses.org/browse.html/package/754.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: WEB HOST NEEDED!!!!!
Stop posting these messages! And save up money! :) and do what the rest of us do! "Denis 'Alpheus' Cahuk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Like I said, I need a web host. > It MUST support PHP, mySQl and sending emails, optional. > It shouldn't have any ads (pop-ups, ads), but I will allow if it has > watermarks (SMALL! watermarks). > It should be TOTALY FREE! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] General question...
it detracts from the experiance of user consistency if you are suddenly in a nice site then presented with a crappy looking payment page ;) "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do you think the users will trust your site that much they will be > willing to give you their credit card information? How would they know > you won't keep this information? > > Valentin wrote: > > hi Jason, > > In my site I use a payment system, but unfortunately, there is a "moment" > > when the client must enter his card data into the page "owned" by the > > company that makes transactions (sorry for this descriptive bad english). > > The problem is that the design of this page is quite different then mine and > > I would like to get the html responce and redesign at run time by php and > > display what I would like to be. > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Looking for Function / Procedure, best practices
> I am looking for something like strip_tags ($str, "") but in > reverse operation. > This will strip all tags except tags, but I need to strip > these tags only () keeping the rest unchanged. You'll be wanting regular expressions then :) http://uk2.php.net/ereg_replace just build up an expression to replace & with nothing :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Email....
> Working kind of :) > > Get one line from it Kinda... I get it to return one line... The code: Emails me: Test Test... Original Email: >From [EMAIL PROTECTED] Thu Jun 12 11:41:39 2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Email....
> Assuming that your sendmail alias was setup properly then the whole email will > be available in STDIN, see manual > Using PHP from the command line for > details. Working kind of :) Get one line from it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Email....
> Assuming that your sendmail alias was setup properly then the whole email will > be available in STDIN, see manual > Using PHP from the command line for > details. Cheers! Works a treat now to parse the bugger :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: ntp client??
> I've had a look around but no luck watsoever. If someone could give me a > short answer on this one? Is it possible to make a php ntp client? If so > give me your opinion on getting it done please? do you mean to query a time server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Email....
I have a question about automated email: In my sendmail configuration i have: Alias: Testit Feeds to Program /usr/local/bin/php /usr/local/apache/sites/xxx.com/tasks/automail/test.php testit is set up to an address, so if i send to [EMAIL PROTECTED] the above is indeed ran, my question is how in the test.php can i access the original email that triggered it? Any clues would be much appreciated :) Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQL SERVER QUESTION
Or the fact that various datatypes take up various storage needs "Clint Tredway" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How about the need to add prices together, or store binary data, or using a > bit for true false... > > There are numerous reasons for datatypes in a database. > > HTH, > Clint > > -Original Message- > From: Dale [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 11, 2003 8:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] SQL SERVER QUESTION > > > I am still new to web programming. I have a question regarding sql > databases. Since variables in php don't require a type, why is it so > important that you specify a type for each of the colomons in your tables in > your sql database. It seems to me that you could potentially make everything > chars and it wouldn't make a difference. The only real benefit is that I > have seen that by making a column of type date, it allows you to easily > compare dates. I don't see the benefit of making a colomon of type money > though? > > Thanks, > Dale > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: OpenSource PHP Project
May help if the website worked... OR give us a link to the SF project page? "Michael A Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Anyone interested in helping out with an opensource CMS project. > PHP/MySQL/Smarty Templates/Modules checkout prattcms.sf.net. It's > different from other CMSs in that it is not user-driven. The pages use a > WYSIWYG editor (inline, htmlarea, also open-source). > > Thanks! > > -Michael > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php script execution by linux automated task
look up cron "Nenad Djordjevic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I have some web application which is on some rented server. I have not > root privilege just FTP access to application web folder. OS is Linux, > web server Apache/1.3.27 and PHP version is 4.3.1 > > I need to define Linux task which will, in defined time, execute some PHP > script (`somepage.php`). This script is under web folder. > > > Does anybody can give me useful hint? > > > > > Best regards, >Nenad Djordjevic mailto:[EMAIL PROTECTED] > >Diyomi Soft >http://www.diyomisoft.com/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP as Shell script...
I am having trouble using php as a script. #!/usr/local/bin/php using the above form creates the following cron error: /bin/sh: /usr/local/apache/sites/domain.com/tasks/autoreport/test.php: bad interpreter: No such file or directory Any ideas? Thanks in advance... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] WorldPay examples...
I'm looking for an example of making payments via worldpay... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 07/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Help!!!
ok i think i see the problem but how do i fix? Before call to procedure: VARS: 1,1,213.123.253.117, inside procedure: VARS: ,,, Causing: connectin: insert into referral (RID, RGID, VisitorIP, VisitorDate, VisitorFromURL) values(Resource id #4,Resource id #4,'Resource id #4',NOW(),'Resource id #4') inserted not Sorry, an error has occured. It has been recorded and reported to the Website Administrator. Error: SQL: Error Code: 1065: Query was empty "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have just got use of a new dedicated webserver... > > Now the 1st time a piece of code is ran it doesnt work but then the 2nd it > does... > > i.e. > > index.php > >// stuff... > $visitDBID = referrerVisit($rid,$rgid,$visitIP,$visitFromURL); >// stuff... > > //end index.php > > function referrerVisit($rid,$rgid,$visitIP,$visitFromURL) { > $db = dbConnect(); > $sql = " > insert into referral >(RID, RGID, VisitorIP, VisitorDate, VisitorFromURL) >values($rid,$rgid,'$visitIP',NOW(),'$visitFromURL') > "; > echo $sql; > $result=mysql_query($sql); > if(mysql_error()) { >echo "inserted not"; > $errormessage = ""; > $errormessage .= "SQL: $sql"; > $errormessage .= "Error Code: ".mysql_errno().": ".mysql_error(); > echo " > Sorry, an error has occured. It has been recorded and reported > to the Website Administrator. > Error: > $errormessage > "; > return null; > } else { >echo "inserted"; > return mysql_insert_id($db); > } > } > > When it's ran initilly: the sql that i generated looks like: > > insert into referral (RID, RGID, VisitorIP, VisitorDate, VisitorFromURL) > values( insert into referral (RID, RGID, VisitorIP, VisitorDate, > VisitorFromURL) values(Resource id #4,Resource id #4,'Resource id > #4',NOW(),'Resource id #4') , insert into referral (RID, RGID, VisitorIP, > VisitorDate, VisitorFromURL) values(Resource id #4,Resource id #4,'Resource > id #4',NOW(),'Resource id #4') ,' > > and gives the error: > > Error: > SQL: > Error Code: 1065: Query was empty > > However if i refresh the page: it executes correctly... > > Any ideas? > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.438 / Virus Database: 246 - Release Date: 07/01/03 > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 07/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help!!!
I have just got use of a new dedicated webserver... Now the 1st time a piece of code is ran it doesnt work but then the 2nd it does... i.e. index.php // stuff... $visitDBID = referrerVisit($rid,$rgid,$visitIP,$visitFromURL); // stuff... //end index.php function referrerVisit($rid,$rgid,$visitIP,$visitFromURL) { $db = dbConnect(); $sql = " insert into referral (RID, RGID, VisitorIP, VisitorDate, VisitorFromURL) values($rid,$rgid,'$visitIP',NOW(),'$visitFromURL') "; echo $sql; $result=mysql_query($sql); if(mysql_error()) { echo "inserted not"; $errormessage = ""; $errormessage .= "SQL: $sql"; $errormessage .= "Error Code: ".mysql_errno().": ".mysql_error(); echo " Sorry, an error has occured. It has been recorded and reported to the Website Administrator. Error: $errormessage "; return null; } else { echo "inserted"; return mysql_insert_id($db); } } When it's ran initilly: the sql that i generated looks like: insert into referral (RID, RGID, VisitorIP, VisitorDate, VisitorFromURL) values( insert into referral (RID, RGID, VisitorIP, VisitorDate, VisitorFromURL) values(Resource id #4,Resource id #4,'Resource id #4',NOW(),'Resource id #4') , insert into referral (RID, RGID, VisitorIP, VisitorDate, VisitorFromURL) values(Resource id #4,Resource id #4,'Resource id #4',NOW(),'Resource id #4') ,' and gives the error: Error: SQL: Error Code: 1065: Query was empty However if i refresh the page: it executes correctly... Any ideas? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 07/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PDF
I'm looking to find out if PHP has the ability to do this... OK I'm looking for a solution that could do the following. We require to generate PDF files that can then be emailed or printed & posted to clients. I can create PDF Files from scratch using PDFLib. What we will require to do though is, we presently have paper copies of forms from various parties we deal with, our present Access-based system simply prints on top of these, I am presently developing in PHP a system to replace the Access database, we will want it to create these as PDF files (we can get the printed forms in PDF format) based on supplied PDF files... for example, generate a PDF for Customer X based on Supplier Z's PDF file. Any solutions in PHP (open source, free, commercial etc etc.) would be very much appreciated, or if we need to look at another Language to perform this part of the solution (i.e. ASP). The solution I'm developing is PHP, running on a Windows 2000 Server as we require use of some windows-only software too. So if *cough* ASP is what's needed to do the above then so be it :\ - really hope not though!!! Thanks in advance! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 07/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MIME email...
All, I have a problem sending Multipart - MIME (plaintext + html) email $bodyPlaintext = " (PLAINTEXT)"; $bodyHTML = " (HTML CODE)"; $headers = ""; $headers .= "From: [EMAIL PROTECTED]\r\n"; $headers .= "Reply-To: [EMAIL PROTECTED]\r\n"; $headers .= "X-Mailer: PHP " . phpversion(); $subject = "Alert! Confirmation!"; //unique boundary $boundary = uniqid("HTMLBODY"); //add From: header //$headers = "From: [EMAIL PROTECTED]\r\n"; //specify MIME version 1.0 $headers .= "MIME-Version: 1.0\r\n"; //tell e-mail client this e-mail contains//alternate versions $headers .= "Content-Type: multipart/alternative; boundary = $boundary\r\n\r\n"; //message to people with clients who don't //understand MIME $headers .= "This is a MIME encoded message.\r\n\r\n"; //plain text version of message $headers .= "--$boundary\r\n" . "Content-Type: text/plain; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $headers .= chunk_split(base64_encode($bodyPlaintext)); //HTML version of message $headers .= "--$boundary\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $headers .= chunk_split(base64_encode($bodyHTML)); sent with: mail($email, $subject, "", $headers); Now... the problem I have is some people are reporting they get the Multi-part stuff as the body... for others it'll work as wanted... i.e. display Plaintext or render the HTML as wanted. Anyone had this problem? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 07/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Random Row...
$sql = " select count(*) as theCount from myTable "; ... $row_id = rand(1, $myrow["theCount"]); ... $sql_randow_row " select * from myTable where id = $row_id "; I assume I'm right with the method above to select a random row? or any other way? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 08/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Php's future with Asp .NET?
The 'problem' with ASP is that it really requires a Windows platform... and while Unix is still primarily the OS of choice for web-servers then ASP & PHP will 'co-exist' there will always be a PHP and ASP camp... naturally any broad-minded developer will keep up with both technologies as this will ultimatley make you more sellable when looking for work or a job. I have very little ASP experiance, but that has cost me the oppertinity to apply for several well-paying jobs, as there is very few PHP positions around - I'm speaking for the UK market here. Saying that, most companies that ask for ASP don't necessarily 'need' to use ASP, they just request it cos it's the executive-level buzzword of the moment, if you get in you can always show them the errors of their misconceptions - I generally have! However I feel that will change - in the UK atleast there is a slowly growing number of PHP-based projcets & roles appearing, and PHP is by far the most flexible & powerfull of the 2 - IMHO. I have been a web-developer for several years, and have deployed solutions in ASP, Cold Fusion and PHP, PHP remains my platform of choice as it works equally well in both Unix & Windows platforms. This is of course just my views & hopes for the present and future :) Long live PHP!!! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 08/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Development tools
Yes you can use java classes... from php. Yes you can write & compile C++ to a dll and use it. For Java: Notepad + the JDK :) DLL's (C++) Notepad + dgcpp :) IF you want a GUI - Java = JBuilder is best I've used. C++ - typically VC++ :\ There are some free alternatives but the above are the 2 industry tools. But your question regarding tools to do either is still not PHP :) "Didier McGillis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > There was one discussion starting about coding/development tools. I was > wondering if anyone out there knows of good development/coding tools for > Java and C++. I've been using Visual C++ for the C++ part, and hand coding > Java. I just started on both of them and wanting to learn how to use them, > but I know the tools could speed up the process, especially I am a learn by > doing type of guy. > > _ > The new MSN 8 is here: Try it free* for 2 months > http://join.msn.com/?page=dept/dialup > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.431 / Virus Database: 242 - Release Date: 17/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache + php + MS active directory
Yip... Investigate... LDAP "Ezra Nugroho" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Now, this is a rather unlikely configuration, but ... > > I am working on a linux based web work based on apache and php, but the > authentication system on site is based on MS active directory. > > Does anyone know if apache + php can be configured to authenticate users > through active directory? > > Is it possible to write htaccess files that queries MS active directory? > > Can we treat MS active directory just like any other LDAP, i.e. is it > LDAP V2 compliant? > > I value any response. > > Thanks, > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.431 / Virus Database: 242 - Release Date: 17/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Development tools
And this has what to do with PHP? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.431 / Virus Database: 242 - Release Date: 17/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Far out!!!! More IIS problems.....
php (.exe or .dll) will look for a php.ini in both, c:\(windows_dir) and c:\php\ (I am not sure what location takes priority - I'd assume c:\(windows_dir) "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I only have one php.ini on the machine and the filepath point to this one. > > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > phpinfo will tell you which php.ini is used > > > > Scott Fletcher wrote: > > > > >I tried various methods on IIS after configuring hte PHP.INI. Such as > > >shutting down IIS, restarting IIS and rebooting hte machine. Here's one > > >latest addition that I found to be very far out!! What I did was I > > >renamed the php.ini to php1.ini and goes throught the procedures. Guess > > >what the website still is the same. So, I renamed the php.ini back and > make > > >some changes in php.ini. Still the same result. I'm still working on > it. > > > > > > > > > > > > > > > > > > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.431 / Virus Database: 242 - Release Date: 17/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Forwarding POST info from a PHP script
Could be an issue on the webserver if PHP has register_globals set to off... "David Barrett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to be able to retrieve POST variable in one PHP script (which is > straight-forward) and then send these from the script to another one > returning the processed input. > > I have written a script that will parse a frames-based page and render it as > a flat page (i.e. all frames displayed as a table in one HTML file) - this > is so that I can create a website using frames, and still let browsers that > don't support frames to access it without my having to create a separate > version of the site. > > e.g.: > http://www.redradish.co.uk/rr/index.htm (frames based site) > http://www.redradish.co.uk/php/framesprocessor.php?Frameset=http://www.redra > dish.net/rr/index.htm&RenderMethod=1&MainFrame=main&AllHead=1 > (the same site > rendered as single page). > > The problem is that if in the frames-based site one of the frames is a form > submission, I need to be able to send this data to the original form and > retrieve the output to display in the rendered page. > > e.g. > http://www.redradish.co.uk/php/framesprocessor.php?Frameset=http://www.redra > dish.net/rr/index.htm&TargetName=main&Target=http://www.redradish.net/rr/con > tact/contactF.htm&MainFrame=main&RenderMethod=1&LinkSearch=1&AllHead=1&Debug > =1 > (this is a page that has a contact form). > > I can't find any information on how to forward such a request. > > The script in question is located at: > http://www.redradish.co.uk/php/framesprocessor.php > > It uses these variables (passed using GET or POST): > Frameset frameset page. This needs to be parsed and a static HTML page > created. > Target (optional) full URL of page to be displayed in frmae named > TargetName. > TargetName (optional) name of the frame that $Target should appear in. > MainFrame (optional) is the frame from which header info, etc. is > taken. > Default is first frame. > AllHead (optional) If set (is 1 or more), copies content from all > frames. > RenderMethod (optional) defines how the frameset is to be represented: > 1 - All frames dumped into new page in order they appear in > frameset. > 2 - tables are used to attempt to recreate original format > Default is 1. > LinkSearch (optional) how links are replaced: >1 - Only specific tags are replaced >2 - Anything within quotes (' or ") that contains document path is > replaced > Default is 1. > Debug If set (greater than 0), debug info is added in comments. > > It works to a good degree on most frames-based sites, but does have a couple > of failings (such as the one mentioned) that I would like to overcome. > > The other problem is handling JavaScript in e.g. src="JavaScript:openpage(xx)">. There is no way to process JavaScript in > PHP that I am aware of - does anyone have a workaround for this? i.e. so > that my script can process the JavaScript function and retrieve the relevant > page for inclusion in the rendered page. > > > Hope someone can help! > > Thanks. > > Dave > > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.431 / Virus Database: 242 - Release Date: 17/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: email a web page
"Dc" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I have a newsletter ready to email to my database of customers. > > The entire newsletter incl graphics , layout etc is enclosed within a form > which posts to a second page which s supposed to email the desired > page..but it does not work! The code is listed below > > ___ > > > $dbcnx = @mysql_connect("localhost","", ""); > if (!$dbcnx) { > echo( "Unable to connect to the " . > "database server at this time." ); > > exit(); > > } > > if (! @mysql_select_db("NameOfDataBase") ) > > { > > echo( "Unable to locate the " . > "database at this time." ); > > exit(); > > } > > ?> > > // HTML VERSION > > > $result = mysql_query( > "SELECT EmailAddress FROM emailbasketrecipient"); > if (!$result) > { > echo("Error performing query: " . > mysql_error() . ""); > exit(); > } > while ( $row = mysql_fetch_array($result) ) > { > > $message = " > > > ::: Welcome to my Newsletter ::: > > > > > > >height='162'> > > > > content content etc > > > > > > > > > > "; > > $email = $row["EmailAddress"]; > > (line 79) $headers .= "From: My site.com<[EMAIL PROTECTED]>\n"; >$headers .= "X-Sender: <[EMAIL PROTECTED]>\n"; > $headers .= "X-Mailer: testDC\n"; >$headers .= "Return-Path: <[EMAIL PROTECTED]>\n"; > $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; > $subject = " Club Newsletter"; >(line 91) mail($email, $subject , $message, $headers); > $headers = ""; > > } > > echo("$message"); > > ?> > _ > > and then I get this message each time. > > Warning: Undefined variable: headers in > c:\www\cavalier\admin\newsletteremailcommand.php on line 79 > > Warning: Failed to Connect in > c:\www\cavalier\admin\newsletteremailcommand.php on line 91 > > > Any quick and easy tips to get my newsletter happening? Even a new script or > easy tutorial in Englsih. > > > Thanks > > DC > > > > try and change your first $headers .= "stuff" to $headers = "stuff"; --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.431 / Virus Database: 242 - Release Date: 17/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Creating reports in database systems implemented over Web interface
Make use of fpdf - a good dpf creation lib.. type it into google for the site. "Enediel" <[EMAIL PROTECTED]> wrote in message 076a01c2a51c$9c47be50$8a24a8c0@nsoft">news:076a01c2a51c$9c47be50$8a24a8c0@nsoft... > Hi everybody: > > Over linux, I'm using PostgreSQL , Apache server, and PHP pages to create a > database systems with web interface. > > I need to know how programmers have solved the problem about printing high > quality reports using the databases information. > > Thanks in advance > Enediel > > Happy who can penetrate the secret causes of the things > ¡Use Linux! > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.427 / Virus Database: 240 - Release Date: 07/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ping...
I can exec ping OK... but I need a way to ping and basically give me a OK or Not OK... any ideas? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.427 / Virus Database: 240 - Release Date: 06/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?
> > I was wondering if this is possible to in PHP ... I am developing an > > application for a pizza place, where touch typing interface is much faster > > than using the mouse, so I was wondering if I can develop an interface with > > a calculator style keypad, and the codes entered (using something like STDIN > > in Perl), are automatically compared to the MySQL database to provide > > realtime feedback to the user, such as code 32 is hawaian pizza, and after > > the user enters code 32 Hawaian pizza get's displayed as feedback ... and > > then awaits for some other input such as size, etc... > > I can't think of any reason why not. Obviously this won't be a web > application :) Though a good design could be re-used to form an online > ordering application also. You could go one step further and develope it for use with a touch screen then you could just write it as a web application and run it thru a full-screen browser :) (Which I have done - using php, mysql and full-screen IE :) - and is a nice solution for such issues - if feasable). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do i provide Download facility ??
Perhaps he wants to track downloads of files and obscure the physical locations... "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > > I am a newbie in this PHP world. I was just looking around for > > information on Download of files using PHP. > > I need to provide link/button, by clicking which a user can download a file > > (Say a CSV file..). Does PHP provide any class or methods to achieve the > > same...? Looking forward for your suggestions ... > > Why do you need it to be anything to do with PHP? You need to tell us more > information, because plain HTML like this works fine: > > Click here to download the CSV file > > ...but I assume you want to restrict file downloads to only logged in users, > or you wish to count the number of downloads, or something else?? > > > Justin French > > http://Indent.com.au > Web Development & > Graphic Design > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: IIS and PHP with $HTTP_SERVER_VARS
it's to do with probably folder permissions, the folder all your web files are should have IUSR_machinename added to the folder with full rights, the login box should then not appear... "Shaun Garriock" <[EMAIL PROTECTED]> wrote in message 018301c2954d$265b4010$c101a8c0@rgcweb01">news:018301c2954d$265b4010$c101a8c0@rgcweb01... Hi The problem I am having is as follows: I setup PHP with IIS and it seems to work fine. I am creating a Intranet site and would like to obtain the user logged on to the networks username. I have setup basic auth but when I visit the site it asks me for my username and password before I can get in. Integrated Windows Auth is turned off. When I turn it on and try to login it says login failed. I know that ASP can have a script added to the page to turn pass through auth but I need one for PHP. I am using $HTTP_SERVER_VARS["LOGON_USER"] to get the username and it works when I login. I just need to get rid of the login box. Thanks for your help in advance. Shaun Garriock *** The contents of this message are confidential and are intended for the addressee only. The views expressed in this message do not necessarily represent those of Robert Gordon's College. Electronic mail transmission is not guaranteed to be secure, therefore, Robert Gordon's College does not accept liability for the contents of this transmission. This message does not form a legal binding contract. *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: character ' in switch
try: case "what's new": "Martin Hudec" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello all, > > I would like to know how can I put ' character to case in switch... > > Situation: > > from flash i am getting url: index.php?action=what's new > > i need to pass this thing to switch like: > > switch ($action) { >case about: >code >break; > >case what's new: <-- i want this... >code >break; > >default: >break; > } > > but PHP can't use 'i am thinking about making urlencode() to put > that character to %XX value > > any advices? > > > -- > Best regards, > Martin mailto:[EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Problem on OpenDir()
I don't do much file-stuff with php & windows, but i think the path nees to use // not \\? "Jack" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear all I was trying to check if a directory exist in a specific folder, but i got this error message as below : Warning: OpenDir: Invalid argument (errno 22) in C:\InetPub\wwwroot\Nedcor Internal Live\Reports\Bills Reports\page.php on line 21 here is the code : http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: isapi mod on iis
The Internet Guest user needs to have permissions to the foler the script's are located. This should remove the auth request. "Chris Edwards" <[EMAIL PROTECTED]> wrote in message 04f901c28ffa$a75867e0$4300a8c0@development">news:04f901c28ffa$a75867e0$4300a8c0@development... > is anyone running the isapi mod on iis? why does it ask for authenitcation > when I run a script? > > -- > Chris Edwards > Web Application Developer > Outer Banks Internet, Inc. > 252-441-6698 > [EMAIL PROTECTED] > http://www.OuterBanksInternet.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: ACT Based Contact Management System
mibbie give us a url to look at ACT? Or atleast a quick out-line of what it does? "Craig" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know of any sites that offer a web based contact management > system that works in a similar way to ACT? > > I want to implement such a system that connects to a mysql database > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: connecting to a remote host through mysql.exe
mysql -u username -pPASSWORD -h www.domain.com "Mr. Bungl3" <[EMAIL PROTECTED]> wrote in message news:20021114111727.44334.qmail@;pb1.pair.com... > Hi... > How can i connect to a remote host database through mysql.exe? > Thank you > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: writing pdf files to physical files...
yes it does... /me answered myself again ;) "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message news:20021025145239.65314.qmail@;pb1.pair.com... > I presently generate pdf files as required... > > I use FPDF for writing PDF... > > I require to save these to file... is it a simple case of: > > where the script: generate_stats_view_table_pdf.php generates the PDF... > > $fcontents= file > ('http://www.domain.com/autoreport/generate_stats_view_table_pdf.php'); > while (list ($line_num, $line) = each ($fcontents)) { > $display .= $line; > } > > $fp=fopen("/usr/local/psa/home/vhosts/domain.com/httpdocs/admin/hourly/stats > _detailed.pdf","w"); > fputs($fp,$display); > fclose($fp); > ?> > > TIA... > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] writing pdf files to physical files...
I presently generate pdf files as required... I use FPDF for writing PDF... I require to save these to file... is it a simple case of: where the script: generate_stats_view_table_pdf.php generates the PDF... http://www.domain.com/autoreport/generate_stats_view_table_pdf.php'); while (list ($line_num, $line) = each ($fcontents)) { $display .= $line; } $fp=fopen("/usr/local/psa/home/vhosts/domain.com/httpdocs/admin/hourly/stats _detailed.pdf","w"); fputs($fp,$display); fclose($fp); ?> TIA... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] windows specific: printer_ functions...
I have a specific problem ;) I have been asked if it is possible to write a 'simple' application that will print onto Bank Cheques - they will be supplied on a continuous roll aparently, so it'll be one cheque followed by another etc perferated inbetween... So my question is has anyone ever tried this or similar? or even if you have'nt has anyone got any pointers to start me off? Alternativley is there any software already out there? I have been looking but can only find things like Sage, which ha all the stock controll etc etc which is not required, the application will simple be to take a series name's & ammount's and print the cheques... Thanks in advance... Brian M McGarvie ([EMAIL PROTECTED][EMAIL PROTECTED]) IT/Web Apps Specialist www.anypurposeloans.co.uk -- www.mcgarvie.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Script optimisation
depending on the requirements of your script, it is quicker to use as required, this is because php essentially ignores all the html tags untill a is found for which php does it's stuff... if you use PHP has to go thru the contents of "..." and repace any variables it finds... however if you are echo'ing without variables always use '...' and not "..." as the single quotes state that it's just text and so it does'nt need to parse this just output it. You can do 'some text'.$aVariable.' more text'; which will be quicker that "some text $aVariable more text"; to process... As I said at the start, it very much depends on what is required for a particular script... Also, it is better to choose a style and stick to it! And only break your own style when the need calls for it. HTH, Brian M McGarvie ([EMAIL PROTECTED][EMAIL PROTECTED]) IT/Web Apps Specialist www.anypurposeloans.co.uk -- www.mcgarvie.net "Tony Crockford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I'm sure this is an RTFM, but I'm not sure where I should be looking. > > is it quicker for PHP to execute in blocks of html or to > echo all of the html and only have one > > I'm using a PHP script to write a lot of html files to hard disk and the > script execution time is climbing beyond the maximum set in PHP.ini > (I've changed the setting, but...) > > I'm looking to shave milliseconds of each execution, any ideas, pointers > or tutorials you could point me to. > > Thanks > > > Tony > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Execute...
it's messy but works... I would never do it this way... I suggest a javascript calculator approach... "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > dunno if it's work, but, if you find out the client's OS, then you will know > the path to calc.exe as it resideds in the windows dir of most windoze > installs... > > so find OS, then u know path, then jist do a ... > > launch windows calculator > > "Bsantos Php" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi people: > > > > Can anyone tell me if I can execute windows calculator trought a PHP > script > > on a web page to allow customers to check final prices?! > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Execute...
dunno if it's work, but, if you find out the client's OS, then you will know the path to calc.exe as it resideds in the windows dir of most windoze installs... so find OS, then u know path, then jist do a ... launch windows calculator "Bsantos Php" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi people: > > Can anyone tell me if I can execute windows calculator trought a PHP script > on a web page to allow customers to check final prices?! > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MORE Problems with PHP as CGI and Flash !!!!!!!!!!
Yes... get him to download the latest plug-in, IE 5.0 to IE 5.5 even are weired with dynamic content even it it's a form built up from php... Neway... I suggest that he should upgrade the flash plug-in and/or IE. "Rebekah Garner" <[EMAIL PROTECTED]> wrote in message 002901c26a54$513462e0$0300a8c0@vader">news:002901c26a54$513462e0$0300a8c0@vader... Here is the URL to a project that is far as I am concerned was finished. http://www.overbrookfarm.myiglou.com It is a Flash site that uses PHP for dynamically updating text in some text fields. If I can direct you to the Stallions menu---pick a horse. A page should load that has a picture of a horse on the left hand side and a green box on the right. The box on the right is dynamic text field. There should already be text inside of it. I see it. My 4 other PCs see it. About 5 people on this list can see it. A dozen of my friends can see it. The guy at tech support for where this is being hosted can see it. My client can't see it on his PC running IE5, but can see it on his Mac. His girlfriend can't see it, but one of his friends can. We had a fully working version up on a host that ran the PHP from Apache and everyone can see it. The site (and scripts) are now on a server that runs the PHP as CGI. It boggles the mind. Has anyone EVER heard of such a thing?? Are there security settings on the browser that won't let a CGI script execute, even from Flash?? Already made him clear his cache. Any ideas? Rebekah Garner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php on apache on win2k
on www.php.net you need to download the zip file for php, this will include the missing files... "Vic" <[EMAIL PROTECTED]> wrote in message 01c265e6$c3a2b920$a3a96518@jumpy">news:01c265e6$c3a2b920$a3a96518@jumpy... > I used to have php 4.2.3 on iis on 200 and xp and it worked fine, but I > decided o now go with apache for open source's sake and the sake of my > sanity. > > Well right now my sanity is in question, php tells me that I have to > manually config the apache conf file - no prob here done this many > times; but it tells me to add theis line here: > > LoadModule php4_module c:/php/sapi/php4apache.dll > > Now I don't see php4apache.dll anywhere in sight. > > What I do see is: php4ts.dll; and I wonder if the documentation is > outdated. - (or if I am a complete fool) > > Either way I get this error when running the apache test: > > Cannot load blah blah module blah blah LoadModule php4_module > c:/php/sapi/php4apache.dll > > Not only that, but I see no "sapi" anywhere in c:/php/ > > Ok, cool, now what? Any help? > > - Victor - www.argilent.com > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002 > > > __ > Post your ad for free now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] File Access...
How could you redirect somone from directly accessing a file... Meaning... if an engine spiders www.domain.com/some.php How could you make some.php redirect to index.php However... the site is framed, and the menu uses content.php to display the selected content. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] News Feeds....
Hi I'd like to get some news from any reputable news site, bbc.co.uk... yahoo.co.uk etc etc UK news would be best, if not then some hints to how to go about it would be much appreciated! TIA... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Mail()....
It's a text-based newsletter... I have a solution i think... so it'll look the same... just need to verify that it *should* be the same... inserting the contents in html, but within a ? 2'nd, using the following headers, sends it as an attachment it seems... $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; TIA.. "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a way to set the font on a plaintext email? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail()....
Is there a way to set the font on a plaintext email? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Loading Extension...
OK Help I always seem to have trouble installing extensions... what am I doing wrong? (trying to get PDFLib working). I copied the DLL to c:\php\extensions\php_pdf.dll However when I try to run a simple example I get: Fatal error: Call to undefined function: pdf_new() in C:\Inetpub\wwweloanshop\dev\test\hello.php on line 4 Anyone... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Date Stuff...
ta guys... works fine :) had a brain-freeze :) "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Given a date how would you work out number of months elapsed between > DateInPast and DateNow? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Date Stuff...
Given a date how would you work out number of months elapsed between DateInPast and DateNow? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: DOMXML...
the line that gives the error... Warning: failed to load external entity "employees.xml" in C:\Inetpub\wwweloanshop\test\xml.php on line 36 What employees? is... $doc = xmldocfile("employees.xml") or die("What employees?"); "Lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hmm! > > 1)Can you show the code @ line 36 if possible > 2)try to escape the "\" (replace every \ with \\) > > > "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have a problem with DOMXML... > > > > I installed it and it is showing up in a phpinfo() script... > > > > However when I try a simple example it gives me an error such as: > > > > Warning: failed to load external entity "employees.xml" in > > C:\Inetpub\wwweloanshop\test\xml.php on line 36 > > > > Any hints? > > > > [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com - > > www.anypurposeloans.com ] > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Question on File Move / Delete and Create Directory
http://www.php.net/manual/en/function.mkdir.php and the other 'filesystem' commands all work in windows... "Jack" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all > I had setup a web server in windows NT 4.0 (IIS Server), there is some > question i want to ask bask on the file management! > > 1. Is there any function in php that can create a folder/Directory in a > specific path? > > 2. Is there any function in php that can move particular files to other > location? > > > -- > Thx a lot! > Jack > [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Bea Weblogic Webserver
I'd suggest pursuing their customer support... It's not a very widely used websrever. It's also primarily a webserver optimized for serving JSP-based content/services - if I remember correctly... "Mindhunter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Is it possible to configure PHP for a BEA Weblogic Webserver? If so anyone > who did it? and how? > > Tx > MH > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] DOMXML...
I have a problem with DOMXML... I installed it and it is showing up in a phpinfo() script... However when I try a simple example it gives me an error such as: Warning: failed to load external entity "employees.xml" in C:\Inetpub\wwweloanshop\test\xml.php on line 36 Any hints? [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com - www.anypurposeloans.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] web services and PHP
A'la ASP WebServices perhaps? "Bob Lockie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >I'd like to know if it's possible to use PHP to develop and implement > >Web Services. If so, please point me to sites, articles, or tutorials > >that discuss this topic in more detail. Thanks. > > How do you define web services? > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php redirect
if( ___ ) { header("Location: http://www.domain.com/itworked.php";); } else { header("Location: http://www.domain.com/error.php";); } "Tyler Durdin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > > I have a redirect i would like to do using php. It will go something like > this > if (mysql_db_query ($dbname, $query, $link)) { > {redirect would go here} > } else { > {a different location on this redirect here} > > How can i accomplish this? i just do not know php well enough to code the > redirect. Please help. Thanks in advance and for all of the past help. > > _ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Getting the URL that triggered a 404.
you can get the webserver to redirect to a custom errorhandler that could be a php script to do whatever you want. > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 4:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Getting the URL that triggered a 404. > > > > When the 404 is caught and a PHP script is executed there doesn't > appear to be any information in the environment variables indicating > what URL triggered the 404. Could someone tell me how to obtain that > information? > > Cheers, > Rob. > -- > .-. > | Robert Cummings | > :-`. > | Webdeployer - Chief PHP and Java Programmer | > :--: > | Mail : mailto:[EMAIL PROTECTED] | > | Phone : (613) 731-4046 x.109 | > :--: > | Website : http://www.webmotion.com | > | Fax : (613) 260-9545 | > `--' > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to know if we're using http or https
yip on the browser a small padlock should appear > -Original Message- > From: LeTortorec, Jean-Louis [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 4:33 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How to know if we're using http or https > > > Hello all! > > Is there a flag that would tell me if the page requested is > using SSL, by > https, or regular http? > > I'm not sure I could get that from PHP, or from Apache/PHP. > > Thanks for your help. > > > Jean-Louis > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Development Tools
HTML-Kit does it for me... great customisability... > -Original Message- > From: Bret L Conard [mailto:[EMAIL PROTECTED]] > Sent: 10 July 2002 5:25 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Development Tools > > > snip/ > but often find myself using an editor on the code > created by these. > So to answer the question above ... nothing beats a good editor. > Jay > /snip > > Hence the happy medium of Homesite. acts as a basic text > editor but > allows some support for coding when needed/wanted. IMHP > > > Bret > - Original Message - > From: "Jay Blanchard" <[EMAIL PROTECTED]> > To: "'Uwe Birkenhain'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Wednesday, July 10, 2002 12:21 PM > Subject: RE: [PHP] Development Tools > > > > [snip] > > What makes development tools better than a good editor? > (serious question) > > [/snip] > > > > Over the course of time (I have been writing code for 25 years, many > > languages, some compiled, some not) I have found that the > most useful tool > > in the arsenal is a good editor with no more features than > line numbering. > > When I find myself in times of code trouble (props to John > Lennon) I will > > almost always turn to an editor first. I have used many, > and for my money > > where web application development is concerned, Programmers > File Editor > (no > > longer supported) http://www.lancs.ac.uk/people/cpaap/pfe/ > for Windows, > and > > vi or pico on *nix are the editors of choice. I do use > PHPedit from time > to > > time because, while it is buggy, it does do syntax highlighting and > matches > > brackets and other curly thingies well, which is especially > helpful when > > viewing large scripts with lots of code. > > > > I have and continue to use some IDE's for certain projects > (Visual C++, > > UltraDev for ASP code) but often find myself using an > editor on the code > > created by these. > > > > So to answer the question above ... nothing beats a good editor. > > > > Jay > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IIS Bugs???
OK This is a followon from my Browser thread... on [EMAIL PROTECTED]; [EMAIL PROTECTED] I have switched the application to run from Apache, and the Browsers that were having trouble now seem (I think - will be doing more testing later) to have dissapeared. So, is there a problem with IIS or PHP or IIS with PHP? [ http://www.the-local-guide.com :: http://www.mcgarvie.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Took the job into my own hands
been trying it for a cuple days now > -Original Message- > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > Sent: 09 July 2002 9:24 PM > To: Liam Gibbs > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Took the job into my own hands > > > On Tue, 9 Jul 2002, Liam Gibbs wrote: > > Mr. Hegreberg will be getting an unsubscription notice > > shortly, telling him how to complete his request. > > I tried that about half an hour ago; I don't think he's smart > enough to > follow the instructions. > > miguel > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] (OT) Our Spam Friend
we should make a script that constantly emails him single characters and all of us run it in a back ground process ;) > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED]] > Sent: 10 July 2002 12:03 AM > To: PHP > Subject: [PHP] (OT) Our Spam Friend > > > I just thought this was worth sharing. :-) > > - The following addresses had permanent fatal errors - > <[EMAIL PROTECTED]> > > - Transcript of session follows - > RECIPIENTS MAILBOX IS FULL > 554 <[EMAIL PROTECTED]>... Service unavailable > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Postal / Zip Code Proximity Search
http://www.totalscripts.com/pages/Perl_Scripts/Calculator/ GeoZip... only for US postcodes tho.. but is ur US fine ;) > -Original Message- > From: Brandon Pearcy [mailto:[EMAIL PROTECTED]] > Sent: 04 July 2002 4:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Postal / Zip Code Proximity Search > > > Hello, >I have a couple of questions with respect to creating a postal / > zip code proximity search that is remotely accurate. The system I am > using now is OK for small distances, but is terrible at calculating > large distances. > >What I have is a database of establishments and their > corresponding > latitudes and longitudes, and I need to have users enter their own > postal / zip code, and have the system calculate which establishments > fall into a set range ($range) from their location. Not only does it > need to find the establishments, it needs to calculate the distances > (straight line, of course). > >Now, I have dug through the PHP archives, but there is no single > clear explanation of how to do this, from beginning to end. I will > start by putting down what I need, and then maybe other people can > contribute to this and in the end we will have the solution, nice and > tidy, in one place. > > *** NOTE: I know doing this in PHP will be SLOW, but I do not want to > write a MySQL user-defined function and recompile it and blah, blah, > blah... (unless someone wants to cover that aspect!!! :D) > >Step 1: Take the postal / zip code that the user entered, and > search the national postal / zip code database (which I already have) > and return its corresponding latitude and longitude ($userLat and > $userLong). > >Step 2: ??? > >Step 3: Return the establishments information to the user, > complete > with the distances to them, ordered by smallest distance to largest. > > > > If you can't help me out, maybe you can direct me to some online > tutorials on this topic! > > Thanks in Advance! > -- > -- > Brandon Pearcy >Internet Technician > > Bowes Online > -- > phone: 1-780-532-1110 ext. 265 > fax: 1-780-532-2120 > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Dual Server...
I will probably do this the other way round as we have a few sites... so if i have a single file with a frame and point contents of frame to apache this should work? > -Original Message- > From: Collins, Robert [mailto:[EMAIL PROTECTED]] > Sent: 09 July 2002 4:41 PM > To: Brian McGarvie; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: RE: [PHP] Dual Server... > > > I have Apache and IIS coexisting on my intranet server and > the way I set > them up was to put each on a different port. (Apache serves > http://intranet > and IIS serves http://intranet:8080) this appears to work > fine. Hope this > helps > > Robert W. Collins II > Webmaster > New Orleans Regional Transit Authority > Phone : (504) 248-3826 > Fax: (504) 248-3866 > Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > > -Original Message- > From: Brian McGarvie [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 09, 2002 10:39 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] Dual Server... > > > OK following from my thread 'Browser Issues' I have found > that when serving > the site from apache, that the aforementioned errors go > away... mostly... > > OK so... What is the best way to setup so that IIS/Apache co-exist... > > I'd like to keep the 'entry' to the site on IIS as we have other sites > too... and use apache to serve the content of it. > > Any help mucho appreciated... also working to a deadline! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dual Server...
OK following from my thread 'Browser Issues' I have found that when serving the site from apache, that the aforementioned errors go away... mostly... OK so... What is the best way to setup so that IIS/Apache co-exist... I'd like to keep the 'entry' to the site on IIS as we have other sites too... and use apache to serve the content of it. Any help mucho appreciated... also working to a deadline! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] I am out of pleases now get me off this fun list!
just keep a note of his mail for when he final reads simple instructions and periodically forward him any interesting posts ;) > -Original Message- > From: Bret L Conard [mailto:[EMAIL PROTECTED]] > Sent: 09 July 2002 2:58 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] I am out of pleases now get me off this fun list! > > > >I hope everyone is sending him one of those, too, to clutter up > > his email even more. > > > Well absolutely... > would not want to be rude and ignore the request > ;) > > - Original Message - > From: "1LT John W. Holmes" <[EMAIL PROTECTED]> > To: "Zac Hillier" <[EMAIL PROTECTED]>; "Erik Hegreberg" > <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Tuesday, July 09, 2002 9:55 AM > Subject: Re: [PHP] I am out of pleases now get me off this fun list! > > > > 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]>; > <[EMAIL PROTECTED]> > > Sent: Tuesday, July 09, 2002 9:16 AM > > Subject: Re: [PHP] I am out of pleases now get me off this fuckin > > > list!! > !! > > > !! > !! > > !!! > > > > > > > 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: > > ><[EMAIL PROTECTED]> > > > > > > or for the digest to: > > ><[EMAIL PROTECTED]> > > > > > > For addition or removal of addresses, I'll send a confirmation > > > message to that address. When you receive it, simply reply to it > > > to complete the transaction. > > > > > > > > > > > > - Original Message - > > > From: "Erik Hegreberg" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, July 09, 2002 2:15 PM > > > Subject: [PHP] I am out of pleases now get me off this fuckin > > > > > > list!! > !! > > > > > > !! > !! > > > ! > > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Browser Troubles...
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 IE5.0 except a handfull... but I obviously cant let the client view it as I am unsure what browser they will use... > -Original Message- > From: René Moonen [mailto:[EMAIL PROTECTED]] > Sent: 09 July 2002 11:05 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Browser Troubles... > > > > > >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 output do you produce with your PHP script? Is it plain > HTML, does > it include Javascripts or some our scripts? Did you check the > HTML code > of the output? Does it contain invalid tags or missing end tags? > > > René > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Browser Troubles...
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 feedback. Has anyone came accross this kind of thing before? Thanks In Advance... [ http://www.the-local-guide.com :: http://www.mcgarvie.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Delete me from list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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: <[EMAIL PROTECTED]> To subscribe to the list, send a message to: <[EMAIL PROTECTED]> 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: <[EMAIL PROTECTED]> or for the digest to: <[EMAIL PROTECTED]> For addition or removal of addresses, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete the transaction. If you need to get in touch with the human owner of this list, please send a message to: <[EMAIL PROTECTED]> Please include a FORWARDED list message with ALL HEADERS intact to make it easier to help you. > -Original Message- > From: Erik Hegreberg [mailto:[EMAIL PROTECTED]] > Sent: 09 July 2002 10:28 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Delete me from > list!! > !! > !! > !! > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Grr SQL syntax error silghtly OT
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 = "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 learn from it? > > Thanks in advance > > > -- > JJ Harrison > [EMAIL PROTECTED] > www.tececo.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] don't want to receive but email please
> 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] is their a jobs mailing list?
Yes... I agree... I would like formyself and anyothers interested if this was to go-ahead... develop similar to but not as deep as and more importantly FREE version of elance or something like that... Can anyone from PHP let us (this thread) know if this is a viable prospect? > -Original Message- > From: Chris Hewitt [mailto:[EMAIL PROTECTED]] > Sent: 08 July 2002 10:42 AM > To: PHP General List > Subject: Re: [PHP] is their a jobs mailing list? > > > As not all work involving PHP need be on a customer's site > (the type of > work that agencies deal with), I'd like to suggest that the site is > flexible enough to offer PHP "work" in the broader sense, not just > on-site contract/employment. E.g. an end customer can post that they > need a particular piece of work done and ask for > tenders/interested people. > > Chris > > Brian McGarvie wrote: > > >Yeh sure... > > > >I have worked on a recruitment site for a UK agency. > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] is their a jobs mailing list?
Yeh sure... I have worked on a recruitment site for a UK agency. > -Original Message- > From: César Aracena [mailto:[EMAIL PROTECTED]] > Sent: 08 July 2002 9:47 AM > To: Brian McGarvie; 'PHP General List' > Subject: RE: [PHP] is their a jobs mailing list? > > > Well, I am interested as long as the Masters let put this *JOB* site > under www.php.net (would be more useful). If you or anybody else is > willing to do such a site, I would like very much to get involved for > learning and contribution reasons. > > C. > > > -Original Message- > > From: Brian McGarvie [mailto:[EMAIL PROTECTED]] > > Sent: Monday, July 08, 2002 5:37 AM > > To: PHP General List > > Subject: RE: [PHP] is their a jobs mailing list? > > > > I think a job's list would be good too so people can target > only those > who > > wish to undertake a contract/new position, and also for > people to post > > that they are available... that or have an 'independant' site or get > one > > of us to do a subsite on php .net :) > > > > > > I'll do it if it's something that'd be of interest to people... > > > > > -Original Message- > > > From: César Aracena [mailto:[EMAIL PROTECTED]] > > > Sent: 08 July 2002 9:28 AM > > > To: PHP General List > > > Subject: RE: [PHP] is their a jobs mailing list? > > > > > > > > > > -Original Message- > > > > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > > > > Sent: Monday, July 08, 2002 2:31 AM > > > > To: Peter J. Schoenster > > > > Cc: [EMAIL PROTECTED] > > > > Subject: Re: [PHP] is their a jobs mailing list? > > > > > > > > Job postings are fine on this list. Some people will invariably > > > gripe, > > > > but overall people like to see that there are jobs out > > > there involving > > > > PHP. And it they don't, well tough. None of the people > > > who help run > > > this > > > > list, including myself have any problems with them. > > > > > > > > -Rasmus > > > > > > [César L. Aracena] Just as a shot in the dark... is it > possible for > > > www.php.net being the sure stop for PHP developers to > make available > a > > > new list called job-posting or something like that? > > > > > > Just a though I had... somehow organized by countries/states? Or > maybe > > > make available a list (i.e. the Announcements list) to offers from > PHP > > > developers? > > > > > > I mean, instead of seeing many people *HUNTING* for > developers, make > > > them go there and search for the place (i.e. HOUSTON, TX). > > > > > > > > > > On Sun, 7 Jul 2002, Peter J. Schoenster wrote: > > > > > > > > > Hi, > > > > > > > > > > I was here first: > > > > > > > > > > > > > > > > > http://www.php.net/manual/en/faq.mailinglist.php#faq.mailingli > > st.guideli > > ne > > > > > > > > > Before you post to the list please have a look in this FAQ > > > > > > > > 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. > > > > > > > > A person from Houston, TX asked me if I knew of any PHP > people in > > > Houston. > > > > I advertise on Google and Overture as a developer for hire. > > > > > > > > I don't sugget he post to this list as I'm not sure of the > etiquette > > and > > > I've never > > > > seen jobs posted to this list; I know they are accepted heartily > on > > the > > > > mod_perl list. > > > > > > > > Anything simple but effective like this site for PHP? > > > > > > > > http://jobs.perl.org/ > > > > > > > > Peter > > > > > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] is their a jobs mailing list?
I think a job's list would be good too so people can target only those who wish to undertake a contract/new position, and also for people to post that they are available... that or have an 'independant' site or get one of us to do a subsite on php .net :) I'll do it if it's something that'd be of interest to people... > -Original Message- > From: César Aracena [mailto:[EMAIL PROTECTED]] > Sent: 08 July 2002 9:28 AM > To: PHP General List > Subject: RE: [PHP] is their a jobs mailing list? > > > > -Original Message- > > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > > Sent: Monday, July 08, 2002 2:31 AM > > To: Peter J. Schoenster > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] is their a jobs mailing list? > > > > Job postings are fine on this list. Some people will invariably > gripe, > > but overall people like to see that there are jobs out > there involving > > PHP. And it they don't, well tough. None of the people > who help run > this > > list, including myself have any problems with them. > > > > -Rasmus > > [César L. Aracena] Just as a shot in the dark... is it possible for > www.php.net being the sure stop for PHP developers to make available a > new list called job-posting or something like that? > > Just a though I had... somehow organized by countries/states? Or maybe > make available a list (i.e. the Announcements list) to offers from PHP > developers? > > I mean, instead of seeing many people *HUNTING* for developers, make > them go there and search for the place (i.e. HOUSTON, TX). > > > > On Sun, 7 Jul 2002, Peter J. Schoenster wrote: > > > > > Hi, > > > > > > I was here first: > > > > > > > > > http://www.php.net/manual/en/faq.mailinglist.php#faq.mailingli st.guideli ne > > > > > Before you post to the list please have a look in this FAQ > > > > 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. > > > > A person from Houston, TX asked me if I knew of any PHP people in > Houston. > > I advertise on Google and Overture as a developer for hire. > > > > I don't sugget he post to this list as I'm not sure of the etiquette and > I've never > > seen jobs posted to this list; I know they are accepted heartily on the > > mod_perl list. > > > > Anything simple but effective like this site for PHP? > > > > http://jobs.perl.org/ > > > > Peter > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and PDF
if you're creating the form using PHP's PDF functions all you'd need to to is generate the number and add it using whatever command to add a line of text to the PDF document... Don't ask me how.. not used it yet personally. Would like to see a decent example of PHP/PDF creation anyway... > -Original Message- > From: Gregory Hernandez [mailto:[EMAIL PROTECTED]] > Sent: 01 July 2002 4:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP and PDF > > > hello everyone-- > > i'd like to know if this can be solved with php. > > i'll be creating a pdf form that'll be downloaded, filled and turned > in. > the form must have a unique NUMBER printed on it each time it is > downloaded. > > i'd like to use php to update this NUMBER (ie. counter + 1) each time > the form is > accessed, and automatically print this NUMBER on the form that sits on > the server. > > is this possible? > > thanks in advance. > > > gregory > [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Keeping "Secrets" in PHP Files
This is a problem that affects many webhosts... the issue is more of trusting other users who have shell access to the server in question... I have been trying to help a hosting company address this issue, but short of dissallowing shell/ssh access their is no way to stop another user logging into the shell and browser other peoples files... If I am wrong then I would like to be enlightened! Which is is hy the company above only give out ssh accounts to users with valid reasons for needing ssh access. > -Original Message- > From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]] > Sent: 28 June 2002 2:52 PM > To: Erik Price > Cc: php-list > Subject: RE: [PHP] Keeping "Secrets" in PHP Files > > > Thanks for the reply. But changing the ground read permission of > the PHP files wouldn't help, either, would it? Because the other > users who have web sites can just create a PHP file that reads my > PHP files from one of their pages (which would be running in > group "websecret"). > > Seems like this just opens up the same hole. Yes? > > > -Original Message- > > From: Erik Price [mailto:[EMAIL PROTECTED]] > > Sent: Friday, June 28, 2002 9:43 AM > > To: Jonathan Rosenberg > > Cc: php-list > > Subject: Re: [PHP] Keeping "Secrets" in PHP Files > > > > > > > > On Friday, June 28, 2002, at 09:30 AM, Jonathan > > Rosenberg wrote: > > > > > Let's say I am in a shared server environment & the > > provider does > > > NOT have safe_mode turned on. In that case, it > > seems to me that > > > it is "insecure" to keep "secrets" (e.g., DB > > passwords) in a PHP > > > file that is executed by the server. > > > > > > I say this because any other users of that shared > > host can read > > > the PHP file & obtain the secret. There does not > > seem to be any > > > way around this (once again, I am assuming safe_mode is NOT > > > turned on). > > > > Think about it in terms of the permissions on the > > file. The people who > > can read this file are explicitly defined in your permissions. > > > > The catch-22 is that the web server is usually not run > > as root, so it > > doens't automatically get to see your files -- you > > need to give it > > permission to read them just as you would any other > > user. In a shared > > system, if you give "others" permission to read the > > file, the web server > > user can now read the file, but so can everyone else. > > > > However, if there were some way for you to change the > > group association > > of the file to, say, the "websecret" group, and then > > you could close off > > the read permissons of "others" on that file. As long > > as the web server > > is a member of "websecret", and you grant read > > permissions to the group > > for that file, then the web server can read it. > > > > The trick is that in order to change the file's group > > association to > > "websecret", you probably need to be either root or a > > member of > > "websecret", unless the system admins have provided > > some kind of script > > that does this on your behalf. Which means that > > anyone else who has > > this ability can read the file too (since they are a member of > > "websecret"). > > > > It's tough. Shared hosting security is a difficult issue. > > > > > > > > > > Erik > > > > > > > > > > > > > > Erik Price > > Web Developer Temp > > Media Lab, H.H. Brown > > [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Web Printing
I did pass on a link to hime from the M$ website with some VB Script that 'appears' to do what is wantec.. whither it works or not is another matter :) > -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED]] > Sent: 28 June 2002 2:45 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Web Printing > > > [snip] > He said... > > Anyone ever worked with this function? I know its not PHP > > related but im > > sure someone came across the problem. > > Ya'll said > > and this relates to PHP how...? > > Don't tempt them, people _do_ come up with the most oblique > of reasons why > their question is related to php. > [/snip] > > Hmmm, let's see...sometimes we output HTML with PHP? Nah, > that couldn't be > it. :) At least he acknowledged it wasn't PHP related, he's > just looking for > some help. > > As far as the problem that he is encountering, no, it is not > controllable > through HTML, CSS, JavaScript, or any other scriptable method > (I have had > this same need in the past). Not unless you want to obtain > the IE dev kit > and make your own version of IE. Which would be a giant pain > it the a$$. > > HTH! Have a great Friday... > > Jay > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Web Printing
and this relates to PHP how...? > -Original Message- > From: Neal Dewing [mailto:[EMAIL PROTECTED]] > Sent: 28 June 2002 9:01 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Web Printing > > > Hi all, > > Just wondering if anyone came across this "problem" before: > > When I print a document directly from my browser, it comes > out with the > title on > the top right , page number of the top left, address on the > bottom left and > date on the bottom right, Page Headers and Footers > > Using IE I can set the page headers and footers under the > page setup option. > > Header: &w&bPage &p of &P > Footer: &u&b&d > > I need some way of disabling / changing this as my clients > print reports > that need a proper printout. I need to change it using css / > vbscript / > JavaScript ??? > > Anyone ever worked with this function? I know its not PHP > related but im > sure someone came across the problem. > > Thanks > Neal > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] securing an 'includes' dir
and using IIS use windows security > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: 28 June 2002 9:31 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] securing an 'includes' dir > > > On Friday 28 June 2002 16:25, Nick Wilson wrote: > > Hi all > > I'm setting up a site for a client and his host refuses to > create (or > > allow me to) a directory outside of the http root. > > > > How might I make an 'includes' dir inside the http root and > stop users > > being able to browse it? > > If using Apache, you would set a directive to deny all access to that > directory. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications > Development * > > /* > "How many people work here?" > "Oh, about half." > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] parse text
You could do it using the substring it you ALWAYS for each line want the characters at that exact location. $moo = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $partition = substr($moo, 9, 5); this would return 5 characters from position 9 in the string which would be: 0ABCD hope this helps... > -Original Message- > From: sonjaya [mailto:[EMAIL PROTECTED]] > Sent: 19 June 2002 8:31 AM > To: [EMAIL PROTECTED] > Subject: [PHP] parse text > > > i want read some tex like this > > here contens file text > > 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > > 1. i want read from first left until eight caracter (12345678 <-- > caracter i cant read ) > it can be use fread > 2. i want read 5 from nine (9) caracter from left ( 0ABCD <--the > caracter must i read ) > so anybody can help me > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] catch the client OS user logon from php script
does... $_SERVER["HTTP_UA_OS"] exist? I can't see that ne where and when I try to use it t's blank... Also... I was using that as an example to put him on the right track... afterall nuthing is learnt if your given it on a plate... if you want the exact OS, you need to extract it from $user_agent = $_SERVER["HTTP_USER_AGENT"]; Here is a snippet to do so. $user_os = ltrim(substr($user_agent, strrpos($user_agent, ";")+1, strrpos($user_agent, ")")-(strrpos($user_agent, ";")+1))); > -Original Message- > From: Clay Loveless [mailto:[EMAIL PROTECTED]] > Sent: 19 June 2002 10:13 AM > To: PHP-General > Subject: Re: [PHP] catch the client OS user logon from php script > > > Edy, > > If you're referring to the OS a visitor to your site is using > (not the OS > your PHP is running on, which you probably know), you'd want: > > $_SERVER["HTTP_UA_OS"] > > -Clay > > > > From: "Brian McGarvie" <[EMAIL PROTECTED]> > > Date: Wed, 19 Jun 2002 09:54:39 +0100 > > To: èdy kurniawan <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> > > Subject: RE: [PHP] catch the client OS user logon from php script > > > > $_ENV["OS"] > > > > (see MANUAL for more that you can capture!) > > > >> -Original Message- > >> From: èdy kurniawan [mailto:[EMAIL PROTECTED]] > >> Sent: 19 June 2002 9:44 AM > >> To: [EMAIL PROTECTED] > >> Subject: [PHP] catch the client OS user logon from php script > >> > >> > >> Dear PHP-ers, > >> > >> How can I capture my client OS user logon via PHP script ? > >> > >> TIA, > >> edyk > >> > >> > >> -- > >> PHP General Mailing List (http://www.php.net/) > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] catch the client OS user logon from php script
$_ENV["OS"] (see MANUAL for more that you can capture!) > -Original Message- > From: èdy kurniawan [mailto:[EMAIL PROTECTED]] > Sent: 19 June 2002 9:44 AM > To: [EMAIL PROTECTED] > Subject: [PHP] catch the client OS user logon from php script > > > Dear PHP-ers, > > How can I capture my client OS user logon via PHP script ? > > TIA, > edyk > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do I hide download link ...
if you want to hide it fromthe browser you cound do: click here or you could over write the status text: click here or a combination... Also note... this has/had nowt to do with _PHP_ :) > -Original Message- > From: Nathan Taylor [mailto:[EMAIL PROTECTED]] > Sent: 18 June 2002 11:33 AM > To: Bret L Conard; [EMAIL PROTECTED] > Subject: Re: [PHP] How do I hide download link ... > > > > if (!session_is_registered("SESSION")){ > > print ("You must Log-In to access this page\n"); > > print (""); > > print ("Click here to Log In"); > > } > > print (""); > > should be: > > print("Sign-in"); // or something > like that > > > But anyways, I don't think that's quite what he wanted. I > think the idea is > to protect the link to a file so only special users can see > it. Sure this > code with protect the page from being viewed, but, > download.php or whatever, > if it is protected it still points to a physical file. If a > user for some > reason desires to leak the actual link then there could be a > problem. This > is why he probably should change the physical file data. > > - Original Message - > From: "Bret L Conard" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 18, 2002 6:22 AM > Subject: Re: [PHP] How do I hide download link ... > > > > Start a session on the sign in page, and check for the > session before > > displaying the page with the link. The it does not matter > if the link page > > URL is distributed. In my situation; > > 1. Sign in page goes to a validation script. > > 2. Check for form fields. (1st of Nested loops) > > if (isset($formField)){//check for form. > > 3. If form, validate user and start session > > $result = mysql_query("SELECT * FROM ok_users WHERE > password = > > $password AND user_ID = $user_ID"); > > if (mysql_num_rows($result) < 1){// No user so exit > > if (mysql_num_rows($result) > 1){// Too many users > (bad data) so > > exit > > else{ //valid user > > session_start(); > >// register the variables you need or want > > session_register("SESSION");. > > 4. redirect to page with download > >header ("Location: download.php"); > > must be in the session start snippet or get too many > headers errors > > / > > }//end start session code > > }//end check for multiple match > > }//end check for form (and other actions) > > else{//if no form. > > print ("You must login to access this page"); > > } > > 5. On download page check for session. > > > session_start(); > > // *** session check*/ > > if (!session_is_registered("SESSION")){ > > print ("You must Log-In to access this page\n"); > > print (""); > > print ("Click here to Log In"); > > } > > else{ > > body of page > > } > > > > Now if you access the download page directly, you only get > a link to sign > > in... > > > > Does this help? > > Bret > > > > > > - Original Message - > > From: "Fargo Lee" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, June 12, 2002 4:14 PM > > Subject: [PHP] How do I hide download link ... > > > > > > > Hi, my customers go through a password authentication to > access a link > on > > my > > > site to download a file. I want to prevent the distribution of the > > location > > > of this file on my server by making it hidden. Is there any php > > function(s) > > > that could assist in doing this? > > > > > > All I can think of so far is storing the original file in > a hard to > guess > > > directory, when a authenticated customer goes to download > it, send them > to > > a > > > script that copys the original file to a temp directory, > they download > the > > > file in the temp directory and then run a cron every so > many minutes to > > > clear out the files in the temp directory. > > > > > > If anyone has any ideas, examples or a way to improve on > what I came up > > with > > > please respond. Thanks! > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] sessions and temporary tables
unless you open a persistent connection, connections are closed automatically at the end of execution of a script. > -Original Message- > From: W. Enserink [mailto:[EMAIL PROTECTED]] > Sent: 18 June 2002 10:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] sessions and temporary tables > > > ok, that's clear, thx. > but still, I'm not closing any connection AFAIK. > at least not explicitly. are there then other ways which > cause the closing > of this connection? > > thx Wilbert > > > > > - Original Message - > From: "Jason Wong" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 18, 2002 11:31 AM > Subject: Re: [PHP] sessions and temporary tables > > > > On Tuesday 18 June 2002 17:21, Wilbert Enserink wrote: > > > > > i have this problem: > > > > > My Q: howcome mySQL is not able to find this temporary table > anymore > > > It seems to have destroyed this table when leaving the > search.php page, > but > > > that's a rather odd idea, cause I thought it maintained while the > session > > > was still active... > > > > Well sessions have nothing to do with MySQL tables (temporary or > otherwise). > > The reason why your table doesn't exist anymore is probably > because temp > > tables are only there for the duration of a particular > mysql connection. > Once > > the connection is closed the table is automatically purged. > > > > -- > > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > > Open Source Software Systems Integrators > > * Web Design & Hosting * Internet & Intranet Applications > Development * > > > > /* > > If you refuse to accept anything but the best you very often get it. > > */ > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > - > Pas de Deux > Van Mierisstraat 25 > 2526 NM Den Haag > tel 070 4450855 > fax 070 4450852 > http://www.pdd.nl > [EMAIL PROTECTED] > - > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LDAP...
I'm just experimenting with LDAP... [ Windows 2000 Server/IIS/php 4.2.1] I've uncommented the php_ldap.dll in my .ini... when I execute the following simple piece of code it gives me: Fatal error: Call to undefined function: ldap_connect() in E:\wwwshell\test\index.php on line 5 What have I not done? [ http://www.the-local-guide.com :: http://www.mcgarvie.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Editor
I have been using this for a couple of years and personally consider it the best all-round editor next to UltraEdit for codeing not just web-pages but other languages... It's extremely flexible plug-in modules are easy to develop if you need it to do something, and also has quite a few decent ones that people are contributing. I've been trying to develop a HTML-KIT plug-in that will allow me to execute a php script and list any errors/warnings, so that i can check it before uploadin/testing... Things like that make it e very nice editor... the latest Beta is especially nice... I am presently developing an Intranet for a multi-national and this is the editor I have used... even when they gave me a budget to aquire any software I needed. > -Original Message- > From: Adrian Greeman > [mailto:[EMAIL PROTECTED]] > Sent: 16 June 2002 10:38 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Editor > > > > > Sorry everyone - I clean forgot to add in aURL for the > editing programme I > recommended a couple of days ago. > > It was HTML_Kit and the appropriate web site is below. > > > I would be interested in comments anyway on what people think. > > http://www.chami.com/html-kit/ > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Content Management System in php
Indeed PHP-Nuke is not meant for Co-orporate sites... I have my own custom built 'bits' that I put together when doing site for a client. If you can't/don't have the luxury of being able to hire/contract a developer to develop a custom-designed solution for your needs then you are unfortinaltley limited to what the various CMS's out there can do. I've looked at most of them and none offer a solution that to me is 'perfect' each of them have bits that are greate, but it's the lack of the rest of the application that lets it down. As for php-nukes admin facility, it's possibly one of the worst I've pseronally seen, but again unless you are able to get something custom developed, you wont find/it'll be hard to find a single pre-built CMS that will do what you want. Going back to php-nuke, I'ts qyite limited in what you can do with it's layout from what i can remember - I may be wrong - looking at a version of it from last month. I also think for co-orporate sites, a CMS/CRM solution would be better, however this is an even bigger undertaking. Just my thoughts on CMS's ;) To me all/most CMS's out there are aimed at 'pet sites', like, personal sites, gamers sites and so on... > -Original Message- > From: Olav Bringedal [mailto:[EMAIL PROTECTED]] > Sent: 18 June 2002 9:33 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Content Management System in php > > > > I have been looking into some of the CMS' that the php > community provides. Now I wonder what the common > thoughts about these are. Are they fit for deployment > into professtional organisations or simply still on a > "idealistic-website" level? > > I made a trial installation of php-nuke and frankly > i'm very impressed on some matters, like its sceduled > posting and admin interface. However it lacs some > features in the ability to apply a own design, its > forum has something left to desire so on. It might > work for a site like /., but I doubt it would work > very well on a corporate nework. PostNuke might even > look a bit better and dynamic. Am I wrong about this? > Do anyone got any experiences with eZ publish? > > What interests me in a CMS, are subjects like: > > -Ability to use role/group-based access. > -Forum options (access/theading/moderation s.o.) > -Ability to easily make a design/theme that fits a > strict and "ready-set" design. > -Ability to incorporate existing > web-modules/pages/sites > > > > I would very much like to hear your thoughts of > this... > > Olav Bringedal > jaggu.org > > __ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PHP-WIN] SSL Support for PHP....
Basically then there is no real reason for Apache over IIS on win2k server? I am the admin of the Webservers, but the overall network manager would like to keep it MS-centric just because all the rest is. With our leased line we aqquired 16 ips, so in the IIS config I would just use that IP and keep it port 80? (I will read the manual, I will read the manual, I will read the manual!) SSL is a must for a few of the 'sites' that will be getting ran. As for ASP *shudder* I personally don't plan on using it, tho I might experiment with asp.net but thats a by-the-by. I'm kinda trying to verify that using IIS with PHP isapi module is as secure as Apache? Heres a strange one tho jist on the side: I installed Apache2/PHP on my own machine (used for writing code etc) and copied the application to an apache location, and ran it, but... there is supposedly files missing according to apache, all is as on the other machine - files/code wise. One last item I need some advise with... is IIS able to handle LOTS of sites accross multiple servers? as we have lots of clients so in the future will possibly need a machine to load-balance etc and seperate database serving machines - databases primarily MsSQL/Access/MySQL. Btw, thanks Stuart, thats kinda making me feel easier about keeping it IIS. > -Original Message- > From: Stuart Dallas [mailto:[EMAIL PROTECTED]] > Sent: 14 June 2002 10:52 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] SSL Support for PHP > > > On Friday, June 14, 2002, 9:13:59 AM, Brian McGarvie wrote: > > How does IIS fair against Apache with servring multiple > sites? each site will be like... http://customername.ourdomain.co.uk > > Both are capable of serving multiple sites without any issues > that I am aware > of. > > > Also - more an IIS/Apache Q, how do you configure the above > to work in both IIS and Apache? > > In IIS you set the host header for the site when you set the > IP for the site. > In Apache you use the NameVirtualHost directive. See the > MSIIS and Apache docs > for more detailed instructions. > > > We arenot using ASP - yet, but might do at a later date... > can IIS and Apache live together? if so how would you > confirue a site who's PHP is served with Apache and ASP with IIS. > > IIS and Apache can live together happily. You have to disable > connection > pooling for IIS (can't remember how - there is a > knowledge-base article on the > MS site that gives full details). > > Why would you want to have Apache serve PHP and IIS serve ASP > for the same > site? Why not just have IIS do both? > > > SSL Certificates... how do they work on Apache? IIS is a > simple Wizard, I've not had to set SSL up before. > > Dunno, never used SSL with Apache. Sorry. > > I hope that helps. > > -- > Stuart > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] SSL Support for PHP....
Also... IF Apache... what version? > -Original Message- > From: Brian McGarvie > Sent: 14 June 2002 9:14 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] SSL Support for PHP > > > Right... > > Back to the old bombshell of which webserver... > > I have'nt seen any reports which say what is better... > > Here is my issue: > > The webserver I am setting up will potentially host 4 or 5 sites... > > How does IIS fair against Apache with servring multiple > sites? each site will be like... http://customername.ourdomain.co.uk > > Also - more an IIS/Apache Q, how do you configure the above > to work in both IIS and Apache? > > We arenot using ASP - yet, but might do at a later date... > can IIS and Apache live together? if so how would you > confirue a site who's PHP is served with Apache and ASP with IIS. > > SSL Certificates... how do they work on Apache? IIS is a > simple Wizard, I've not had to set SSL up before. > > The hardware config is that machine has 2 nics, one to router > for outside world to access it, another so the server can > access the LAN as components of the web-application are VB > Apps running on client machines to the LAN manipulating the > database that is ultimatley used by PHP. > > It's Win2k Server, p3 1.7ghz 512mb ram, 120gb raid 5. > > The Application is not *launched* as yet, So I'l looking at > whither to use Apache/IIS. > > Thanks in advance > >Brian M McGarvie... > >[ http://www.the-local-guide.com :: http://www.mcgarvie.net ] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SSL Support for PHP....
Right... Back to the old bombshell of which webserver... I have'nt seen any reports which say what is better... Here is my issue: The webserver I am setting up will potentially host 4 or 5 sites... How does IIS fair against Apache with servring multiple sites? each site will be like... http://customername.ourdomain.co.uk Also - more an IIS/Apache Q, how do you configure the above to work in both IIS and Apache? We arenot using ASP - yet, but might do at a later date... can IIS and Apache live together? if so how would you confirue a site who's PHP is served with Apache and ASP with IIS. SSL Certificates... how do they work on Apache? IIS is a simple Wizard, I've not had to set SSL up before. The hardware config is that machine has 2 nics, one to router for outside world to access it, another so the server can access the LAN as components of the web-application are VB Apps running on client machines to the LAN manipulating the database that is ultimatley used by PHP. It's Win2k Server, p3 1.7ghz 512mb ram, 120gb raid 5. The Application is not *launched* as yet, So I'l looking at whither to use Apache/IIS. Thanks in advance Brian M McGarvie... [ http://www.the-local-guide.com :: http://www.mcgarvie.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP with No Web Server?
Would that work? Surley it'd not be a particularly efficiant webserver if written in PHP? Would be interesting to try.. I had a quick look for such code but could'nt see any... perhaps a PHP-GTK app could work I suppose... if you were that way inclined! :) > -Original Message- > From: Stuart Dallas [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 5:09 PM > To: Kevin Caporaso > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP with No Web Server? > > > On Thursday, June 13, 2002, 5:00:23 PM, you wrote: > > In other words.. Can PHP serve as the Web Server or is > another web server > > required to handle the socket connections, etc.? > > PHP can serve as a web server, but you would need to write > (find) the code to > do it - I'm sure there is plenty out there. However, to > answer the question I > think you were asking, PHP does not come with a ready-to-run > web server. > > -- > Stuart > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP with No Web Server?
PHP is an application that generates HTML code similar to Perl. Which is what is served to the Client(Browser). Therefore no, you need to use IIS/Apache/other webserver in order to use PHP... Unless you are using it as a scripting language for shell scripts... or using GTK to create graphical applications. > -Original Message- > From: Kevin Caporaso [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 5:00 PM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP with No Web Server? > > > > In other words.. Can PHP serve as the Web Server or is > another web server > required to handle the socket connections, etc.? > > Thanks for any response. > $Kevin > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PCRE Problem
$string = '[b]Test[/b]'; $bbcode_string = str_replace("<", "[", str_replace(">", "]", $string)); or look into regular expressions... > -Original Message- > From: Erick Lee [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 3:25 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PCRE Problem > > > > I want to change it to > $string = Test > How? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] next and previous buttons performing on a query
you need to keep track of the last record and number to display to work out the values for limit. > -Original Message- > From: Chris Hewitt [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 3:32 PM > To: Wilbert Enserink > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] next and previous buttons performing on a query > > > Wilbert, > > Use the LIMIT tag in your select statement. You can also choose which > matching record to start from. > > Another pure database question... > > HTH > Chris > > Wilbert Enserink wrote: > > >Hi all, > > > > > >I have this mySQL query giving me my result back. > > > >The info about the current db-record is showing. > >Now I want to display ' view next ' and ' view previous ' > buttons on my website. which takes you to the same page but > with the next record in the query result. > >Is there a clever way to do this? > > > >Any tips are welcome! > > > >Many regards > > > >Wilbert Enserink > > > >- > >Pas de Deux > >Van Mierisstraat 25 > >2526 NM Den Haag > >tel 070 4450855 > >fax 070 4450852 > >http://www.pdd.nl > >[EMAIL PROTECTED] > >- > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php-speed
the best answer to this is that it's down to persona preferance as well... some people might find it easier to read/write code that is in a more 'traditional' layout which is where using " or ' would help. I personally use a mixture of all 3 'methods' of using php. While in-line is fastest i sometimes find using lots of all over a pain. So I will drop in and out of methods according to how much php code/complexity of code vs ammount of HTML with/without generated content. > -Original Message- > From: Stuart Dallas [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 2:44 PM > To: Niklas Lampén > Cc: Php-General > Subject: Re: [PHP] php-speed > > > Thursday, June 13, 2002, 2:09:23 PM, you wrote: > > I don't think so. The difference is (IMHO + the article > linked below) if > > you use > > > ...Foo... (faster) > > or > > Foo..."; ?> (slower) > > Actually, Brian is right. PHP parses text contained within "s > whereas it > doesn't do so with text contained within 's. However, neither > will be quicker > than inline HTML since PHP completely ignores that as > previously mentioned. > > -- > Stuart > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php-speed
I believe it also depends on the quote types used... Place string/text/html code etc with in single quotes > ' < if the string contains no $var's to be parsed, and > " < if it does need to parse $var's. > -Original Message- > From: Niklas Lampén [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 1:25 PM > To: Php-General > Subject: RE: [PHP] php-speed > > > On which part was I wrong? > > Printing HTML via PHP is slower than inserting PHP into HTML. Maybe > we're just having communicational problems. :) > > English is not my native language, so I might have understood > it wrong, > but I understand embedding php opposite to echoing html. Am I > understood > now? ;) > > Btw. everyone else, check that link below too, if this issue > is in your > interest. > > > Niklas > > > -Original Message- > From: Pradeep Dsouza [mailto:[EMAIL PROTECTED]] > Sent: 13. kesäkuuta 2002 15:21 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php-speed > > > See this > And maybe you might change your impression > > http://www.phpbeginner.com/columns/jason/echo > > Pradeep > > www.naharonline.com > > > > > > - Original Message - > From: "Niklas Lampén" <[EMAIL PROTECTED]> > To: "Php-General" <[EMAIL PROTECTED]> > Sent: Thursday, June 13, 2002 5:38 PM > Subject: RE: [PHP] php-speed > > > Embedding PHP in HTML, since I think HTML is ignored by php, > just passed > thru. > > > Niklas > > > -Original Message- > From: Philipp Melab [mailto:[EMAIL PROTECTED]] > Sent: 13. kesäkuuta 2002 14:55 > To: [EMAIL PROTECTED] > Subject: [PHP] php-speed > > > I have a simple newbie question... > Whats better (faster?): > > - embedding PHP in HTML > - or printing HTML via PHP > ? > > yours Philipp > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ### > This message has been scanned by F-Secure Anti-Virus for > Internet Mail. > For more information, connect to http://www.F-Secure.com/ > > ### > This message has been scanned by F-Secure Anti-Virus for > Internet Mail. > For more information, connect to http://www.F-Secure.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > ### > This message has been scanned by F-Secure Anti-Virus for > Internet Mail. > For more information, connect to http://www.F-Secure.com/ > > ### > This message has been scanned by F-Secure Anti-Virus for > Internet Mail. > For more information, connect to http://www.F-Secure.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] POST/GET vars in apache
it;s todo with the ini file an option register_globals Off - you need to use the $HTTP_POST_VARS[var] method On - you dont Pro - more secure. Con - more to type! > -Original Message- > From: Webmaster do Aborla.net [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 11:32 AM > To: [EMAIL PROTECTED] > Subject: [PHP] POST/GET vars in apache > > > Hello everybody, > > I used to use IIS and now I moved to apache. I use PHP, too. > But now, in > order to get a POST/GET var I need to use > $HTTP_POST_VARS[var] and with IIS > I simply call $var. > Why this happens??? Do I need to modify all my scripts to > $HTTP_POST_VARS??? > > > Thanking in advance, > Nuno Lopes > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php