[PHP] calculating psysical path (a first try)

2002-08-01 Thread Lars Olsson
Hi list! Something I use quite often when programming in ASP is the Server.MapPath method. This method expects a virtual path (on the web server) and returns the corresponding psysical path. I haven't seen this anywhere in PHP, so I've hacked my own little routine to do this (see below). But

Re: [PHP] Creating Image v2... storing thumblains...

2002-08-01 Thread mp
Oh don't worry about this... I've already found the mistake... > Thanks to those who helped me last time about creating image, but now there > is another problem... > I'm making a thumblain like this: > > $base_size = 300; > > $size = GetImageSize($image1); > $kof =

[PHP] PROBLEM

2002-08-01 Thread Thomas Edison Jr.
hi! i have a problem in my project.the problem is that suppose we have the date for the whole of the month and two different files r there. i have to pick one file of the current date that is say today and the other file of the yesterday.but the problem is that if the current date is monday then t

[PHP] RE: dir to array?

2002-08-01 Thread Tim Ward
> Not sure why this isn't working, any help is appreciated. I > am trying to > read the files in a directory and place them into an array. > Here is the > code: > > /* Function to create array of directory contents */ > function dCNTS($files) { > $dir = opendir("/path/to/directory/"); > wh

RE: [PHP] String Question

2002-08-01 Thread Tim Ward
or ... while($new = substr($old, $i++ * $strlen, $strlen)) $array[] = $new; Tim Ward www.chessish.com > -Original Message- > From: Richard Baskett [mailto:[EMAIL PROTECTED]] > Sent: 31 July 2002 20:47 > To: Randy Johnson; PHP General > Subject: Re: [PHP] String Question

Re: [PHP] PROBLEM

2002-08-01 Thread Justin French
I don't store anything in date format (eg -MM-DD)... I store them as a unix time stamp -- see time() in the manual. Then it would be pretty easy to get today's stamp using time(), then look for the two files preceeding that stamp, (ORDER BY in SQL) which would presumably be today's file/row,

Re: [PHP] PROBLEM

2002-08-01 Thread Markas
Yes I always arguing that its better to store date as an ordinary int "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I don't store anything in date format (eg -MM-DD)... I store them as a > unix time stamp -- see time() in the manual. > > T

[PHP] Problems with PEAR

2002-08-01 Thread andy
Hi there, I am having trouble to install pear. This seems to be needed by a webmailer called horde. somehow the pear comming with php4.2.2 does not contain a certain log class. Here is what the faq says about this problem: http://horde.org/faq/admin/trouble/index.php#t51 5.1.21 "Fatal error: Undef

[PHP] Re: Printing a PHP Class

2002-08-01 Thread Markas
Its hard to imagine anything better and clear than what print_r() or even var_dump() outputs... "Marty McGowan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > PHPers, > In a genaology application, where I add individuals to > an array: > > $everyone[] = new I

[PHP] Bug reporting site

2002-08-01 Thread Richard Black
Anyone else having trouble getting to http://bugs.php.net ??? == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] Page title changes when call functions!!

2002-08-01 Thread Simon Ritchie
> I have a bad experience coding in PHP. I create a home page in PHP, > index.php. Within this PHP code, it calls functions which are placed in > other file. I notice that the page title changes to something > that I don't > want it to be. This is probably an HTML problem, not a PHP problem.

[PHP] Storing script in database??

2002-08-01 Thread David Pratt
I am creating an application where it would be useful to write and store script in a field in a MySQL database and create a loop to process the array of the code contained in the field. Conceptually, I think it sounds reasonable but I am uncertain of what kind of process I could use to have the c

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
> I suppose include() can be used to include files from remote > systems(not on > WINDOWS). Only if the sysadmin running your web server allows it, which they should not. > A webmaster on the same server can always use a path like > "/home/htdocs/.../config.php" and include my config .php which

Re: [PHP] include()

