[PHP] PHP reading wrong Linux folder

2003-03-03 Thread Matthew
Hello! I'm running PHP 4.2.3 on a Linux web-hosting server. Right now I am trying to work with a PHP script (MLM Multi List Manager, in case it matters) to handle mailing lists. It works terrific on one server, but on another one it has a very strange problem that I was hoping someone would kno

[PHP] Re: PHP reading wrong Linux folder

2003-03-04 Thread Matthew
Never mind, I solved it--behavior was caused by a script call to a UNIX function which didn't exist on the new server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I call a CGI script from PHP?

2002-08-26 Thread Matthew
line--is there an analogous command in PHP? Thank you for your help! Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] blank

2002-07-02 Thread matthew
subscribe [EMAIL PROTECTED] matthew de Jongh president the spa! internet voice (413) 539-9818 www.the-spa.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Kerberos authentication

2004-08-13 Thread matthew
That way, people could use their existing accounts. Any ideas? --Matthew http://www.quabbo.com Quoting Justin Patrin <[EMAIL PROTECTED]>: > On Thu, 12 Aug 2004 21:15:40 -0700, Matthew Runo <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash:

[PHP] Newbie needs help with MySQL and multiple databases

2004-10-03 Thread Matthew
Hi, im fairly new to php and mysql and need a little help. im running a forum community and would like to have it run on multiple databases because of performance issues others have encountered using the same software on on database. My question is is it possible to have the software connect to 2 d

[PHP] code not working...help?

2004-10-07 Thread Matthew
Hi guys im pretty new at this and cant seem to get this going I want the code to query the database for the number of messages posted within the last month this is the code i have but its not working... I might even have it all wrong, can someone point me in the right direction? $lastmonth =

[PHP] Re: creating objects by reference?

2002-12-18 Thread Matthew Gray
Jonathan Sharp wrote: > Is it better to do: > $obj = &new object(); > > verses: > $obj = new object(); > > thanks, > -js If you are looking to the future: I don't believe the ability to return objects by reference will be an option in Zend Engine 2. Matt -- PHP General Mailing List (http:/

[PHP] Re: is there php equiv left() and right() functions?

