RE: [PHP] how to get var value

2001-04-26 Thread AJDIN BRANDIC
Thanks Ajdin On Thu, 26 Apr 2001, PHPBeginner.com wrote: try $newvar = ${$var1}; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: AJDIN BRANDIC

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

2001-04-26 Thread Andrew Hill
John, If you are using PHP from Windows you can use ODBC or the mssql_functions. From Linux/Unix, you should compile the iODBC Driver Manager into your PHP/Apache build, and then drop in an ODBC driver. There is a HOWTO at www.iodbc.org on compiling PHP with iODBC. Best regards, Andrew

[PHP] Tough comparison problem.

2001-04-26 Thread [EMAIL PROTECTED]
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. I'm using php3, so I don't have an actual foreach loop to pick out the array elements. Instead, I use:

Re: [PHP] Mcrypt

2001-04-26 Thread Curtis Maurand
Did I hear anyone say SSL? Curtis On Thu, 26 Apr 2001, Alex Piaz wrote: Hi All! It's my first post:-) I am working on a php web application that has to interchange encrypted data to a VB windows standalone exe. Does anybody know the best way to do it?? I am making some tests with

[PHP] Mcrypt

2001-04-26 Thread Alex Piaz
Hi All! It's my first post:-) I am working on a php web application that has to interchange encrypted data to a VB windows standalone exe. Does anybody know the best way to do it?? I am making some tests with mcrypt_module using the BLOWFISH algorithm. On the web enviromment I can encrypt

[PHP] simple form validation

2001-04-26 Thread Jamie Saunders
Hi, First of all, I've just joined this list, so here's a brief introduction. My name's Jamie Saunders, I'm an 18 year old student from the UK studying for my A-Levels. I'm currently working on a Computer Studies project for a local business which involves setting up several databases on

[PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake
I've got some code that I am creating that creates a table with a loop. and it works fine for what it is, but my question is how do I compensate for rows that aren't divisible by 5 ? i.e. the empty cells at the table. additionally if it ends on a complete row (divisible by 5) I end up with an

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

2001-04-26 Thread Kevin A Williams
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. $sql = RENAME TABLE $present_table_name TO $new_table_name

[PHP] check if an url is valid

2001-04-26 Thread Black Dragon
Hi! can you tell me how can I check if a remote files exists? I've tried with fopen, but I've a warning on STDOUT if file doesn't exists. I wouldn't redirect the STDERR to solve this problem. I could use fsockopen, but I feel that this is a bad solution. Can you tell me something that is

Re: [PHP] OOP and Future of PHP

2001-04-26 Thread Ulf Wendel
Rasmus Lerdorf schrieb: If anyone has any idea, or tricks to hide information in a variables or method in a class, or in other words, make a variable or method a private, I would really like to know. Thanks for any comments. PHP also doesn't have introspection, so there isn't a good

Re: [PHP] OOP and Future of PHP

2001-04-26 Thread Ulf Wendel
Yasuo Ohgaki schrieb: I don't use GDB, but it seems it supports traceback. How about Zend Debugger? Does it support? Anyone? http://dd.cron.ru/dbg/ ? Ulf -- Neu: PEAR Cache Erweiterung OutputCompression http://www.ulf-wendel.de/php/show_source.php?file=out_cache_com http://www.phpdoc.de

Re: [PHP] win32 dll

2001-04-26 Thread elias
not that i know...but if you can code an extension that have functions to call Win32 dlls than you solved it... I also care to know if what you asked for have a direct solution... -elias http://www.hostrix.com Patrick Lai [EMAIL PROTECTED] wrote in message 9c8d8l$uh3$[EMAIL

Re: [PHP] OOP and Future of PHP

2001-04-26 Thread Yasuo Ohgaki
Yasuo Ohgaki schrieb: I don't use GDB, but it seems it supports traceback. How about Zend Debugger? Does it support? Anyone? http://dd.cron.ru/dbg/ ? Ulf Thanks for correcting my typo, Ulf. GDB = DBG :) Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To

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

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 made

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 the nature of

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:

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

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 some of

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

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,

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

[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

[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: A HREF=test.php target= _blankClick here/A test.php: .somecode echo SCRIPT language=\javascript\window.location.href=\http://$web\;;/script; $web - some website. But on the $web site (some site) I can't get the

[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

[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

[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 :

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

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

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 - TRACEBACK INFO -

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 Future of

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 using

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 on

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

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]

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: ? $phone_nr = '54256009'; if ( ereg( '^[0-9]+$', $phone_nr )) ...ok... else ...not ok...

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 "SCRIPT language=\"javascript\"window.location.href=\"http://$web\";/script"; As I write previous post, it's all up to browser if it is going to send REFERER or not and it is

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

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 should

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

[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

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

[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',

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

[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

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

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 on

[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

[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_H

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 = fopen($page,a);

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 total,

[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?

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 [EMAIL

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]

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 machine or

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

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

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 OS

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-

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

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]]

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.

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 td/td you'll get something i think you're referring to as blank space... try using a nonbreaking space in there...either nbsp; or a space in the code; this will force the emptiness to show up... -jack -

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 install

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

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: INPUT TYPE=HIDDEN NAME=PHPSESSID VALUE=b8146b40fbc336b319eda9b7073691e0 Kirk -Original Message- From: Boget, Chris [mailto:[EMAIL

[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 td/td it is blank space if I use tdnbsp;/td 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

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 td /td's to echo. Put another

[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: ? $info_box_contents = array(); $info_box_contents[] = array('align' = 'left',

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

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,

[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

[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( $fd

[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?

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 get

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 newbie.

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 trying

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 to send mail.

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

[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 Tester

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

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 snip table width=450 border=1 align=center ?php //set this number to the columns you would like $columns = 7;

[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

[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

[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

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

  1   2   >