2002-08-01 Thread Andrey Hristov
> > I suppose include() can be used to include files from remote > > systems(not on > > WINDOWS). > > Only if the sysadmin running your web server allows it, which they should > not. > > > > A webmaster on the same server can always use a path like > > "/home/htdocs/.../config.php" and include my

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
> "Other users on the same server *shouldn't* be able to include() in this way" > > How? > > Would their $_SERVER['HTTP_HOST'] not be the same? You did not specify your circumstances in your original posting, so there is some confusion. One web server can handle many domains. An ISP offering s

Re: [PHP] Storing script in database??

2002-08-01 Thread Justin French
I'm pretty sure you can use eval() on a string, but tread with caution, and try to look around for security concerns. I certainly wouldn't eval() anything supplied by a user... no way. Justin French on 01/08/02 7:53 PM, David Pratt ([EMAIL PROTECTED]) wrote: > I am creating an application wh

Re: [PHP] Storing script in database??

2002-08-01 Thread lallous
I agree with Justin! Probably your best solution is to write your own mini script and write an interpreter for it! Elias "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm pretty sure you can use eval() on a string, but tread with caution, and

RE: [PHP] calculating psysical path (a first try)

2002-08-01 Thread Simon Ritchie
I think that you have something like this: $HTTP_SERVER_VARS['SCRIPT_NAME] == '\foo\bar.php' $HTTP_SERVER_VARS["SCRIPT_FILENAME"] == 'c:\wwwroot\foo\bar.php' and you want to use this to derive the root 'c:\wwwroot'. You can use one of the standard string edit functions. Something like t

[PHP] Re: Disabling Browser "BACK" button

2002-08-01 Thread lallous
see: http://lgwm.org/trap.htm try to use the same mechanism. Elias "Petre" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > HI > Is there a way I can disable the client's browser back button, forcing > them to use the navigation I built into the page? > Ideally

[PHP] Re: extracting variables from files

2002-08-01 Thread lallous
try str_replace() or preg_replace() Elias, "Nick Wilson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi everyone, > > I break out in a cold sweat just thinking about regex, so I thought I'd > ask you if t

[PHP] News to toolbar (ticker)

2002-08-01 Thread Jeff Lewis
vBulletin has a file called ticker.php that allows users to have latest posts sent to their toolbar in Windows. An example can be found on this site: http://www.whitesoxinteractive.com/Ticker.htm How exactly do they do this? I can't manage to get my hands on the file to take a look but it's somet

Re: [PHP] More ???s on passing variables

2002-08-01 Thread Paul Dionne
Jason Wong wrote: > On Wednesday 31 July 2002 22:40, Paul Dionne wrote: >> >> I have a class in my script which has information on specific tables such >> as standard queries, tablenames, Index field... >> >> Then there is a function called StandardDropDown($ItemNum, $Name) which >> gets the info

Re: [PHP] News to toolbar (ticker)

2002-08-01 Thread 1LT John W. Holmes
It just pulls up a PHP page...what's the big deal? Make up a PHP page that pulls the newest post out, displays it, and refreshes itself ever minute or so... It looks extremely annoying to me. Why would to want that on your toolbar? Just open up IE with the same page. ---John Holmes... -

[PHP] Re: More ???s on passing variables

2002-08-01 Thread Paul Dionne
Help still needed. I just went back to the code and looked. Making $ItemNum does not make a difference. And the object which is passed to it is part of the class which is global anyway. Paul Paul Dionne wrote: > Hello everyone, > > I have a class in my script which has information on spec

[PHP] Url of frame in php variable

2002-08-01 Thread patrick anderson
Hi, does anyone know of an elegant way to get the Url of the current frame in a php variable. Thanks for any suggestions. Patrick PS I know that PHP_SELF will provide the url of the main frame -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] News to toolbar (ticker)

