Re: [PHP] Globalness of variables? Functions & subs

2001-04-26 Thread Steven Haryanto
At 4/25/2001 08:11 AM, Dexter wrote: >I see functions , are there subroutine calls. I guess >not. A function acts as a sub when it returns no value . A >sub that returns a value is a function. You probably came from Pascal or something similar, which formally separate 'function' from 'proce

RE: [PHP] translating a function from Perl to PHP

2001-04-26 Thread Steven Haryanto
At 4/26/2001 05:33 AM, ..s.c.o.t.t.. [gts] wrote: >i tried to do it myself and nearly fell off >my chair becuase PHP makes you jump through >hoops to do such a simple thing > >print preg_replace('/<%([a-zA-Z]*)%>/e', "\$mioArray['$1']", $testo); > >i never could understand why other languages

Re: [PHP] OOP and Future of PHP

2001-04-26 Thread Steven Haryanto
At 4/26/2001 12:10 PM, Yasuo Ohgaki wrote: > > What I *really* like to see in PHP is: > > > > - NAMESPACE > > - TRACEBACK INFO > > - exception (try-except block) > > - $obj->method()->anotherMethod() > > - real destructor would be nice, but not extremely important for > >the time being, due to

Re: [PHP] Wierd error messages

2001-04-26 Thread Euan Greig
Sorrry, if this wasn't clear, but the problem _has_ persisted after the reboots. Euan ""Brian S. Dunworth"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > At 03:03 PM 4/25/01 +0100, Euan Greig wrote: > >[25-Apr-2001 14:34:48] PHP Warning: Missing ] in üu v

RE: [PHP] Payflow, story continued

2001-04-26 Thread Henning Kilset Pedersen
Yup, I'm reading the other posts. But the fact of the matter is, I don't have time to wait for a new extension. I need to develop a solution *NOW*. Thus, I will continue full-steam ahead with what I'm doing. I'll gladly switch to the new extension once/if it becomes available. Regards, Henning

[PHP] Filesystem security

2001-04-26 Thread Anton G. Popov
Hi I have to set up a site for free web hosting incl. php I installed apache and php4.0.4pl1 and now the php scripts can browse the entire filesystem of the machine. Does anyone know how to fix that? 10x a lot Antt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

SV: [PHP] Filesystem security

2001-04-26 Thread Mattias Segerdahl
10x? That a CD Player speed or something!? Quit the kiddie talk, use english! -Ursprungligt meddelande- Från: Anton G. Popov [mailto:[EMAIL PROTECTED]] Skickat: den 26 april 2001 10:45 Till: [EMAIL PROTECTED] Ämne: [PHP] Filesystem security Hi I have to set up a site for free web host

Re: [PHP] MySQL problem...

2001-04-26 Thread Thimo von Rauchhaupt
Generally spoken, echo the SQL-Statement, and paste it in your local MySql Client (e.g. MySql-Font). These Frontends give you a better error, and you´ll find the problem in seconds. (hope so) ""Peter Houchin"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

Re: [PHP] Compressing an upload

2001-04-26 Thread Thimo von Rauchhaupt
"Michael Conley" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 2102328FD2ECD411879E00609737BFD105DB37@FATBOY">news:2102328FD2ECD411879E00609737BFD105DB37@FATBOY... > I am going to have a page that will be used for visitors to upload a file to > my web server. I already use gzcompress to compress so

Re: [PHP] database server comparation

2001-04-26 Thread Anuradha Ratnaweera
Slightly off topic... If you need features, postgresql is way ahead. It supports many advanced features that are not available under other systems such sub-selects, triggers, views, foreign key referential integrity, transactions and sophisticated locking (7.1 supports outer joins). It was beli

RE: [PHP] Filesystem security

2001-04-26 Thread Maxim Maletsky
Read the php.ini file and the manuals on php.net. There are some directives which can limit the parser to operate on files under a certain level. You can also disallow functions if you care. As well as what directives can be overwritten by .htaccess files. No idea where have I read all that, b

php-general Digest 26 Apr 2001 10:32:50 -0000 Issue 650

