[PHP] Session Problem

2003-07-02 Thread Michael A Smith
Okay, I'm starting session with session_name("PRATTCMS_ADMIN"); session_save_path($sess_path); session_start(); This works on one server I have, compiled the almost exact same (except without png and jpeg support for gd). They both use trans_sid. What's going on here? In the session path, the s

Re: [PHP] Session vs Cookie Issues

2003-07-02 Thread Joel Rees
> If anyone can help shed any light on the sort of instability I'm seeing, > that would really help. Apache child processes die right and left, with > segfaults and bus errors. Hardware? Overly agressive optimization switches when you compiled? Using pre-release software somewhere in the chain? -

[PHP] Optional form variables (IDEA?)

2003-07-02 Thread Miranda, Joel Louie M
Hello, im doing a form that when you pass it will generate a preview report. My problem is some fields are optional the optional fields are 5. And for those fields I need to make it fit when it generate what idea or codes can you suggest? Ex, a businesscard preview form. When it generates it will

[PHP] web-based mail client (problem with setting FLAGS using POP3)

2003-07-02 Thread szparag
hi.   i have a problem and i would be very thankfulif you'll help me.i`m writing small web-based mail client.and i haveproblem with setting flags on the messages.everything is ok when i`m logged on the server butwhen i`m trying to check flags with another connectionflags are empty.do you know

[PHP] Weird Problem

2003-07-02 Thread The Head Sage
Hey, I've got a script which disables a banner image when it's time is up, the script also sends an e-mail to both me and the banners owner when the time is up I've got a problem which is really weird.. Everything else works, but when the query is sent to the MySQL database, nothing happens...

Re: [PHP] Session vs Cookie Issues

2003-07-02 Thread Joel Rees
> based on what you're saying, I gather that if I were to choose to > use cookies, and if cookies were rejected by the user, PHP will default to > using sessions? It isn't cookies vs. sessions. It's { sessions by cookie vs. sessions by URL } vs building your own with either cookies or URL.

[PHP] ASSISTANCE NEEDED

2003-07-02 Thread MARIAM ABACHA
Hello, I am sorry for the embarrassment this letter might cause you as we have not had any correspondence before this letter. I got your address through my nephew with Nigerian Military Chamber of Commerce industry and Mining during my research for a reliable and trustworthy partner who l can

Re: [PHP] PHP 5 and Zend Optimizer/Accelator