2002-08-01 Thread 1LT John W. Holmes
Well, Just make a PHP page that shows what you want. Use a META-REFRESH tag to have it refresh itself every 60 seconds (I'm assuming that'll work in the "toolbar"). I'm not sure of the specifics for vBulletin, but the database structure isn't that difficult. Just pull use LIMIT to pull out the lat

Re: [PHP] Url of frame in php variable

2002-08-01 Thread Justin French
the only way would be with javascript, but remember, this would be done AFTER the page leaves the server (client side), so it will be quite messy. or you could try keeping track of what the sub-frame is doing with sessions... each time you change it's URL, update the session variable. or you cou

Re: [PHP] Url of frame in php variable

2002-08-01 Thread patrick anderson
I would like to include a style sheet based on the url; the references to the style sheet are stored in MySQL. I guess the way to code this would be to use php to create the javascript code with the list of style sheets. thanks, patrick Justin French wrote: > the only way would be with java

[PHP] ldap_modify parameters?

2002-08-01 Thread Chad Day
I think something is wrong with the way I am calling ldap_modify, but I'm not sure exactly what, from the scripts and tutorials I've been looking at/experimenting with: $ds=ldap_connect("online-leagues.com"); if ($ds) { $r=ldap_bind($ds, 'username', 'password');

Re: [PHP] ldap_modify parameters?

2002-08-01 Thread Rasmus Lerdorf
I think your problem is that you are passing the output of ldap_get_entries() directly back into ldap_modify(). ldap_get_entries() returns an array of result elements whereas ldap_modify() is expecting a single element. So, to change the 'st' attribute for the uid=testing record, you should simp

Re: [PHP] Re: More ???s on passing variables

2002-08-01 Thread Jason Wong
On Thursday 01 August 2002 20:21, Paul Dionne wrote: > Help still needed. > > I just went back to the code and looked. Making $ItemNum does not make a > difference. And the object which is passed to it is part of the class > which is global anyway. Use print_r() or var_dump() on $ItemNum outsid

[PHP] use of COM object

2002-08-01 Thread Christophe PIN
Hello, I have to use a COM object with following properties: ... Property StationsX(lIndex As Long) As Long Property StationsY(lIndex As Long) As Long ... I didn't manage to initialize these properties. I create a new COM object with: $obj = new COM(""); If I try $obj->

RE: [PHP] ldap_modify parameters?

2002-08-01 Thread Chad Day
Also tried that, no success, unless I am missing something. ... $info["st"]="stchanged!"; ... ldap_modify($ds, 'uid=testing,cn=online-leagues.com', $info); Fatal error: LDAP: Unknown Attribute in the data in /usr/local/www/sites/online-leagues.com/htdocs/ldapform

[PHP] Re: Logging out with authentication

2002-08-01 Thread Pete James
Hello $PHP_AUTH_USER."; echo "Your password is $PHP_AUTH_PW."; echo ""; } ?> Ray Todd Stevens wrote: > > I am working on a web site that is using php controled www- > authenticate authentication. User ids are specific to users and > different pages and different levels of information

[PHP] PEAR with lots of trouble

2002-08-01 Thread Andy
Hi there, I am trying to install PEAR. Horde - a webmailer - requires a certain log modul which seams not to come with the recent php installation. I installed a second php version as standalone php version to be able to install the pear class like stated on the php.net site. However I do still g

[PHP] sort results into two columns

2002-08-01 Thread kompresor
hi, how can i sort data from mysql into two columns. Thanks. eg: link1linka link linke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sablotron error

2002-08-01 Thread ctan
Hi... I'm working on XML files where are stored in a MySQL database. With PHP I intend to transform these XML with XSLT. After much difficulty, I managed to sort out everything until the portion about xslt_process. The browser returns: Warning: Sablotron error on line 2: 'arg:/argument.dtd' not

[PHP] Re: [imp] New version of apache and php are good for work with IMP 3.x ?

2002-08-01 Thread EdwardSPL
Hello, I have just finished re-compile and re-install apache 1.3.26, php 4.2.2, openssl 0.9.6d and mod_ssl... But when I start the apache by running : apachectl startssl php and https can't for work with apache, then I check the file "httpd.conf" : I found : LoadModule ssl_module libexe

[PHP] Form asking to refresh when I hit the back button

2002-08-01 Thread DonPro
Not sure if this is a PHP question but I've traced the problem to a PHP statement. I have a form that when submitted, displays a PDF document in the browser (using a PDF library). When I click on the back button, it should redisplay my form but instead, displays a warning that data has expired a

Re: [PHP] Form asking to refresh when I hit the back button

2002-08-01 Thread Danny Shepherd
This is generally caused by using POST as the form's methods. Try using GET instead. Danny. - Original Message - From: "DonPro" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Thursday, August 01, 2002 3:57 PM Subject: [PHP] Form asking to refresh when I hit the back button

[PHP] Session Problems

2002-08-01 Thread eat pasta type fasta
What does it mean when PHP forces the session ID into the URL, the host changed something in the configuration without informing me it would seem, (it dind't happen before now does) R> --__-__-__ eat pasta type fasta -- PHP General Mailing List (http:

[PHP] Getting user's local TZ

2002-08-01 Thread Chris Boget
I looked in the predefined variable section of the manual and couldn't find that there was a way to get this information from that. If there was another way you could get this via PHP, I couldn't find it anywhere else in the docs. So, does anyone know of a good method to get the Time Zone local

Re: [PHP] web services and PHP

2002-08-01 Thread Bob Lockie
>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

[PHP] mysql_field_flags() problems

2002-08-01 Thread Mathieu Dumoulin
This is a part of my code for my data interfacer class which takes an SQL RESULT RESOURCE and gets the field from it. Problem is, i can't get the primary key out nor the auto-increment flag out. Before, the same script (or so, it was modified but not that part) was working fine. I tried it on seve

[PHP] Re: Dynamically check radio buttons

2002-08-01 Thread Shew
OK, changed the subject to what I think it should be about. Anybody? "Shew" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi - I'm a TOTAL php NEWBIE - my 1st bit of code!!!. > > Basically the input form page has 17 sets of radio buttons, each > representing

[PHP] test

2002-08-01 Thread Daniel Geldres Castro
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mcrypt

2002-08-01 Thread Randy Johnson
I am looking into different password encryption solutions. i started using crypt() then changed to mcrypt() which was not any good cause of the high ascii characters then i read about converting the high ascii characters to hex . Is this the ideal way to encrypt passwords or is their somethin

Re: [PHP] web services and PHP

2002-08-01 Thread Danny Shepherd
I think he means XML WebServices (probably using SOAP) It's not too difficult, there are a few SOAP classes for PHP now, simply send your SOAP encoded request to the server, via HTTP, and decode the SOAP response that you get back. There's also a SOAP module for PHP (alpha release atm) at http:/

Re: [PHP] mcrypt

2002-08-01 Thread Danny Shepherd
Just base64 encode the mcrypt output if the non printable chars bother you, though I don't really see what the problem is, unless you're pushing the output to a web page. Danny. - Original Message - From: "Randy Johnson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August

[PHP] Re: Problems with PEAR

2002-08-01 Thread electroteque
read this site http://vulcanonet.com/soft/index.php?pack=pear_tut#ss2 the best pear tutorial to get me going prob try and install via cvs , thats the whole lot though, but it works , also search http://pear.php.net for the package and then copy it to that dir also make sure the include dir to

RE: [PHP] mcrypt

2002-08-01 Thread Darren Gamble
Good day, > i started using crypt() > > then changed to mcrypt() > > which was not any good cause of the high ascii characters > > then i read about converting the high ascii characters to hex . > > Is this the ideal way to encrypt passwords or is their > something better. The crypt() funct

RE: [PHP] Re: Dynamically check radio buttons

2002-08-01 Thread Mark Middleton
It looks like your code could use "variable variables" to help you out. ::: OLD CODE > > for ($GameIdx = 1; $GameIdx <= 17; $GameIdx++) { > > /* instead "hardcoding each radio button name - just do it > programmatically > > by concatenating / creating the name */ > > $

RE: [PHP] Re: Dynamically check radio buttons

2002-08-01 Thread Johnson, Kirk
If you made an array for your buttons, then you could use PHP's looping constructs to process the array. Write the input tag like this: Chicago The processing code will then have access to the array $Game indexed by the game number, e.g., $Game[1]. Good luck! Kirk > -Original Message

Re: [PHP] mcrypt

2002-08-01 Thread Randy Johnson
I found that the some of the high ascii characters would not store right in the database or something cause when i went to compare them, the comparison would fail. Randy - Original Message - From: "Danny Shepherd" <[EMAIL PROTECTED]> To: "Randy Johnson" <[EMAIL PROTECTED]> Cc: <[EMAIL P

[PHP] Problem with "" inside the PHP code, due to "?"

2002-08-01 Thread Scott Fletcher
Anyone know the workaround with the situation here? Here is the sample script. The problem is I include the XML tag into the PHP variable and it messed up everything. It all had to do with "?" here since PHP use it also. --clip-- Apple"; echo $XML; ?> Thanks, FletchSOD -- PHP General Mai

Re: [PHP] Problem with "" inside the PHP code, due to "?"

2002-08-01 Thread Danny Shepherd
Try: Apple"; echo $XML; ?> HTH Danny. - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 01, 2002 5:03 PM Subject: [PHP] Problem with "" inside the PHP code, due to "?" > Anyone know the workaround with the situation here?

RE: [PHP] Problem with "" inside the PHP code, due to "?"

2002-08-01 Thread Matt Babineau
Apple"; echo $XML; ?> Try this? Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Thursday, Au

RE: [PHP] sort results into two columns

2002-08-01 Thread Simon Ritchie
> how can i sort data from mysql into two columns. Thanks. > > eg: > > link1linka > link linke Do you mean how can you get MySQL to present the data in sorted order or how can you get the browser to display the results in neat columns? Depending upon the question, you either want

RE: [PHP] Problem with "" inside the PHP code, due to "?"

2002-08-01 Thread Mark Middleton
> $XML = "Apple"; > echo $XML; > ?> > Not sure if this is the best way, but it worked for me: $XML = "<"."?xml version='1.0' encoding='UTF-8'?".">Apple"; Hope this helps, Mark Mark Middleton Whirled Web -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] mcrypt

2002-08-01 Thread Danny Shepherd
Try setting the database field type to 'BLOB' Danny. - Original Message - From: "Randy Johnson" <[EMAIL PROTECTED]> To: "Danny Shepherd" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August 01, 2002 4:51 PM Subject: Re: [PHP] mcrypt > I found that the some of the high asc

[PHP] .htaccess file

2002-08-01 Thread B i g D o g
Is it possible to set register_globals to off in the .htaccess file. If so how do I do that? .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include()

2002-08-01 Thread Lee
--snip-- > If you run your own server, you can set it up so that each webmaster is > locked into a private environment, but it's messy. According to me, you > would need a separate copy of apache for each site, each running under a > different user, and they would need to run on separate ports, w

Re: [PHP] Problem with "" inside the PHP code, due to "?"

2002-08-01 Thread Tom Rogers
Hi, Friday, August 2, 2002, 2:03:18 AM, you wrote: SF> Anyone know the workaround with the situation here? Here is the sample SF> script. The problem is I include the XML tag into the PHP variable and it SF> messed up everything. It all had to do with "?" here since PHP use it also. SF> --cli

Re: [PHP] .htaccess file

2002-08-01 Thread Nicole Lallande
I think it is something like - can't remember if it's an underscore or dash between the 'php' and 'flag' php-flag register_globals off HTH, Nicole B i g D o g wrote: >Is it possible to set register_globals to off in the .htaccess file. If so >how do I do that? > > >.: B i g D o g :. > > > >

Re: [PHP] Problem with "" inside the PHP code, due to "?"

2002-08-01 Thread electroteque
heres how i do it $xml .= "\n"; "Tom Rogers" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Friday, August 2, 2002, 2:03:18 AM, you wrote: > SF> Anyone know the workaround with the situation here? Here is the sample > SF> script. The problem is I inc

[PHP] sessions

2002-08-01 Thread Tyler Durdin
I have a login page using sessions the old way. I have switched it to using $_SESSION['valid_user']and was wondering how to switch this (below) part of my code. In the if statement I am checking to see if the session is registered, but using $_SESSION[''] I do not understand how to do this or

Re: [PHP] .htaccess file

2002-08-01 Thread Nicole Lallande
it's php_flag register_globals off -- you can either place this within your tags in your httpd .conf file or in an htaccess file -- for more info see http://www.php.net/manual/en/configuration.php#AEN2390 best, Nicole Nicole Lallande wrote: > I think it is something like - can't remember if

Re: [PHP] .htaccess file

2002-08-01 Thread Neil Freeman
php_value register_globals "0" B i g D o g wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ** > >

[PHP] Php Dynamic Pages & Apache Server

2002-08-01 Thread msmecca
I am trying to create a php page that will show the files on an apache server. Each file will show up as a link on the page. When clicked, the user will be able to download the file. Is there anyone out there that can lead me in the right direction. -- PHP General Mailing List (http://www.php.n

Re: [PHP] Problem with "" inside the PHP code, due to "?"

2002-08-01 Thread Scott Fletcher
Thank you all for the feedback! I was trying to say the problem lie with the "?", not with the quote or double quote. Because PHP use " wrote in message 019701c23974$f29b78a0$0100a8c0@developerx">news:019701c23974$f29b78a0$0100a8c0@developerx... > $XML = "<\?xml version='1.0' > encoding='UTF-8'

[PHP] Re: ARRRRGGGGHHHH! Weird Problems!

2002-08-01 Thread Tony Harrison
Thanx, I havent tried the loop yet, but the color will work im sure . "Aaron Ott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > tony, > > regarding problem one, it looks like there is a problem in the code near: > for ($g = 0; $g < $num_lyrics; $g ++) { > > t

Re: [PHP] Php Dynamic Pages & Apache Server

2002-08-01 Thread Lee
You could try using the readdir function to read a list of files (full docs available from http://www.php.net/manual/en/function.readdir.php) Here is an expanded version of the example give on the above link. File List $file"; } closedir($handle); } ?> This example assumes that the

Re: [PHP] Php Dynamic Pages & Apache Server

2002-08-01 Thread Nicole Lallande
This will read all '.pdf' files in a sub-directory and put them in a link - HTH, Nicole $dir."); while($entry = readdir($dir_stream)) { // get the file extention $ext = substr($entry, strrpos($entry,'.'));

[PHP] Re: PHP mail() problems FIXED

2002-08-01 Thread John Williams
John Williams wrote: >I'm having a problem getting the mail() function working on php 4.2.2. > >I get the error message: >Warning: mail() is not supported in this PHP build > >I'm running Solaris 8 and have set the symlink for sendmail. I have >recompiled PHP, set the php.ini to point to sendmai

[PHP] DPHPEdit - PHP IDE - New version (0.9.2.4) available

2002-08-01 Thread Davor Pleskina
For all those interested - http://www.pleskina.com/dphped In newest version (0.9.2.4): a. You can now add multiple files to projects using Drag&Drop! b. Internal previewer enhanced c. BUG corrected on previewing single files Thanks everybody for suggestions and support! ___

RE: [PHP] sort results into two columns

2002-08-01 Thread Brian V Bonini
link1linka linklinke I suppose an example of the sql query you attempting to use and perhaps an idea of how your db is structured would help a little.. ;-) > -Original Message- > From: kompresor [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 01, 2002 10:23 AM > To: [EMAIL PR

[PHP] SOAP client class that supports https????

2002-08-01 Thread Anson Smith
I am working on a project that requires me to access a web service over https. I was wondering if anyone has any luck getting this class to work over https or if anyone knows of a soap client class that supports https?? thanks, Anson Smith

Re: [PHP] SOAP client class that supports https????

2002-08-01 Thread Anson Smith
The class I am referring to in the original message is nuSphere's nuSoap class which works great over http by the way. ---Original Message--- From: Anson Smith Date: Thursday, August 01, 2002 12:38:47 PM To: [EMAIL PROTECTED] Subject: [PHP] SOAP client class that supports https???

Re: [PHP] Getting user's local TZ

2002-08-01 Thread Jason Wong
On Thursday 01 August 2002 23:10, Chris Boget wrote: > I looked in the predefined variable section of the manual and > couldn't find that there was a way to get this information from > that. If there was another way you could get this via PHP, I > couldn't find it anywhere else in the docs. > So,

[PHP] Re: [PHP-WIN] php cookie question

2002-08-01 Thread Damian Harouff
http://www.php.net/manual/en/ref.session.php php.net is rather interesting, in which you can do something like type in "php.net/" or "php.net/" and get the manual page for it... C> I want to ask user to login, and use cookie to save their userid and C> password C> what should i do? -- PHP Ge

Re: [PHP] Help with fopen please.

2002-08-01 Thread Michael Sweeney
Shane, You haven't told us what the problem is, only that you're having trouble making it work. How is it not working? One other question: I have to assume that the script is running on a different server than the one your are trying to write to (otherwise, why use ftp?) - are you sure that the ft

[PHP] attachements in mail()

2002-08-01 Thread Danny wall
I've looked, and can not find out how you send attachments using the mail() function. I find it difficult to believe that this was left out, so obviously I'm missing something right in front of my face. So my question is, how do you send attachments using the mail() fucntion? -Danny "You are

[PHP] Re: attachements in mail()

2002-08-01 Thread Philip Hallstrom
You can't (in the sense that there's an $attachment argument), but I've seen several classes that will let you do it. Check zend.com and php.resourceindex.com for the classes. On Thu, 1 Aug 2002, Danny wall wrote: > I've looked, and can not find out how you send attachments using the mail() > f

[PHP] randomize etc?

2002-08-01 Thread Hawk
I'm trying to make a small script that I can use for randomizing teams and stuff, I have one field where I enter how many teams, one for how many in each team, and a to write down all the players in. This is where my brain stopped working, first I was thinking about using split, but I don't know

Re: [PHP] Help with fopen please.

2002-08-01 Thread eat pasta type fasta
check chmods, if the directory where you're saving the $fd2 is not 777 then it wont write, keep in mind it's a security issue however, use /tmp or instead of indicating paths in the file itself have include("file with the path to the dir") instead and put that .inc file off the reach of apache

[PHP] Re: randomize etc?

2002-08-01 Thread Philip Hallstrom
split should work fine... Just do something like: $teamMembersArray = split(" ,;", $textarea); That will give you an array of the team members. Of course I'm assuming that their names don't include spaces and that you'll separate them with either a space, comma, or semi-colon. And you'll want

Re: [PHP] randomize etc?

2002-08-01 Thread Kurth Bemis (List Monkey)
At 08:19 PM 8/1/2002 +0200, Hawk wrote: try using explode then walk through the array that explode makes :-) does that help? ~kurth >I'm trying to make a small script that I can use for randomizing teams and >stuff, I have one field where I enter how many teams, one for how many in >each team,

[PHP] Readdir

2002-08-01 Thread msmecca
New To Php so please bear with me... :) I used the readdir function to read the files listed on a Apache server. And it worked fine. Now I would like to be able to get the files the php code returns, to be links. Where the user can click the file and download it. Also for the files to sit within

RE: [PHP] Readdir

2002-08-01 Thread Matt Schroebel
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 01, 2002 2:54 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Readdir > > New To Php so please bear with me... :) > > I used the readdir function to read the files listed on a > Apache server. And > it worked fine. Now I

Re: [PHP] Readdir

2002-08-01 Thread Nicole Lallande
Change: echo "$file\n"; to: echo "$file\n"; Note the nested quotes -- outer quotes - ", inner quotes (around $file) single - ' Best, Nicole [EMAIL PROTECTED] wrote: >New To Php so please bear with me... :) > >I used the readdir function to read the files listed on a Apache server. And >it

[PHP] problems with random again

2002-08-01 Thread Hawk
Is there some easy way to make rand() only use each number once in a loop, to avoid getting the same values more than once? HÃ¥kan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Readdir

2002-08-01 Thread Jason Wong
On Friday 02 August 2002 02:53, [EMAIL PROTECTED] wrote: > New To Php so please bear with me... :) > > I used the readdir function to read the files listed on a Apache server. > And it worked fine. > http://www.optimus7.com/findme.php is the result I get from the php > code below. Help! > > if

[PHP] Re: ARRRRGGGGHHHH! Weird Problems!

2002-08-01 Thread Tony Harrison
OK, the color works, but now I have 2 empty lines "Tony Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanx, I havent tried the loop yet, but the color will work im sure . > > "Aaron Ott" <[EMAIL PROTECTED]> wrote in message > [E

[PHP] Re: attachements in mail()

2002-08-01 Thread Tony Harrison
Shouldnt there be some sort of MIME header for it? "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can't (in the sense that there's an $attachment argument), but I've > seen several classes that will let you do it. Check zend.com and > p

[PHP] Re: problems with random again

2002-08-01 Thread Philip Hallstrom
No... that wouldn't really be random then would it? :) But you could always keep track of the previous random numbers and if you've seen it ask for another one. On Thu, 1 Aug 2002, Hawk wrote: > Is there some easy way to make rand() only use each number once in a loop, > to avoid getting the sa

[PHP] Example safe use of eval()

2002-08-01 Thread David Pratt
I am trying to get code that I have saved as a string in a database to evaluate as code within a larger script with a loop. There are obvious security concerns with allowing users to input code into the field if it is not preprocessed before it is evaluated. The eval function appears to be the t

[PHP] Can several different sessions coexist?

2002-08-01 Thread DonPro
Hi, I'd like to register a session and create several session variables. In another part of my site, I'd like to register another session again creating session variables. After a bit, I'd like to destroy this second registered session keeping the first intact. Thus far, whenever I issue: ses

[PHP] Re: ARRRRGGGGHHHH! Weird Problems!

2002-08-01 Thread Aaron
What is the purpose of using the for loop? if I may make a suggestion for using the while loop. The code would look something like this: $lyric_array[1]"; echo "$lyric_array[3]"; echo "$num_comments"; echo "$lyric_array[2]"; echo "Buy at Amazon.com"; $ltotalv = $ltotalv + $

[PHP] How much should this cost Or ...

2002-08-01 Thread PHP mail
If anyone responds to this thanks a lot because this is a lot to ask. I've never coded anything for a paying customer. I'll be using Apache, MySQL and php of course. Or... how about this application already exists somewhere?? Requirements/Design --- 1. Any page requiring authen

Re: [PHP] Re: attachements in mail()

2002-08-01 Thread Danny wall
Ah ... well that's good. I thought I was just being an idiot. Thanks for the resources, a couple of the classes will do the job nicely. -Danny >From: Philip Hallstrom <[EMAIL PROTECTED]> >To: Danny wall <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: [PHP] Re: attachements in mail() >Da

  1   2   >