2001-04-26 Thread php-general-digest-help
php-general Digest 26 Apr 2001 10:32:50 - Issue 650 Topics (messages 50377 through 50442): Re: user login names/values 50377 by: Meir kriheli Re: translating a function from Perl to PHP 50378 by: ..s.c.o.t.t.. [gts] 50381 by: Black Dragon 50433 by: Steven Ha

[PHP] how to get var value

2001-04-26 Thread AJDIN BRANDIC
Hi, (this is just an example) I have on one page $test=1; $var1='test'; on another page I want to be able to construct variable from the value in $var1 (test in this case) and print its value. So, $newvar=$; $newvar.=echo"$var1"; now $newvar contains string '$test' but not the value of $t

[PHP] form variables: back and forth

2001-04-26 Thread meling
Hi all, Here's a snippet of a code for a spell checker that I am working on. I've done all the checking correctly, except that after checking and correcting, I have absolutely no idea how to return the modified message back to the previous form. Can anyone please help? Thanks in advance, --mel

[PHP] trouble in httpd

2001-04-26 Thread ratno wahyu
I have trouble in my httpd. I want to compile my PHP3 with MySQL and Imap support. when compile finished, httpd not be run. it's alert "..not suport gss_mech_krb5 ..." can some body help me, please. -- ___ Get your free email from www.keromail.com

[PHP] Problem with the HTTP_REFERER

2001-04-26 Thread Rosen
Hi, I have BIG problem using "HTTP_REFERER". I have two pages: main.php: Click here test.php: .somecode echo "window.location.href=\"http://$web\";;"; $web - some website. But on the $web site (some site) I can't get the REFERER !!! -- PHP General Ma

[PHP] Parse error: parser stack overflow in...

2001-04-26 Thread Christoph Hunscher
... perm.inc on line 56 Hi all, this message some ppl get when they try to connect to a mysql database. i use php3 with phplib. the problem is, when i try it over lan and with dialin over isdn, there are no probs with win95, win98, winme and nt4.0 clients. neither with ms-ie nor with netscape.

Re: [PHP] OOP and Future of PHP

2001-04-26 Thread Andi Gutmans
At 02:10 PM 4/26/2001 +0900, Yasuo Ohgaki wrote: >"Steven Haryanto" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > At 4/25/2001 09:02 PM, Reuben D Budiardja wrote: > >*SNIP* > > > What I *really* like to see in PHP is: > > > > - NAMESPACE > > - TRACEBACK INF

[PHP] Parsing HTML files from an external web server

2001-04-26 Thread James Kneebone
Hello List. I'm having a little trouble with parsing HTML files and inputting the data from the HTML file into a MySQL database. I get the following error when trying toparse the file. Warning: file("http://www.server.com/file.htm";) - No error in d:\webpages\world\lists.php on line 8 The follo

[PHP] HTTP authentication for username & password

2001-04-26 Thread Thomas Edison Jr.
How can I use the HTTP authentication which pops up that little box in the screen asking for username & password for giving access to a page in PHP? regards, T.Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.a

RE: [PHP] HTTP authentication for username & password

2001-04-26 Thread Jon Haworth
Superb tutorial on Zend: http://www.zend.com/zend/tut/authentication.php HTH Jon -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: 26 April 2001 13:03 To: [EMAIL PROTECTED] Subject: [PHP] HTTP authentication for username & password How can I use the HTTP auth

Re: [PHP] how to get var value

2001-04-26 Thread Johannes Janson
hi, by .= you assign the value to a var in this case a string. $test = 1; $var = "test"; $newvar = $$var; echo $newvar; // outputs "1" Johannes "AJDIN BRANDIC" <[EMAIL PROTECTED]> schrieb im Newsbeitrag Pine.OSF.3.91.1010426114338.17213A-10@leofric">news:Pine.OSF.3.91.1010426114338.1721

Re: [PHP] OOP and Future of PHP