2002-12-18 Thread Matthew Gray
Jeff Bluemel wrote: > I have a string that will look like the following; > > data1|data2 > > now - I need to put data1 in a variable, and data2 in another variable. > I've found the functions strlen, and strpos, but I can't figure how to > grab this data. > > thanks, > > Jeff Try list($var1,

RE: [PHP] Getting https-page

2003-01-20 Thread Matthew Walker
Look into the CURL libraries. http://www.php.net/manual/en/ref.curl.php They essentially allow you to emulate the behavior of a browser. Where I work, we use them to make SSL connections to payment processing gateways. Matthew -Original Message- From: Martin Thoma [mailto:[EMAIL

[PHP] setting phprc

2003-03-06 Thread Matthew Collins
hi i need to set one directory on my server with global_variables turned on. i'm running apache i've read that by setting the environment variable PHPRC, I can point a directory to a different php.ini file. however, i'm having trouble finding out how to go about doing this. is this something i

Re: [PHP] how to :: multi select

2003-07-04 Thread Matthew Vos
Hi Thomas. You need to name each checkbox a different name. alternatively, you can name them with array naming convention. i.e. 1-1 1-2 2-1 2-2 Checking off 1-1 and 2-2 would create the following variables (assuming register_globals is on) in the target php script for the form: $array1=array

Re: [PHP] Escaping nasty quotes

2003-07-31 Thread Matthew Vos
On Thu, 2003-07-31 at 14:31, Roy W wrote: > I have this: > > $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS > TERMINATED BY ',' ENCLOSED BY '" . '"' . "' "; > $result = MYSQL_QUERY($query); > PRINT "$query2"; > > The query doesn't take ... but if I cut and paste the

[PHP] Re: [PHP-DB] subtracting dates...

2003-08-03 Thread Matthew McNicol
> In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users > date of births. I need to calculate in a PHP script, the users age from this > DOB. I get a PHP date in the same format as the mySQL and subtract, which > returns the year rounded off. ie, it doesnt matter if your bir

[PHP] Simple cookie question

2003-08-11 Thread Matthew Koh
This may be a stupid question, but I'm trying to set up a system where I can take a poll from visitors to my website and then set a cookie so that they can't vote more than once (until they clear their cookies at least). Problem is, I don't want to put it at the top of my page, because what if some

[PHP] Looking for Genies of the Lamp (London only)

2003-08-14 Thread Matthew Taylor
VideoIsland.com is looking for genies of LAMP to who can hit the ground running and work with a fast-moving team based in London over a 1-2 month period and possibly longer if required. You will have played a leading role in all aspects of the development of Object orientated e-commerce service

[PHP] Help with msql_fetch_array()

2002-07-24 Thread Matthew Bielecki
I have a couple of scripts that fail with the error of: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in... I'm new to both SQL and PHP and I'm wondering if I have some setting turned off or what. Here's the piece of code that is failing (the second line

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Matthew Bielecki
h the console or any other client I have on the physical server and do whatever I want with the db's, I'm just having problems with php. Thanks again for your help!! PHPCoder <[EMAIL PROTECTED]> 07/24/02 01:50 PM To: Matthew Bielecki <[EMAIL PROTECTE

Re: [PHP] Help with msql_fetch_array() FIXED ! Now cookie problems :(

2002-07-25 Thread Matthew Bielecki
p" ; The domain for which the cookie is valid. session.cookie_domain = www.mydomain.com As always, thanks for your help. PHPCoder <[EMAIL PROTECTED]> 07/24/02 01:50 PM To: Matthew Bielecki <[EMAIL PROTECTED]> cc: php-general <[EMAIL PROT

Re: Re[2]: [PHP] Help with msql_fetch_array() FIXED ! Now cookie problems:(

2002-07-25 Thread Matthew Bielecki
OH MY GOSH...I ACTUALLY GOT A REAL PROGRAM TO RUN! Thanks a ton x 1,000,000 Alexander Thanks, Matthew J. Bielecki, MCP, A+ Certified Technician Hobart Corporation Field Engineer - Weighing & Network Systems Phone (937) 332-7163Fax (937) 332-3222 Email [E

[PHP] Session woes

2002-08-24 Thread Matthew Nock
Hi All, I have a bit of a problem using the session management functions in PHP4. (PHP 4.1.2 in fact) I have a "order wizard" system on my website that is using PHP sessions to track values entered on the various forms across all pages of the wizard. at the start of each page i am issuing the "

[PHP] reading email from stdin

2002-09-10 Thread Matthew Miller
I am working on code that will allow me to read email that is directed to a PHP script (via .forward files) for various purposes, as part of an integrated Intranet project. I have hacked a bit at it and came up with code that "works" for the tests I can throw at it, but I'm not confident enough w

[PHP] PHP and Microsoft Office

2002-09-17 Thread Matthew Tapia
Can you use PHP to add appts to my microsoft outlook calendar or open up a document in ms word? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Returning non-references still allows access to membervariables?

2002-10-22 Thread Matthew Bogosian
ay === hello Can anyone tell me what's going on here? I don't think this is at all the correct behavior. On Sun, 2002-10-20 at 05:02, Matthew Bogosian wrote: > Howdy all, > > I have stumbled onto a reference behavior I cannot explain. Here's my > problem:

[PHP] Returning non-references still allows access to member variables?

2002-10-20 Thread Matthew Bogosian
Howdy all, I have stumbled onto a reference behavior I cannot explain. Here's my problem: I'm trying to return a copy of a member variable. The function is not declared to return a reference, but it seems as if the user can override this. Here's a non-object example: Running this yields exa

[PHP] PHP (CLI) + CURL + SSL Problem...

2002-06-07 Thread Matthew Walker
I have PHP installed both as a module, and as a CLI. When I use CURL from inside the module, it works fine for all connections, including SSL. When I use the CLI, I can't make SSL connections with CURL. It just returns 'false'. Anyone know why? -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP (CLI) + CURL + SSL Problem...

2002-06-07 Thread Matthew Walker
CLI installation? Try running > this through the CLI to check... > > if(extension_loaded('curl')){ > echo 'curl support present'; > } else { > echo 'curl not found'; > } > > mh. > > > On 7 Jun 2002, Matthew Walker wrote: >

Re: [PHP] mysql_num_rows()

2002-06-07 Thread Matthew Walker
It's 1 based. It returns the number of rows. Not the index of the last row. (Which would be 0 based.) On Fri, 2002-06-07 at 19:23, William_dw -- Sqlcoders wrote: > Hiya!, > Does anyone know whether mysql_num_rows is zero or one based? > > that is, if I have 5 records will mysql_num_rows() return

[PHP] Crontabs

2002-06-18 Thread Matthew Ward
I want to set up a crontab using my hosts control panel, and when i go to set one up there are boxes for how frequently you want the task to run, and one labelled "Command". Basically, I want to get a PHP script to run every set amount of time, so what do I have to type in the "Command" box to ge

Re: [PHP] Perl inside PHP

2002-06-18 Thread Matthew Ward
See here: http://www.php.net/manual/en/function.virtual.php "Chris Knipe" <[EMAIL PROTECTED]> wrote in message news:064401c21654$310e4d40$[EMAIL PROTECTED]... > Yeah, urgh, not exactly what I was hoping on, but I'll give executing perl a > try... I want to stay as far away as possible from mod_pe

Re: [PHP] Crontabs

2002-06-18 Thread Matthew Ward
What do you mean by "appropriate #! at the top"? "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Matthew: > > On Tue, Jun 18, 2002 at 08:48:19PM +0100, Matthew Ward wrote: > > >

[PHP] PHP 4.2.1 reading PAM/Shadowed password

2002-06-21 Thread Matthew Nock
Hi All, I am trying to build a "client interface" for each of my web-hosting customers, and would like to have them log into the system using the same username/password combinations that are used for FTP, email etc. ie: those stored in the Unix system's passwd and shadow passwd files. I have se

[PHP] PHP 4.2.1 reading PAM/Shadowed passwords?

2002-06-22 Thread Matthew Nock
Hi All, I am trying to build a "client interface" for each of my web-hosting customers, and would like to have them log into the system using the same username/password combinations that are used for FTP, email etc. ie: those stored in the Unix system's passwd and shadow passwd files. I have se

[PHP] Re: Convert a grayscale value to a #RRGGBB hex value

2002-06-24 Thread Matthew Gray
If you know its grayscale... function GrayScaleToHex( $val ) { $norm = $val * 2.55 + $val/100; $hex = sprintf("%02X", $norm); return '#' . $hex . $hex . $hex; } Should get you close enough. Matt René fournier wrote: > Anyone know how I might convert a grayscale value, from betwe

RE: [PHP] function echo ' '

2002-06-25 Thread Matthew Nock
my understanding is that you could write it like this: -Original Message- From: Martin Johansson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 25 June 2002 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] function echo ' ' Is there a way to express php variables inside an echo ' '. I want

[PHP] Re: Classes Constructor syntax

2002-07-17 Thread Matthew Gray
PHP does not support multiple constructors. But, It does support variable argument lists, so you can fake it with func_get_args() and func_get_num_args(): function issue() { if( func_get_num_args() > 0 ) { $args = func_get_args() } else { // do something else...

Re: [PHP] reboot pc with PHP

2003-08-28 Thread Matthew Harrison
On Thu, Aug 28, 2003 at 03:35:59PM +0200, Javier Tacon wrote: > > A more easy solution is that: > > Make a cron that executes every minut /tmp/rreboot.sh for user root > crontab -e > Add the line: > * * * * * /tmp/rreboot.sh > > The script is: > /tmp/rreboot.sh > --- > #!/bin/sh > i

Re: [PHP] reboot pc with PHP

2003-08-28 Thread Matthew Harrison
chown 700 /directory/for/rrebootfile > chown apache.nobody /directory/for/rrebootfile > > > -Mensaje original- > De: Matthew Harrison [mailto:[EMAIL PROTECTED] > Enviado el: jueves, 28 de agosto de 2003 15:49 > Para: Javier Tacon > CC: Petre Agenbag; [EMAIL PROTECTED]

Re: [PHP] Multiple Forms

2003-09-10 Thread Matthew Vos
Process Forms Matt On Tue, 2003-09-09 at 20:11, Dan Anderson wrote: > Is it possible to tell a browser to send form a to URL a and form b to > URL b? > > (i.e. post to two different URLS) > > Thanks, > > -Dan signature.asc Description: This is a digitally signed message part

[PHP] New to PHP form attributes

2003-10-07 Thread Matthew Oatham
Hi, I am new to PHP and am more used to JSP. My question is - if I submit a form to a php3 page using action=="" for some processing all is well I can see that form data. After the processing the page is redisplayed - but the data originally sent persits (in the request) this can be a pain if

[PHP] Vacancy

2003-11-13 Thread Matthew Harvey
£25 - 27K per annum. If you are interested please reply to [EMAIL PROTECTED] with a Word copy of your CV. Kind Regards Matthew Harvey 020 7938 1333 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie scope revisited

2003-11-13 Thread Matthew Morvant
place I started. My client doesn't want to pay for me to "scope" all of the variables in the application, but it doesn't appear to work without the proper scoping. Any suggestions on further research will be appreciated. Matthew -- PHP General Mailing List (http://www.php.

[PHP] Re: Newbie scope revisited

2003-11-13 Thread Matthew Morvant
"Matthew Morvant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I posted a couple of days ago inquiring as to why some inhierited PHP code > was not working. I determined that scope was the issue. The overwhelming > response I got back pertained to regis

[PHP] Forms

2003-11-19 Thread Matthew Oatham
Hi, This is probably more of a javascript question but thought someone here might have an answer. I have a form in a pop up windoe I want this form data to be submited to the window that opened the popup - how can I do this? I have tried setting the target attribute on the form tag to window.o

Re: [PHP] Mulitple selects from form drop down box

2003-11-21 Thread Matthew Vos
On Thu, 2003-11-20 at 17:12, CPT John W. Holmes wrote: > > > Now $_POST['D1'] will be an array of all the items that were chosen. > > ---John Holmes... > > ps: wouldn't it be easier to select multiple items if you had a size larger > than "1"?? The 'size=1' in a select doesn't mean there is o

Re: [PHP] Re: Opening large file problem - fopen

2003-12-16 Thread Matthew Vos
Do you have long lines? If not try this: $file = "error_log.txt"; if (($fp = fopen($file,'r+') !== 0) { // Increment the 1024 sufficiently to read enough data, fgets automatically stops at \n while ($line = fgets($fp,1024)) { if ($line != "") echo($line.""); } } Alternatively,

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Matthew Mundy
Has anyone mentioned Bluefish? I was using code crusader till I tried it yesterday. It blows away both jcc, emacs, xemacs, and gvim. ---Matt On Wed, 10 Jan 2001, Toby Miller wrote: > The editors that I usually use are Textpad and Jedit. I usually use Textpad > as it's my favorite editor. Jedit

[PHP] Is there a function to subtract dates

2001-01-12 Thread Matthew Brealey
I need to find the number of days between a date in the past and todays date. Does PHP have a function to do this, or do I need to write my own? -- Random (non-anti-Microsoft) fortune -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

[PHP] Sorting an array

2001-01-12 Thread Matthew Brealey
I have a 2-d array: $list[$ctr]["username"] $list[$ctr]["county"] $list[$ctr]["age"] $list[$ctr]["id"] $list[$ctr]["days"] I need to sort by days, which is an integer. What function should I use? E.g., $list[0][mark] $list[0][somewhere] $list[0][12] $list[0][1] $list[0][200] $

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Matthew Aznoe
nsive and comes with a thirty day trial. Check it out. BTW, I do not work for EditPlus or have any association with them other than that of a satisfied customer. Matthew Aznoe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Matthew Aznoe
need to use Windows anyway for my company's standards of MS Office and Outlook, its tolerable. When running exclusively in UNIX, I run Elvis, a graphical vi with syntax hilighting. XEmacs also is not a bad option, but Elvis is much faster. Matthew Aznoe -Original Message- From:

Re: [PHP] Clearing a variable

2001-01-18 Thread Matthew Mundy
unset($var) On Thu, 18 Jan 2001, Brandon Orther wrote: > Hello, > > How can I clear a variable? > > Thank you, > > > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com >

RE: [PHP] Any good way ?

2001-01-19 Thread Matthew Ling
maybe I'm over simplifying... my apologies if I am but it looks like you're testing each variable as a boolean value i.e. if(TRUE) so why not use a switch/case statement... easier to write and saved on extraneous curly syntax... look here http://www.php.net/manual/en/control-structures.switch.php

Re: [PHP] Waring message for FTP

2001-01-23 Thread Matthew Mundy
try @ftp_mkdir($conn_id, $uploadtag); On Tue, 23 Jan 2001, Simon Chambers wrote: > Hi, > > I have developed a small php program which creates a directory on a remote > ftp site, which works fine. The problem is that when the directory is creted > it displays the message: > > Warning: ftp_mkdir: M

Re: [PHP] Ideas?? (OT- MySQL)

2001-01-24 Thread Matthew Kendall
<[EMAIL PROTECTED]> wrote ... > I am creating a web site which allows users to post projects and then > others to place bids. I am setting up two tables in MySQL 'Projects' > & 'Bids' my problem is how best to cross reference. What I was > thinking of doing is creating a number of fields in the Pr

[PHP] [newbie]subtracting date

2001-01-25 Thread Matthew Ley
I am working on a project where I need a function that will take the current date and subtract however many days off of it a client specifies. Would anybody know a way I can set this up? I pretty new at this so my vocabulary is very basic. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Submitting Form Information

2001-02-23 Thread Matthew Aznoe
Is there a way to simulate a form submission to a cgi-script using PHP? I am trying to write a script that will replace the frontend of another CGI script with a customized one of my own, but I need to be able to pass form data into the next page in the cgi (including a password). Matthew

[PHP] get current events from mysql query by date?

2001-03-05 Thread Matthew Delmarter
I have a mysql database of events. It contains the following fields: - EventID - EventName - EventDescription - EventStartDate - EventEndDate I would like to query the database for the next 5 events from the current date (today). Any ideas? Regards, Matthew Delmarter Web Developer -- PHP

[PHP] Perl Libraries and PHP

2001-03-15 Thread Matthew Hanna
to PHP but there are Perl libraries that we need but don't have the time to convert to PHP. It would call for some serious translating due to the bad programming technique used. Any advice would be tremendously appreciated. Matthew Hanna [EMAIL PROTECTED]

[PHP] Combining Perl and PHP

2001-03-17 Thread Matthew Hanna
Has anyone heard of calling Perl libraries from PHP? I have seen it done with Java classes but it would be great if there was a way to do it with Perl. Thanks! Matthew Hanna [EMAIL PROTECTED]

[PHP] get name of file

2001-03-19 Thread Matthew Delmarter
How do I return the name of a file without any extensions or path info. Eg how do I return "about" from "http://www.domainz.com/about.htm". Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

[PHP] PHP3 & PHP4 in apache?

2001-04-16 Thread Matthew Mueller
Hi, Can anyone tell me if it is possible to statically build php3 and php4 modules into an apache binary? I tried, but kept getting all these errors from ld about multiply-defined functions such as: ld: fatal: symbol `second_arg_allow_ref' is multiply-defined: (file modu

[PHP] array_count_values

2001-04-18 Thread Matthew Luchak
can someone give a quick hint as to why this does not work: $array = split ("\n", $contents); $stuff = array_count_values ($array); echo $stuff[nuts]; or even: $array = array (split ("\n", $contents)); $stuff = array_count_values ($array); echo $stuff[nuts];

RE: [PHP] List Files

2001-04-19 Thread Matthew Luchak
$path='/root/helpfiles/'; $dir_handle = opendir($path); while ($file = readdir($dir_handle)) { if ((ereg("help",$file)){ INCLUDE "$path$file"; OR echo ''.$file.' } } Matthew Luchak Webmaster Ka

RE: [PHP] Site Searchable function

2001-04-19 Thread Matthew Luchak
there is a good starting point for walking a directory tree and printing out the names of the files at: http://www.php.net/manual/en/function.readdir.php it should be no mean feat to add a search file function and voila Matthew Luchak Webmaster Kaydara Inc

RE: [PHP] Advanced Help Needed

2001-04-20 Thread Matthew Luchak
check the enctype of your form has not changed I had some inconsistencies using multipart... >when I post a file in the form I recieve an "Cannot Find Server". When >there isnt a file posted then the form works fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

RE: [PHP] Site Searchable function

2001-04-20 Thread Matthew Luchak
check php.ini file for "allow fopen" I think. ____ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: ~~~LeoN~ [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 10:59 AM To: [EMAIL PROTECTED] Subject: Re:

RE: [PHP] Posting to a form

2001-04-24 Thread Matthew Luchak
you can't have whitespace in $valsI would replace the whitespace with _ and vice-versa when you want to ouput the $vals... ____ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] I'm trying to do the following But when Aname is multiple word

RE: [PHP] SVG & PHP

2001-04-25 Thread Matthew Luchak
What about writting a gimp plug-in...? http://www.gimp.org Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Nick Winfield [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 9:50 AM To: PHP General Mailing List

RE: [PHP] fsockopen question

2001-04-26 Thread Matthew Luchak
I use: $fp = fsockopen("www.somewhere.com",80); fputs($fp, "GET http://www.somewhere.com/somedir/somepage.html HTTP/1.0\r\n\r\n"); to parse. Should be easily modified ________ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Origin

RE: [PHP] fsockopen question

2001-04-26 Thread Matthew Luchak
hen try the response.. ________ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Michael Conley [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 1:00 PM To: Matthew Luchak; [EMAIL PROTECTED] Subject: RE: [PHP] fsockopen ques

RE: [PHP] How to chop off a char off end?

2001-04-27 Thread Matthew DeChant
$x = "yourtexthere."; $x = substr($x, 0, -1); $x will then equal = "yourtexthere" -m -Original Message- From: Dexter [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 6:45 PM To: [EMAIL PROTECTED] Subject: [PHP] How to chop off a char off end? Using Perl , I usually say $stri

[PHP] Get the title from an HTML page

2001-04-30 Thread Matthew Ralston
I'll be loading the contents of an HTML page into a variable and I need to get the title of the from that variable. Basically I need to ge the text from in between the tags. Any ideas? Thanks, Matt [EMAIL PROTECTED] < www.mralston.co.uk /> -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] About MS SQL

2001-04-30 Thread Matthew Ralston
Think you might need to enable the ms sql server module in the php.ini file. -- Thanks, Matt [EMAIL PROTECTED] < www.mralston.co.uk /> Hassan Arteaga <[EMAIL PROTECTED]> wrote in message 7F548E90E63BD1118E4600609707771F8BEFF9@goliath">news:7F548E90E63BD1118E4600609707771F8BEFF9@goliath... Hi al

Re: [PHP] About MS SQL

2001-04-30 Thread Matthew Ralston
from what i recall there is a line (to enable ms sql server support) in the php.ini file already that just needs uncommenting. have a look right through the file...there's one for sql server 6.5 and one for 7. -- Thanks, Matt [EMAIL PROTECTED] < www.mralston.co.uk /> Hassan Arteaga <[EMAIL PROT

Re: RE: RE: [PHP] About MS SQL

2001-04-30 Thread Matthew Ralston
you might have to restart your webserver/php if it's apache you might need to recompile it or something...i've not compiled php into apache before...am using it as a cgi...so i'm not sure -- Thanks, Matt [EMAIL PROTECTED] < www.mralston.co.uk /> Hassan Arteaga <[EMAIL PROTECTED]> wrote in messa

[PHP] split and array logic

2001-05-01 Thread Matthew Luchak
x27; ', $cFile); } and it hurts.any hints ? TIA, Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Returning Lowest Number Not In Array

2001-05-03 Thread Matthew Luchak
pseudo code: for($i=-1; $i < count($my_array); $i++) { if (!in_array($i,$my_array)){echo $i; exit;} } should do it. ____ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Mike Potter [mailto:[EMAIL PROTECTED]] S

RE: [PHP] session_register()

2001-05-04 Thread Matthew Luchak
this page times. is necessary to preserve the session id # in the case that the user has disabled cookies ?> ____ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] I would be very interested in hearing of any developments with session anomilies.. Netscape®

[PHP] preg vs ereg (performance)

2001-05-04 Thread Matthew Aznoe
ar expressions, use split unless you need the functionality of preg_split. Disclaimer: I have not done exhaustive performance study of all of the possible scenarios to find discrepancies, but from my observations so far, the above conclusions have held true. If anyone has any other informati

[PHP] nslookup function ?

2001-05-04 Thread Matthew Luchak
y yet undocumented nslookup() function out there? ____ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] URL redirection

2001-05-07 Thread Matthew Luchak
http://www.somewhere.com/index.php";); exit; ?> ____ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] > Hi, > > Is there a PHP function that will redirect the current page to another url? -- PHP General Mailing List (h

RE: [PHP] OT question..

2001-05-08 Thread Matthew Luchak
Happiness is a warm gun. - John Lennon > > What luck for the rulers that men do not think. > > - Adolf Hitler Could you please remove that signature. Thanks. -Egon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] PC MAG article

2001-05-09 Thread Matthew Schroebel
I think MS is worried. They send me the mag ever month for free, and I throw it away. I never understood how sending the mag for free to people that didn't want it made anyone a living. Now that I know MS owns them, I see that making money isn't the issue, they just want the spin. -- PHP Gener

[PHP] include("../file.inc");

2001-05-11 Thread Matthew Ralston
How do you include or require a file that is above the current script in the directory hierarchy? For example how would I include or require a file whose path is "../file.inc" relative to the current script? I tried all of: include("../file.inc"); require("../file.inc"); include("/file.inc"); req

[PHP] Get the string between custom delimiters

2001-04-30 Thread Matthew Ralston
Is there a nice easy function that could be used to get a sub string that lies in between two other sub strings in one big string. For example... get the text that lies in between "" and "" (without the quotes) in the code of a web page. I'm after a function like: string getstring_between_custo

[PHP] Online HTML Editors

2001-05-14 Thread MATTHEW BOULTER
I'd settle for anyone out there to let me know any suggestions of completely online web editors (with or without HTML code access). Thanks in advance crew! ------- Matthew M. Boulter MB Productions, Pty Ltd. Brisbane, Queensland, Australia m: 0414-912-501 e: [EMAIL PROTECTED] icq: 14626936 ---

Re: [PHP] Uptime script?

2001-05-16 Thread Matthew Schroebel
Why would you want to advertise that? Seems like you would be leaking information to crackers ... - Original Message - From: Ryan Christensen <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 12:43 AM > does anyone know of a PHP script that echoes the uptime of a server (Linux) in > day

Re: [PHP] Uptime script?

2001-05-16 Thread Matthew Schroebel
If you were trying to take a machine down, it might be useful to know it. Plus it's easily faked. > It's very difficult to imagine how 'uptime' information could be used to > cause mischief... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

[PHP] dynamically naming arrays

2001-05-17 Thread Matthew Luchak
any hints on dynamically naming arrays? ie: $stuff= explode ("!", $contents); //$stuff[3] is "foo" $stuff[3]=explode("&",$stuff[4]); print_r($foo); ____ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -- PHP Genera

[PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Matthew Ralston
I've got a date stored in a MySQL database in a "DATE" field, so it is stored as "2001-05-21". How do I convert that into a more friendly date like "21 May 2001" or even "21st May 2001" for display on a web page? I've tried print date("jS F Y", $dbtable[date]); but I always get "1st January 197

Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Matthew Ralston
Thanks Papi, That works fine. Matt [EMAIL PROTECTED] < www.mralston.co.uk /> Pavel Jartsev <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Matthew Ralston wrote: > > > > I've got a date stored in a MySQL database i

RE: [PHP] Licensing??

2001-12-28 Thread Matthew Walker
Welcome to the world of free software. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Andrew V. Romero [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 9:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Licensing?? I am looking into

RE: [PHP] easy quickie..

2002-01-02 Thread Matthew Clark
_Your_ browser has a back button.. great.. There are many situations in which the back button may not be visible/available/appropriate. You may also not want to go back in your _history_, just back to the previous page - and possibly set some variables in the page request. It is far more than a "

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
Hi there, This is not a bug.. this is expected behaviour. The string would be chopped up into 3 parts because you have : 1. a string: "Follow-up To Critique of BeOS " 2. a predefined entity : "&" 3. a string: "amp; Mac OS X" There are not actually two ampersands.. you have & followed by amp; -

[PHP] Cookies In Images...

2002-01-02 Thread Matthew Walker
Can anyone give me a pointer on where to go to find out how to send cookies through images, preferably in PHP? Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.310

RE: [PHP] Cookies In Images...

2002-01-02 Thread Matthew Walker
Thanks. That's what I suspected, but I needed to make sure. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Bas van Rooijen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Cooki

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
well thats just the way XML parsers work, according to the parser, what you have there is not a single string element, you have three child elements (the parent node being the ).. two string nodes broken up by an entity node. In other circumstances, this behaviour can be very useful. Matt. ---

[PHP] More on images...

2002-01-03 Thread Matthew Walker
Related to my last question about the cookies in images, is there any way to get the referrer from the calling page without passing it as an argument to the image generation script? Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked

RE: [PHP] More on images...

2002-01-03 Thread Matthew Walker
image, and I can't assume it's php. Any advice? Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Billy Harvey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 3:25 PM To: Matthew Walker Subject: Re: [PHP] More on images... On Thu, 2

  1   2   3   4   5   6   7   8   9   10   >