2003-07-02 Thread Rasmus Lerdorf
Nope, no plans. On Wed, 2 Jul 2003, [-^-!-%- wrote: > > > Are there any plans to bundle PHP 5 with Zend Optimizer/Accelerator? > (whichever you need to view Zend Encoded files) > > Will it have any support for encrypted files (like those created by Zend > Encoder) ? > > > > =P e p i e D e s i g

Re: [PHP] print html code

2003-07-02 Thread John Nichel
Jim Lucas wrote: well, tell me. What browser follows the standards 100% ?? Yeah...that's the attitude...if none of the existing browsers follow standards, then it must be okay for us to break them too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] PHP 5 and Zend Optimizer/Accelator

2003-07-02 Thread [-^-!-%-
Are there any plans to bundle PHP 5 with Zend Optimizer/Accelerator? (whichever you need to view Zend Encoded files) Will it have any support for encrypted files (like those created by Zend Encoder) ? =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productiv

[PHP] PHP5 classes

2003-07-02 Thread Martin Towell
I've just been playing around with PHP5 beta for windows to get used to the new way it does classes and constuctors, etc, and have found the following... I have a base class which has both a constructor and a destructor. I have a second class that extends the first. I then instantiate the second c

Re: [PHP] mail() with OSX

2003-07-02 Thread Justin French
Excellent -- found it straight away! http://www.roadstead.com/weblog/Tutorials/SMSource.html Thx Justin On Thursday, July 3, 2003, at 02:12 PM, Michael Mulligan wrote: It has sendmail installed but you need to look into activating it as it is not enabled by default (I don't know how off the ba

[PHP] mail + regex + somethoughts

2003-07-02 Thread Shivanischal A
Hi friends, I was just wondering about this. Whenver we reply to the posts here, we just click on the reply button and fire off our messages. This results in long messages (fresh content + earlier content) within a single mail. Now, the question is how would we use the regex functions to remove th

Re: [PHP] mail() with OSX

2003-07-02 Thread Michael Mulligan
It has sendmail installed but you need to look into activating it as it is not enabled by default (I don't know how off the bat, but google should help) Hope this helps On 07/02/03 11:07 PM, "Justin French" <[EMAIL PROTECTED]> wrote: > Hi all, > > I've googled, but to no avail... I have apache

[PHP] Odd CGI error - help! Deadline looms...

2003-07-02 Thread Brady
Has anyone ever seen the likes of this? I get the following lines when I use a custom compiled CGI app to run my PHP scripts. I followed the directions at http://www.kellybreed.com/phpinstall.txt and had success on one site. This different site, same server, generates the error. Warnin

[PHP] Re: Problem with PHP and Oracle

2003-07-02 Thread Lang Sharpe
Hi Anup I had to change ext/oci8/config.m4 Remove the line highlighted in red on this page. http://cvs.php.net/diff.php/php-src/ext/oci8/config.m4?login=2&r1=1.37.2.6&r2=1.37.2.7&ty=h Then do configure/make/make install again. Lang -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] mail() with OSX

2003-07-02 Thread Justin French
Hi all, I've googled, but to no avail... I have apache 1.3.x, php 4.3.2 and mysql on my new g4 under OSX 10.2.6, and most stuff seems to be working fine, but i just did a test using mail() and it didn't work out... no error in the apache log, no error on the screen. Obviously PHP can't find se

Re: [PHP] online file management

2003-07-02 Thread Paul Chvostek
On Wed, Jul 02, 2003 at 05:26:26PM -0500, Dean E. Weimer wrote: > > > > The ideal candidate would authenticate based on a MySQL table and would > > be able to handle multiple users with unique base directories. I'd > > rather not use an PHP-based FTP client, but I'm open to that if nothing > > els

[PHP] mod_rewrite is acting up!!

2003-07-02 Thread John
ok, i had mod_rewrite working perfect: whenever some one entered www.url.com/browse/Pop/10 it would go to www.url.com/browse.php?category=Pop&id=10 Then I created an actual browse folder in the site root with index.php as the only file in that folder to take over the position of the browse.php fil

Re: [PHP] Problem with PHP installation Under windows 2003

2003-07-02 Thread Philip Olson
On Wed, 2 Jul 2003, Dennis Verdaasdonk wrote: > > Hi there > i was bussy with installing the PHP package under windows 2003 > when i do it with the CGI bin i ill always get error 404 and ca not find > that problem > when i use the ASPI way it's can not be loaded.. any idea please tell > me. Ther

[PHP] proc_open() and SSH

2003-07-02 Thread josepablo
Hey folks, Iam trying to call the ssh program and have it connect to a remote host and authenticate, however I havent been able to do it. I used this script but all i get when I run it on port 80 is: command returned 255 At the error log i specified i get: Permission denied, please try agai

[PHP] Problem with PHP and Oracle

2003-07-02 Thread Anup Vijayaraghavan
Hello I am having problems connecting to Oracle 9.2.0.3.0 from php. It connects fine but crashes after 3 or four attempts. My setup is Redhat Advanced Server 2.1 uname -a Linux .xx.xx 2.4.20 #2 SMP Thu Jun 12 08:35:45 NZST 2003 i686 unknown Server version: Apache/2.0.46 Server built: Jul

Re: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Leif K-Brooks
jwulff wrote: How would I calculate if a $number is a multiple of $spacer? if(int($number / $spacer) == ($number / $spacer)){ echo "It's a multiple!"; }else{ echo "Nope!"; } -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosec

Re: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Jason Sheets
Using the modulus operator it returns the remainder of a division operator. For example to find out if a number is divisible by 3 do this: if (($number % 3) == 0) { print $number . ' is divisible by 3'; } else { print $number . ' is not divisible by 3'; } If the remainder of dividing the ta

RE: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Martin Towell
($spacer % $number == 0) Martin -Original Message- From: jwulff [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 July 2003 11:04 AM To: [EMAIL PROTECTED] Subject: [PHP] Calculating if number is multiple of another number How would I calculate if a $number is a multiple of $spacer? -- PHP G

[PHP] Need Older version of file upload script

2003-07-02 Thread Webmaster
I just developed a php script that will upload files to a secure server for a client. Works great. Problem: When I uploaded the scripts to the secure server...the file upload doesn't work. Come to find out I developed using php v4.3.2 only to find out that the secure server that it will be running

[PHP] Calculating if number is multiple of another number

2003-07-02 Thread jwulff
How would I calculate if a $number is a multiple of $spacer? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Authentication system

2003-07-02 Thread Doug Essinger-Hileman
On 2 Jul 2003 at 13:00, Mike Migurski wrote: > You may find it easier to include, in the e-mail, a > uniquely-generated, limited-time URL that the person can visit to > verify that they have received the e-mail. This will remove the burden > of having to set up a system that responds to e-mail com

[PHP] Re: stupidity check: (to disable transparent session id)

2003-07-02 Thread Jean-Christian IMbeault
Jason K Larson wrote: (B> I'm almost perfectly certain this *should* work ... can anybody shed (B> some light on why it doesn't? (B> (B> $retval1 = ini_set ('session.use_trans_sid',false); (B (BJust a quick guess but isn't that one of the settings you *can't* change (Bon the fly since it h

[PHP] stupidity check: (to disable transparent session id)

2003-07-02 Thread Jason k Larson
I'm almost perfectly certain this *should* work ... can anybody shed some light on why it doesn't? $retval1 = ini_set ('session.use_trans_sid',false); or $retval1 = ini_set ('session.use_trans_sid','0'); or $retval1 = ini_set ('session.use_trans_sid','Off'); $retval1 will be: bool(false) and: $r

RE: [PHP] 2values on form, help in catching as one.

2003-07-02 Thread Miranda, Joel Louie M
Hi everyone! What I did to make it work is.. -- -- if (array_key_exists('Template', $_GET)) { $template = join (" ", $_GET['attributes']); } switch($template) { case 'TemplateOne': echo "one"; break; case 'TemplateTwo': echo "two"; break; } -- -- As simple as that. :) Im learning!

Re: [PHP] print html code

2003-07-02 Thread Leif K-Brooks
Jim Lucas wrote: well, tell me. What browser follows the standards 100% ?? Most likely none. That doesn't mean you should violate the standards for absolutley no reason, though! Future browsers will most likely drop . -- The above message is encrypted with double rot13 encoding. Any unau

[PHP] Problem authenticating through sessions and cookies

2003-07-02 Thread Sævar Öfjörð
I’m trying to write a class for authentication. I’ve got it going quite good but there are some problems I’m not shure how to deal with. First, here's the idea: When the class is called, the constructor checks a session variable to see if the user is logged in. If not, it checks if a client-cookie

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread sunwei
have you read my email and those docs carefully? and you sure I am asking some silly questions? my question is that I have a website. the user may not stay in one page, they may jump from one page to another page so I want to logout the user if he close all the browser windows, in stead one of t

[PHP] Re: Need a function to calculate time difference.

2003-07-02 Thread \[cz\]Emo
I use this: function getmicrotime() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec*1000); } $time=getmicrotime(); echo "Page was generated in ".sprintf("%01.7f",((getmicrotime()-$time)/1000))." seconds."; Emo "Jack Sasportas" <[EMAIL PROTECTED]> píse v

RE: [PHP] Using PHP to read style sheet -- create drop-down?

2003-07-02 Thread Sævar Öfjörð
Sure. You should use file functions like http://is.php.net/manual/en/function.fopen.php http://is.php.net/manual/en/function.fread.php or http://is.php.net/manual/en/function.file.php to read the file and then maybe http://is.php.net/manual/en/function.preg-match.php to extract certain element

Re: [PHP] online file management

2003-07-02 Thread Dean E. Weimer
> > Hiya. > > I'm looking for a tool that will allow online file management, with a UI > something like that of a traditional FTP client. > > The ideal candidate would authenticate based on a MySQL table and would > be able to handle multiple users with unique base directories. I'd > rather not us

[PHP] dynamic form display??

2003-07-02 Thread Micah Montoy
On the form that I am creating I allow the user to browse for a file. I would like it that once the user selects the file, that it displays only the file information in a on the same page. The idea is that the user can keep browsing and selecting files and the file information (location and name

[PHP] Using PHP to read style sheet -- create drop-down?

2003-07-02 Thread J J
Is it possible for PHP or maybe javascript+php to read in a style sheet (whatever.css) and create a drop-down of all the elements within that style sheet? CSS contains: .heading {blah blah size blah} .headingBold {blah blah size blah bold} Then in PHP I'd like to have a drop down that shows thos

Re: [PHP] Need a function to calculate time difference.

2003-07-02 Thread Larry R. Sieting
Hi, I just went through this... for my daughters drive time for a level one michigan license. Thanks to Wendell Brown for the help. following is my create table command; CREATE TABLE `mileage` ( `id` int(11) NOT NULL auto_increment, `drive_date` varchar(12) NOT NULL

Re: [PHP] print html code

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Jim Lucas" claimed that: |well, tell me. What browser follows the standards 100% ?? The same one that is 100% bug free? -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread Jim Lucas
Just tell your server to allow the session lifetime to be 15 minutes After 15 minutes of inactivity, the session will not exist. Jim Lucas - Original Message - From: "Jeff Harris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:45 PM Subject: Re: [PHP] how can

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jim Lucas
Technically you are not outside of a function. you need to use one of the include or require functions to include the file right? Jim Lucas - Original Message - From: "Jonathan Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:30 PM Subject: Re: [PHP] B

[PHP] Re: including a file

2003-07-02 Thread Catalin Trifu
Hi, > I want to include a php located on a different server. Is this possible? > If so, what would be the pest way to do it? Read the manual http://www.php.net/manual/en/function.include.php Cheers, Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Hardik Doshi" claimed that: |Hi, | |You can add last_request_time variable into the |session when user logs into the system. Initially set |the time at which user logs in to the system. Now |every user click you need to check your |last_request_time with the current_time. If the |

[PHP] including a file

2003-07-02 Thread Blake Schroeder
Hey all I want to include a php located on a different server. Is this possible? If so, what would be the pest way to do it? -- Blake Schroeder [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Proxy Server - driving me nuts

2003-07-02 Thread Russell Handorf
I have the following code : "> And get the following result (html): =³- kVÕRFMŸNºI"*#ž€V ZH†ŠF$2±ïT„¨PWPR•j{Ê#Û8HÅRW Xàj ‚ Š€µL !.x ã2‚) C†ãÿ‹4¾Ts cÛü"ى“YvÙ9+V€Î ÄèÎ0‚VOi8¢æ>[EMAIL PROTECTED])Ðk±i›nHî&Ê¿‰!IPQ Xˆ‘*pZ,ÆÎÙÀ¬ôÆ0ü (” BšŠhWÇ~v žxäy±ÒJ|ìéG*¨

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jonathan Pitcher
return will work outside of functions ?? That I didn't know. Thanks, Jonathan On Wednesday, July 2, 2003, at 04:28 PM, Jim Lucas wrote: return; will do the trick Jim Lucas - Original Message - From: "Jonathan Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July

Re: [PHP] Need a function to calculate time difference.

2003-07-02 Thread Jim Lucas
what type of format does your column take? date time datetime ?? Jim Lucas - Original Message - From: "Jack Sasportas" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:11 PM Subject: [PHP] Need a function to calculate time difference. > I am trying to

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jonathan Pitcher
I have thought about that but most of the information is not switchable. I use the code mostly for checking if a list of variables have been setup correctly. Thanks though. Jonathan On Wednesday, July 2, 2003, at 04:23 PM, Jeff Harris wrote: On Jul 2, 2003, "Jonathan Pitcher" claimed that:

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jim Lucas
return; will do the trick Jim Lucas - Original Message - From: "Jonathan Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:09 PM Subject: [PHP] Break, Exit, Die, Kill, Maime and Stab > I have some scripting that includes files. The included files ar

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread Hardik Doshi
Hi, You can add last_request_time variable into the session when user logs into the system. Initially set the time at which user logs in to the system. Now every user click you need to check your last_request_time with the current_time. If the difference of last_request_time and current_time is gr

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Jonathan Pitcher" claimed that: |I have some scripting that includes files. The included files are |executed and everything works great. | |The included page needs to check multiple information. | |Currently if I want the scripts to end correctly I have to: [snip] |I would love

Re: [PHP] print html code

2003-07-02 Thread Jim Lucas
well, tell me. What browser follows the standards 100% ?? - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Wendell Brown" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 12:57 PM

Re: [PHP] Session Performance questions

2003-07-02 Thread Hardik Doshi
I think writing 2 to 3K data into the session is faster than writing to sql db. Your session files are mostly stored on the swap space of your server and swap space is faster to read than database files stored in the hard drive. Let me know if i am incorrect thanks Hardik Doshi --- Sancar Sara

[PHP] Need a function to calculate time difference.

2003-07-02 Thread Jack Sasportas
I am trying to find a function or information on how to properly take a start time and an end time from mysql timestamps in order to calculate time taken. So in theory $endtime-$starttime = timespent. It would be great if this understood that 11:55 pm til 12:10am one day apart only equals 15 mi

[PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jonathan Pitcher
I have some scripting that includes files. The included files are executed and everything works great. The included page needs to check multiple information. Currently if I want the scripts to end correctly I have to: if () { } else { if () { } else if ()

Re: [PHP] print html code

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Karina S" claimed that: |Hello, | |I want to make a php site which can generate a html code and display it on |the screen. (Display the code itself.) |I use htmlspecialchars() function. It works fine, but now I have to add |about 200 lines of static html code to print it out. If I

[PHP] Calculating Largest Member of Array

2003-07-02 Thread John Wulff
Sorry for the multiple post!! Apparently when pasting I hit some magic send key.I'd like to calculate the largest member of this array without taking into account the first value which is obvisouly not numeric. So far this is how I'm doing it, but sometimes I get returned a month for the max. $hi

[PHP] Calculating Largest Member of Array

2003-07-02 Thread John Wulff
I'd like to calculate the largest member of this array without taking into account the first value which is obvisouly not numeric. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] phpDocumentor 1.2.1 release is imminent

2003-07-02 Thread Greg Beaver
Hello, Those of you who found bugs in release 1.2.0 (or 1.2.0a for those who used pear install), please acquire a copy of anonymous cvs, branch RELEASE_1_2_0, and verify that the bug has been fixed, we will be releasing the new version tomorrow or the next day. Anonymous CVS instructions are a

Re: [PHP] print html code

2003-07-02 Thread Leif K-Brooks
In browsers that refuse to follow standards, maybe. Breaking standards is a bad thing. Jim Lucas wrote: So what, it would do what was requested. :) -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of th

[PHP] Browscap

2003-07-02 Thread Milan Reznicek
Hi everybody, I'm trying to get_browser() function, but everytime I get from my apache could not open browscap.ini for reading. Does someone know how to correct it, or is there any other way how to determine users browser type and OS without using browscap? Thanks Milan -- PHP General Ma

Re: [PHP] Authentication system

2003-07-02 Thread Mike Migurski
>At the point where they fill out the registration form, I am sending them >an email, informing them that they have been registered. On many sites >I've gone to, the process then includes a requirement that the person >reply to the message. > >Now I need to learn how to take the incoming message an

Re: [PHP] print html code

2003-07-02 Thread Jim Lucas
So what, it would do what was requested. :) Jim Lucas - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Wendell Brown" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 12:30 PM Sub

Re: [PHP] print html code

2003-07-02 Thread Leif K-Brooks
Jim Lucas wrote: You could always use at the top of the screen. And violate every single HTML standard. AFAIK, was never a real tag. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- P

[PHP] Authentication system

2003-07-02 Thread Doug Essinger-Hileman
I am in the process of scripting a site which requires authentication. I've no problems with the scripts allowing folk to register, login, logout, change password, etc. However, this morning I've begun to work on providing some "security" in the form of preventing someone from registering as an

Re: [PHP] php my sql question

2003-07-02 Thread Jason Wong
On Thursday 03 July 2003 01:47, Jerome A. Jackson/AC/VCU wrote: > I have a web site that has my sql installed. YOUR sql? You mean MySQL? > The web server is 1st host > web and they do not provide much support other than referral to my sql > and php web site. I know how to set up a database fro

Re: [PHP] Hi All i need help..

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Beogradjanin" claimed that: |Hi All I want to install PHP under Suse 8.2. How can I do it? | | | |Thanks Unless you have a custom install, probably the easiest way is to install the rpms through YaST. -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.u

Re: [PHP] print html code

2003-07-02 Thread Jim Lucas
You could always use at the top of the screen. Jim Lucas - Original Message - From: "Wendell Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 11:27 AM Subject: Re: [PHP] print html code > On Wed, 2 Jul 2003 19:40:37 +0200,

[PHP] Problem with PHP installation Under windows 2003

2003-07-02 Thread Dennis Verdaasdonk
Hi there i was bussy with installing the PHP package under windows 2003 when i do it with the CGI bin i ill always get error 404 and ca not find that problem when i use the ASPI way it's can not be loaded.. any idea please tell me. best regards Dennis Verdaasdonk Project Engineer Transics Nede

Re: [PHP] Quick ? ... how come this doesn't work?

2003-07-02 Thread Jason Wong
On Wednesday 02 July 2003 22:37, Anthony wrote: Please use a descriptive subject! > I'm trying to get the 1st and last day of the current week. I ty to do > this: > $startofweek = date("Y-m-d",mktime (0,0,0,date("m") > ,date("d")-date("w"),date("Y"))); > $endofweek = date("Y-m-d",mktime (0,0,0,d

Re: [PHP] passthru() problem

2003-07-02 Thread Jason Wong
On Wednesday 02 July 2003 22:04, david wrote: > I'm trying to get the output of a shell command with PHP > > This is the command I'm Trying to execute, I also tried using system > instead of passthru > > > > > passthru(ftpwho -v, $return_var); > > echo $return_var; > > ?> pass

Re: [PHP] comparing two arrays

2003-07-02 Thread Shena Delian O'Brien
Michael A Smith wrote: Look at array_diff() (http://php.net/array_diff). That ought to do what you want. Yes! Thank you :) -Michael On Wed, 2003-07-02 at 10:15, Shena Delian O'Brien wrote: Hi - I have two arrays that need to be compared. I need to know if their values match or not. Currently I

RE: [PHP] Re: PHP user group

2003-07-02 Thread Jay Blanchard
[snip] there are php user groups hmmm... there should a listing for that. someone should start a list... i wish there was one near me... [/snip] If we knew where you were we might be able to point you in the right direction. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: PHP user group

2003-07-02 Thread erythros
there are php user groups hmmm... there should a listing for that. someone should start a list... i wish there was one near me... "Erich Kolb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know of a PHP user group near Gurnee, IL. I found one in > Chicago, but it

[PHP] Re: have some free time?

2003-07-02 Thread erythros
your links don't work... "Kyle Babich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Any php programmers out there have a little free time? I've been trying > to find the bug in my logging system forever and I've all but given up. > If anyone else wants to try their luck then... >

[PHP] Re: print html code

2003-07-02 Thread erythros
try echo ie... echo "this is a paragraphr\n\"; the r\n\ is a return character and newline character. "Karina S" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I want to make a php site which can generate a html code and display it on > the screen. (Display the code itsel

[PHP] converting between timezone

2003-07-02 Thread Mark McCulligh
Does anyone know of a function or class that can convert timeszones including daylight saving time (DST). You pass it the date/time and the current timezone and the new timezone and it returns the new date/time. I need it to work on a windows platform too. Thanks, Mark. -- PHP General Mailing

[PHP] Hi All i need help..

2003-07-02 Thread Beogradjanin
Hi All I want to install PHP under Suse 8.2. How can I do it? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: PHP user group

2003-07-02 Thread Dan Joseph
Searching google.com for 'php user groups' turns up dozens of links. -Dan Joseph > -Original Message- > From: Ray Hunter [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2003 2:22 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: PHP user group > > > there use to be phpusergroups

Re: [PHP] print html code

2003-07-02 Thread Wendell Brown
On Wed, 2 Jul 2003 19:40:37 +0200, Karina S wrote: >I want to make a php site which can generate a html code and display it on >the screen. (Display the code itself.) See if this will do what you want: > http://us2.php.net/manual/en/function.highlight-string.php or > http://us2.php.net/manual/

Re: [PHP] Re: PHP user group

2003-07-02 Thread Ray Hunter
there use to be phpusergroups.org but not sure if that is still going on... i know of 2 for utah and colorado... 1. Colorado = http://coloradophp.org 2. Utah = http://phpslc.com Perhaps others will add to the list. -- BigDog On Wed, 2003-07-02 at 12:06, erythros wrote: > th

Re: [PHP] PHP and Mysql Limit

2003-07-02 Thread ed
On Wed, 2 Jul 2003, Jeff Harris wrote: > Then, once you've done it enough times, $start = $count = 178. > [code] > while ($start <= $count) { > // when $start = $count = 178, you won't retrive any data > [/code] The recordset would not alway contain an even number of records resulting in 10 re

[PHP] comparing two arrays

2003-07-02 Thread Shena Delian O'Brien
Hi - I have two arrays that need to be compared. I need to know if their values match or not. Currently I have: $array1 = array(a, b, c, d); $array2 = array(c, d, e, f, g); $intersect = array_intersect($array1,$array2); $num1 = count($array1); $n

Re: [PHP] PHP and Mysql Limit

2003-07-02 Thread ed
Yes, the next page of results would start at #18. The page number only increments by 1. Ed On Wed, 2 Jul 2003, Chris Sherwood wrote: > It looks like your adding 10 to 8 thus getting 18... of course I maybe > looking at this wrong > > - Original Message - > From: <[EMAIL PROTECTED]> > T

[PHP] Re: have some free time?

2003-07-02 Thread erythros
your links don't work... "Kyle Babich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Any php programmers out there have a little free time? I've been trying > to find the bug in my logging system forever and I've all but given up. > If anyone else wants to try their luck then... >

[PHP] Re: PHP user group

2003-07-02 Thread erythros
there are php user groups hmmm... there should a listing for that. someone should start a list... i wish there was one near me... "Erich Kolb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know of a PHP user group near Gurnee, IL. I found one in > Chicago, but it

Re: [PHP] Re: [PHP-QA] Re: [PHP-DEV] Re: PHP 5.0.0 Beta 1? bettercalled alph...

2003-07-02 Thread Derick Rethans
On Wed, 2 Jul 2003 [EMAIL PROTECTED] wrote: > Well, I haven't figured out how to get it working on Windows yet. So, could > you tell me how? There is a php_mysql.dll in the version on snaps, but it > doesn't work. It gives an error: invalid library (maybe not a PHP library). So, I > don't see a

[PHP] Re: print html code

2003-07-02 Thread erythros
try echo ie... echo "this is a paragraphr\n\"; the r\n\ is a return character and newline character. "Karina S" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I want to make a php site which can generate a html code and display it on > the screen. (Display the code itsel

[PHP] php my sql question

2003-07-02 Thread Jerome A. Jackson/AC/VCU
I have a web site that has my sql installed. The web server is 1st host web and they do not provide much support other than referral to my sql and php web site. I know how to set up a database from a text file then upload to an sql database. Now I want to write code to make it open and access it

Re: [PHP] print html code

2003-07-02 Thread Leif K-Brooks
Karina S wrote: Hello, I want to make a php site which can generate a html code and display it on the screen. (Display the code itself.) I use htmlspecialchars() function. It works fine, but now I have to add about 200 lines of static html code to print it out. If I put all of the code in a strin

Re: [PHP] PHP and Mysql Limit

2003-07-02 Thread Jeff Harris
|- Original Message - |From: <[EMAIL PROTECTED]> |To: <[EMAIL PROTECTED]> |Sent: Wednesday, July 02, 2003 9:23 AM |Subject: [PHP] PHP and Mysql Limit | | |> |> I've created a script that reads a sorted mysql query and outputs specific |> results into text files defined by the start and limi

[PHP] print html code

2003-07-02 Thread Karina S
Hello, I want to make a php site which can generate a html code and display it on the screen. (Display the code itself.) I use htmlspecialchars() function. It works fine, but now I have to add about 200 lines of static html code to print it out. If I put all of the code in a string than it will ap

Re: [PHP] strip white space

2003-07-02 Thread Leif K-Brooks
Steve Buehler wrote: Another question is this. The "&" in wsstrip(&$str). Does that mean that it takes the input to the function as Global and changes it Globally? I am assuming that because that is what the whole function seems to do for me. No, it means that it passes a reference to the va

Re: [PHP] PHP and Mysql Limit

2003-07-02 Thread Chris Sherwood
It looks like your adding 10 to 8 thus getting 18... of course I maybe looking at this wrong - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 9:23 AM Subject: [PHP] PHP and Mysql Limit > > I've created a script that reads a sorted mysq

[PHP] PHP and Mysql Limit

2003-07-02 Thread ed
I've created a script that reads a sorted mysql query and outputs specific results into text files defined by the start and limit of mysql. The database holds 178 records. I want to start my output on #9 with 10 records per page. Should leave me with 17 equal pages right? $count = 178 $start = 8;

Re: [PHP] Connect Active Directory using LDAP... please help :)

2003-07-02 Thread Ray Hunter
The big issue that you will face will be with getting the dn correct for it to work.. I have connected to ldap exchange to do authentication and pull user data and it was a real hassle to get the dn correct.. -- BigDog On Tue, 2003-07-01 at 15:41, Vince C wrote: > Hi everyone, > > I tried to c

Re: [PHP] strip white space

2003-07-02 Thread Steve Buehler
Figures, right after I emailed this, I found it after looking for over an hour. Here is the result and some people had emailed me parts of this: $team_name=" BV Stars Black"; wsstrip($team_name); function wsstrip(&$str) { $str=ereg_replace (' +', ' ', trim($str)); $str=ereg_repl

[PHP] Re: outputting xml declaration

2003-07-02 Thread Pete Morganic
print ''; Steven Apostolou wrote: Hello, The folowing code gives an error: print ""; This is probably because I print a questionmark? How can I avoid that an error is generated? Besides it's not an error in the way that it gives an errorstring but it writes the output in the error_log of apach

  1   2   >