2001-04-26 Thread Yasuo Ohgaki
> At 02:10 PM 4/26/2001 +0900, Yasuo Ohgaki wrote: > >"Steven Haryanto" <[EMAIL PROTECTED]> wrote in message > >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > At 4/25/2001 09:02 PM, Reuben D Budiardja wrote: > > > >*SNIP* > > > > > What I *really* like to see in PHP is: > > > > > > - NAMESPACE

Re: [PHP] OOP and Future of PHP

2001-04-26 Thread Yasuo Ohgaki
Sorry about sloppy reading. I misunderstood what he means :( It does not work. -- Yasuo Ohgaki - Original Message - From: "Steven Haryanto" <[EMAIL PROTECTED]> To: "Yasuo Ohgaki" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, April 26, 2001 4:22 PM Subject: Re: [PHP] OOP and

Re: [PHP] Problem with the HTTP_REFERER

2001-04-26 Thread Yasuo Ohgaki
You cannot rely on HTTP_REFERER, it all upto client. So I suggest to change code to handle, empty or bogus HTTP_REFERER value. Regards, -- Yasuo Ohgaki ""Rosen"" <[EMAIL PROTECTED]> wrote in message 9c912a$had$[EMAIL PROTECTED]">news:9c912a$had$[EMAIL PROTECTED]... > Hi, > I have BIG problem usi

Re: [PHP] Problem with the HTTP_REFERER

2001-04-26 Thread Rosen
The problem is thath: I don't want to reflect to "REFERRER" on the client's site. I want the REFERER on the client site to be my site ! Tnahks Rosen marinov ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 9c974s$o3n$[EMAIL PROTECTED]">news:9c974s$o3n$[EMAIL PROTECTED]... > You cannot rely

RE: [PHP] how to get var value

2001-04-26 Thread PHPBeginner.com
try $newvar = ${$var1}; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 7:53 PM To: [EMAIL PROTECTED]

RE: [PHP] Problem with the HTTP_REFERER

2001-04-26 Thread PHPBeginner.com
$HTTP_REFERER does not work with javascript this way. the value is as it would be inside your "back button", in other words, you have to CLICK on a link, then you'll see it. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeg

Re: [PHP] simple form validation

2001-04-26 Thread Pavel Jartsev
Jamie Saunders wrote: > > ... > > Right, you still with me? What I'd like to know is how to validate a text > field in an HTML form to make sure it only contains numbers. > > ... > Try this: Hope this helps. -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Problem with the HTTP_REFERER

2001-04-26 Thread Yasuo Ohgaki
It's a Browser and JavaScript issue. You would like to make your site as REFERER site with following line, right? echo "window.location.href=\"http://$web\";"; As I write previous post, it's all up to browser if it is going to send REFERER or not and it is nothing to do

RE: [PHP] Problem with the HTTP_REFERER

2001-04-26 Thread PHPBeginner.com
Just to add, as Yasuo said, $HTTP_REFERER is VERY, VERY unreliable. PHPBeginner.com logs user accesses into a database, $HTTP_REFERER is there only 30% of times. This is because: not everyone necessarily CLICKS, not every browser supports it, many are reading emails, many are typing it in et

Re: [PHP] Tough comparison problem.

2001-04-26 Thread Pavel Jartsev
"[EMAIL PROTECTED]" wrote: > > I've got two functions that return data in an array. I need to compare the > individual elements of one array against the elements of another, and do > something within an if-else statement. > > ... > If i didn't misunderstood Your question, then this double-loop

RE: [PHP] Big Problem

2001-04-26 Thread Michael Geier
in php.ini, put "/var/qmail/bin/qmail-inject" into sendmail_path -Original Message- From: Thomas Booms [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Big Problem Hi all, I'm using on my new machine (SuSE 7.0) PHP4. In one PHP4-Sc

[PHP] odbc_cursor

2001-04-26 Thread Scott Fletcher
What does the "odbc_cursor" do? How does it work when put into PHP script for odbc_connect, odbc_exec, etc. Thanks, Scott -- 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 admini

RE: [PHP] simple form validation

2001-04-26 Thread PHPBeginner.com
you can do either: ereg: if(isset($field) and !$field!='') { // first check if it was submitted at all, // you'll get errors if it isn't there $res = False; $field = trim($field); // trim it to remove any whitespaces

RE: [PHP] Tough comparison problem.

2001-04-26 Thread PHPBeginner.com
PHP3? too bad... PHP4 has a magic array_intersect (php.net/array_intersect) try to see php.net/arrays you might find what suits you. you're double loop will slow your application dramatically. but if it's the only way... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com

[PHP] writing a time to mysql????

2001-04-26 Thread Shane McBride
Here's some code that I am using to get the time that is inout from a form into mysql. It looks like I may have the format backwartds. Any ideas? "INSERT into events (e_title, e_details, start, end, s_time, e_time) values ('$title', '$details', '$s_year-$s_month-$s_day','$e_year-$e_month-$e_day

RE: [PHP] Recursive Childs

2001-04-26 Thread Krznaric Michael
Many databases can handle hierarchical SQL statements. For examples oracle uses "START WITH / connect by". eg. SELECT level L1, level_id, name FROM company_level START WITH level_id=21 CONNECT BY p

[PHP] online site builder

2001-04-26 Thread kaab kaoutar
Hi all! Is using php the right technology with which i can create an online site builder! i mean i want to enable users to create their own sites in few minutes by choosing one model of the ones proposed, the colors, etc u know like these site builders sites? if not do u thnik there are specific

RE: [PHP] writing a time to mysql????

2001-04-26 Thread PHPBeginner.com
you are inputting a real dot (.) into e_time remove it: "INSERT into events (e_title, e_details, start, end, s_time, e_time) values ('$title', '$details', '$s_year-$s_month-$s_day','$e_year-$e_month-$e_day', '$stime_hour.$stime_minute', '$etime_hour$etime_minute')"; Sincerely, Maxim Malets

Re: [PHP] online site builder

2001-04-26 Thread John Platte
kaab kaoutar wrote: > i mean i want to enable users to create their own sites in few > minutes by choosing one model of the ones proposed, the colors, > etc u know like these site builders sites? if not do u thnik > there are specific tools i may use to fullfill these? This may get you started o

[PHP] Array question

2001-04-26 Thread Mike Tuller
I am trying to pull info from an Exchange LDAP server to make a dynamically created phonebook, and am having trouble with one field. I think the problem is that the script I have has everything pulled in an array, and all but the field I am having problems with are strings. The telephoneNumber wou

[PHP] fsockopen question

2001-04-26 Thread Michael Conley
I am looking to process credit card transactions on my site. In order to do this, I need to open a socket to a particular URL. I then submit an XML string to them. They process the string and send me a response. I am going to a certain (secure) location on the site of my credit card processor

[PHP] Build problems

2001-04-26 Thread Curtis Maurand
Hello, I'm building 4.0.4pl1 on RedHat 6.2 with all updates applied. It configures OK and then when issue "make" i get: [root@fenris php-4.0.4pl1]# make Making all in Zend make[1]: Entering directory `/home/curtis/php-4.0.4pl1/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_

Re: [PHP] Transfering an image

2001-04-26 Thread Steve Werby
"Ben Quinn" <[EMAIL PROTECTED]> wrote: > I am trying to copy an image from an external server and save it to my own. > I have the following script to do this for a txt file and it works great! > > ?> > > $page = "../temp/yep.txt"; > > $date = date("http:/www.example.com/yep.txt"); > > $cartFile =

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] -Original Message- From:

RE: [PHP] fsockopen question

2001-04-26 Thread Matthew Luchak
$fp = fsockopen("www.somewhere.com",4096); here you have to check the syntax for POST and HTTPS but I THINK (hoo-boy am I ever risking ridicule) it should look something like this: fputs($fp, "POST https://www.somewhere.com/dir/app HTTPS/1.0\r\n\r\n", $xmlstring); then try the response..

RE: [PHP] fsockopen question

2001-04-26 Thread Michael Conley
It looks like that is working, but I'm not getting a response. I created the XML string and set it as $xmlstring. Then, after the fputs that you provided below (except with the URL I'm sending to) I have: fputs($fp, "$xmlstring"); Then, to receive the response I enter: $RetValue=fgets($w_socket

[PHP] math calculations query

2001-04-26 Thread sean
hi all, i have a script which selects description, price and quantity from a mysql table. i have displayed the results on a page in the form of description, price, quantity but I was wondering how best to go about calculating a total total, ie. sum of quantitys multiplied by sum of prices. Any

Re: [PHP] math calculations query

2001-04-26 Thread David VanHorn
At 08:31 PM 4/26/01 +0100, [EMAIL PROTECTED] wrote: >hi all, > >i have a script which selects description, price and quantity from a mysql >table. > >i have displayed the results on a page in the form of description, price, >quantity but I was wondering how best to go about calculating a total tot

[PHP] where are the mailing lists listed?

2001-04-26 Thread Matt Wong
Hello, The page http://www.php.net/support.php talks about many mailing lists, but I really can't find the specific email address of any of those lists. It would be really helpful if the list addresses were on that page as well. Does anyone know who this suggestion should be forwarded to? Tha

Re: [PHP] math calculations query

2001-04-26 Thread sean
oh, I am such a bone head.. but the actual question was how to calculate the totals. i have a column on my form that says $qry["price"]*$qry["quantity"] which gives me a column of totals but my question is how to total that up??? any ideas? "David VanHorn" <[EMAIL PROTECTED]> wrote in message

RE: [PHP] Filesystem security

2001-04-26 Thread ..s.c.o.t.t.. [gts]
my advice would be to disconnect the box from the internet until you understand how to properly secure it. please read the documentation and manuals before your box gets raped and pillaged > -Original Message- > From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] > Subject: RE: [PHP] F

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-26 Thread sono
I said be prepared. Not that it would happen. Considering the learning curve of linux..I think it is only fair to say that mistakes are likely to happen, in particular for a newbie. On Wed, 25 Apr 2001, B. van Ouwerkerk wrote: > > > > >Also if you are a newbie to linuxget a different machin

RE: [PHP] Filesystem security

2001-04-26 Thread Kurth Bemis
At 03:36 PM 4/26/2001, ..s.c.o.t.t.. [gts] wrote: or better yet.as in #feed-the-goats on efnet :-) christ - this is scary...people getting involved in things that they have no clue about. "i have built a rocket, but once i take off i can't figure how to land it without breaking a few bone

[PHP] mcrypt module for Win32

2001-04-26 Thread Carsten Gehling
Where can I find a win32 version of the mcrypt module? - Carsten -- 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] cell iterations in loop

2001-04-26 Thread Jack Dempsey
I'm a little unclear as to what you're trying to do, but here's my interpretation: problem 2: if it ends on a complete row... solution: put the echoing of the first and last tr's inside your conditional. When $x is initialized to 0, the if will return true, and you will output the very first tr..

RE: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-26 Thread ..s.c.o.t.t.. [gts]
the learning curve is smaller than most people think... if you are willing to learn, and refuse to be intimidated by the reputation that has been built up around linux, i doubt you'll have any problems installing and running/using it in a lot of ways, i think linux is probably a more "natural" O

RE: [PHP] where are the mailing lists listed?

2001-04-26 Thread Jack Dempsey
Are you looking for a list of the different addresses? If you move your mouse over the "yes" you'll see the link to the various sections at http://marc.theaimsgroup.com/, or you can go there, scroll to the bottom, and look in the WWW section. They're all there. -jack -Original Message- F

RE: [PHP] math calculations query

2001-04-26 Thread Jack Dempsey
initialize a total variable to 0. every time you print out a price, $total += $currentprice. at the end you'll have the total. am i misunderstanding you? -jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 3:43 PM To: [EMAIL PROTECTE

RE: [PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake
Thanks, that worked with the removal of the first " Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sen

RE: [PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake
Thanks, that worked with the removal of the first if clause for part 2 of my question, as far as part one, I will try to explain better. if you view the chunk of code in a browser you will get a table with borders number 1-43 however there will be a blank space at the end where 44 & 45 would be. h

Re: RE: [PHP] cell iterations in loop

2001-04-26 Thread dempsejn
ok, again, trying to understand "blank space"...but, try this: if you print out you'll get something i think you're referring to as blank space... try using a nonbreaking space in there...either   or a space in the code; this will force the "emptiness" to show up... -jack - Original Mess

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-26 Thread B. van Ouwerkerk
At 13:47 26-4-01 -0600, [EMAIL PROTECTED] wrote: >I said be prepared. Not that it would happen. >Considering the learning curve of linux..I think it is only fair to say >that mistakes are likely to happen, in particular for a newbie. Sure.. It can happen.. to be honest.. you don't need to instal

[PHP] --enable-trans-sid and forms

2001-04-26 Thread Boget, Chris
If you have PHP compiled with --enable-trans-sid, are the URLs that are part of the form's action supposed to be modified to include the SID? So far that's not been happening and I just want to verify that this is expected behavior. thnx, Chris

Re: [PHP] fsockopen question

2001-04-26 Thread Nuno Silva
Hi, the way i would do it looks like this: - setup stunnel (www.stunnel.org) to listen to port 10443 in the 127.0.0.1 interface and forward that to www.myprovider.com - the php script would connect to 127.0.0.1:10443 using plain text - that's it, easy and clean! :) stunnel will hapilly forwar

RE: [PHP] --enable-trans-sid and forms

2001-04-26 Thread Johnson, Kirk
Chris, I'm not sure what is supposed to happen, but what is happening for me is that a HIDDEN field is added to my form with the sid as the value: Kirk > -Original Message- > From: Boget, Chris [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 26, 2001 3:09 PM > To: Php (E-mail) > Sub

[PHP] Messaging to a simple server?

2001-04-26 Thread Andy - Interlync
Hello, I have a Java based, simple server running on an obscure port (not HTTP/HTML) that I currently use for other things. Could I cause PHP to send/receive simple text messages with that server? This has nothing to do with the Web. I'd just like to be able to 'talk' to that server with a PHP

[PHP] alter table name with php and mysql

2001-04-26 Thread Augusto Cesar Castoldi
How can I alter a table name in mysql with php? thanks, Augusto cesar Castoldi -- 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: RE: [PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake
Right, I understand that if I use it is blank space if I use   it is an empty cell right now $length is set at 42 (this is arbitrary) and there needs to be two empty cells at the end of the last row. if length is 41 I will need 3 and 40 will need 4. but if I don't know what the value of $length

Re: RE: RE: [PHP] cell iterations in loop

2001-04-26 Thread dempsejn
ah, i got it... ok, try this: $length is arbitrary... $x is your counter... do the loop as before, but each time through the loop, $loopcount++; So, if you do the loop 5 times, $loopcount == 5. Then, at the end, $length - ($loopcount*$x) gives you the amount of 's to echo. Put another for loo

[PHP] in_array() function not supported on my server... anything else?

2001-04-26 Thread Richard
Greetings.. This is how I currently check for instances of words and other: for ($i=0; $i < $total_lines; $i++){ $line_array = explode("|",$line[$i]); $swhat=strtolower($txtLinkname); $xos = array(strtolower($line_array[1]),strtolower($line_array[2]),strtolower($line _

[PHP] NEWBIE Mail()

2001-04-26 Thread Tym Rehm
I'm a newbie and I'm trying to write a program to send an email. Here is the kicker, I want to attach a Word document to the email. Could someone please help. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

[PHP] Array & Javascript?

2001-04-26 Thread Marcus Ouimet
I am trying to add a Javascript in array but it gives me an error unless certain characters are commented which makes sense, but then the Javascript won't run. Any ideas here is what I am trying: 'left', 'text' => ' '); of course the ' characters are a

Re: [PHP] NEWBIE Mail()

2001-04-26 Thread Kevin A Williams
Hi, PHP has handling of MIME types and good support for handling any type of file. First off, check the syntax at http://www.php.net/manual/en/function.mail.php Then you need to set your mail_headers, and the MIME-version must come before other MIME headers. Hope this helps - Original Mes

RE: [PHP] PHP+MS Access and/or MS SQL

2001-04-26 Thread John Monfort
Thanks, Andrew. The ODBC functions did the trick. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___+- On Thu, 26 Apr 2001, A

[PHP] Ultradev PHP Server Model

2001-04-26 Thread John Monfort
Hello everyone, I was wondering, is anyone aware of a PHP server model, for Ultradev? Or, any leads on how I can create one? I'm developing a site with PHP+MS Access+Ultradev. I wanted to use some of the Ultradev server model features (and convenience), but they only support ASP/JSP/JScr

[PHP] setting the name of the file in Save As windows

2001-04-26 Thread Black Dragon
Hi! I've done a program that send a zip file to browser. I read it on server using fopen because I've it in a private area (I can't send it directly). Now I send it to browser in this way: header ("Content-type: application/x-zip-compressed"); $fd = fopen ($filename, "r"); $data = fread( $

[PHP] xpath_eval causes Segmentation fault error

2001-04-26 Thread Grishick
I was trying the xpath expression like ancestor::* it always causes the Segmentation error by PHP (both in Apache static moduel and stand-alone executable). But expressions like ancestor::para work fine. Only when I try to get all the ancestors of the node PHP fails. Does anyone has any idea? Than

Re: [PHP] File Transfer from non-browser client using POST??

2001-04-26 Thread nik
> If I wanted to use this utility to copy a file from a users (Windows) > workstation to my (Linux) webserver, how would I do this? The program on > the users workstation will create a file called "info.txt" and place it in > c:\wow. I want it to go to my server upload.mydomain.com. How do I

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-26 Thread sono
Agreed:) hehe On Thu, 26 Apr 2001, B. van Ouwerkerk wrote: > At 13:47 26-4-01 -0600, [EMAIL PROTECTED] wrote: > > >I said be prepared. Not that it would happen. > >Considering the learning curve of linux..I think it is only fair to say > >that mistakes are likely to happen, in particular for a

Re: [PHP] alter table name with php and mysql

2001-04-26 Thread Andreas D. Landmark
At 26.04.2001 22:38, you wrote: >Hi, >check you've got a D/B connection, then use this, with the appropriate names >in the variables, or use the explicit table names if you wish. If an error >spews up, most likely the table name your trying to rename it to already >exists. Or the table you're tr

Re: [PHP] Problem in sending mail with mail() function

2001-04-26 Thread nik
Sigitas Paulavicius wrote: > "Vishak K Tomy" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello, > > I tried to send mail through the mail function but it is not > > working. I am using php version 3.0.12 under linux, following is the > > code I used t

php-general Digest 26 Apr 2001 22:33:39 -0000 Issue 651

2001-04-26 Thread php-general-digest-help
php-general Digest 26 Apr 2001 22:33:39 - Issue 651 Topics (messages 50443 through 50522): how to get var value 50443 by: AJDIN BRANDIC 50451 by: Johannes Janson 50457 by: PHPBeginner.com 50460 by: AJDIN BRANDIC form variables: back and forth 50444 b

[PHP] Sizeof a multi-dimensional array??

2001-04-26 Thread Chris Anderson
Alright, count($x) would give me the number of array elements in $x. But how can I get the count of a multi-dimensional array? Count($x[0]) doesn't seem to work. Thanks in advance Chris Anderson aka "Null" PHP Developer / Nulltech PHP-GTK Teste

Re: [PHP] Ultradev PHP Server Model

2001-04-26 Thread John Platte
John Monfort wrote: > I was wondering, is anyone aware of a PHP server model, for Ultradev? > > Or, any leads on how I can create one? > > I'm developing a site with PHP+MS Access+Ultradev. I wanted to use some > of the Ultradev server model features (and convenience), but > they only support A

RE: RE: RE: [PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake
Ok, after a few hours of messing here and there I've got it to work. you can adjust for any number of columns, and the pictures and it makes solid tables. Thanks, for all of the help \n"; for ($x=1; $x<=$pictures; $x++) { echo "".$x."\n"; if ($x % $colum

[PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-26 Thread Mig
Hello, I can't understand the reason apache server running locally on my Win98 machine delays so much to respond browser when accesing php scripts in the form http://localhost/myscript.php When I transfer php scripts to host server via FTP, script execution is immediate, even remote server being

[PHP] (SOLVED)Re: [PHP] setting the name of the file in Save As windows

2001-04-26 Thread Black Dragon
> I've tried unsuccesfully to print this header after the first header: > > header ("Content-Disposition: attachment; filename=\"WorkPlease.zip\""); > It works using: header("Content-Disposition: filename=\"WorkPlease.zip\""); I think my browser is a bit mad :) the rrf http://www.w3.org/Prot

[PHP] How to Crypt entire MySQL DataBase

2001-04-26 Thread Augusto Cesar Castoldi
I want to crypt all my database. I have in my scripts, a lot of mysql_querys, where I put and get data from the database. How can I insert crypt data in the database and then get the crypted data from database and decrypt? But I'd like to do some functions to do that. Because in case that I cha

Re: [PHP] (another) cms, but internationalized

2001-04-26 Thread Michael Kimsal
We've worked on similar, but somewhat less ambitious projects, and I will caution you on the 'easy' part of this. It will never be easy. Doesn't matter who your target audience is - you're biting off a huge project, and there will always be some people who find what you're doing too difficult or

[PHP] scripts execute as user nobody

2001-04-26 Thread Mr. Adam ALLEN.
I have a problem with my PHP scripts on my web-hot, all my php scripts are running as the user nobody (group nobody). Whenever I login via ftp/telnet I am logged in as the user asduk (group asdukgrp). The problem I have is that I cannot delete my files because the permissions on the directory is

[PHP] sending content-type header after session_start()

2001-04-26 Thread matt . wong
Hello, please correct me if I'm wrong, but it seems that in PHP 4, after calling session_start(), you are stuck with serving an HTML page. What if you want to call session_start(), but you want to send headers after the session has started? for example, I'd like to deliver a downloadable file,

Re: [PHP] Ultradev PHP Server Model

2001-04-26 Thread Andrew Hill
Check out www.interakt.ro It's beta... but functional. Best regards, Andrew On Thursday, April 26, 2001, at 06:46 PM, John Platte wrote: > John Monfort wrote: > >> I was wondering, is anyone aware of a PHP server model, for Ultradev? >> >> Or, any leads on how I can create one? >> >> I'm devel

Re: [PHP] Ultradev PHP Server Model--found!

2001-04-26 Thread John Monfort
Since I posted the questions, I thought I'll post the solutions. For those interested, UDzone.com has a PHP Server Model for Macromedia Ultradev. It's a beta copy, but it seems to work pretty well for PHP-MySQL. You can find it at: http://www.udzone.com/showDetail.asp?TypeId=3&NewsId=505

Re: [PHP] how to get var value

2001-04-26 Thread [EMAIL PROTECTED]
why don't you assign in next page like this? $newvar = $test; Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: AJDIN BRANDIC <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 26, 2001 5:53 AM Sub

Re: [PHP] Ultradev PHP Server Model

2001-04-26 Thread John Monfort
Thanks Andrew, but I found it. It's working pretty well, so far. Thanks for the help. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___

[PHP] line break

2001-04-26 Thread Gary
Hi all, I know how to get a line break in text. Is there a way to get a line break between the user agent string below? I would line to print in a column instead of a long row. TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: [PHP] line break

2001-04-26 Thread Alex Piaz
At 22:07 26/4/2001 -0400, you wrote: >Hi all, >I know how to get a line break in text. Is there a way to get a line break >between the user agent string below? I would line to print in a column >instead of a long row. Use \n\r concatening with your actual string See below: >$newfile = fopen("

Re: [PHP] line break

2001-04-26 Thread Joao Prado Maia
On Thu, 26 Apr 2001, Alex Piaz wrote: > At 22:07 26/4/2001 -0400, you wrote: > >Hi all, > >I know how to get a line break in text. Is there a way to get a line break > >between the user agent string below? I would line to print in a column > >instead of a long row. > > Use \n\r concatening with

  1   2   >