[PHP] Re: anyone...?

2002-08-21 Thread ::: Flavio Bastos Amiel::::::>
Well, already did, for the newbies like me the thing would go like this: first php aempresas.php 40) { ?> La Empresa no puede tener más de 60 Departamentos Haga click aqui para volver

[PHP] Re: Passing variables between servers

2002-08-21 Thread Anil Kumar K.
You cannot avoid using cookies. When you use Sessions web server is making use of cookies (unless you go for URL rewriting) which remains in the browser until one quits the browser. To tackle your situation, you can effectively make use of a database table and a session cookie: 1. set a sessi

Re: [PHP] variable variables i think... (solved)

2002-08-21 Thread Justin French
Solved it -- I *can* do what I wanted without variable variables... it was human error. Justin French on 22/08/02 4:09 PM, Justin French ([EMAIL PROTECTED]) wrote: > Hi all, > > Having trouble with the logic behind this. > > I have a dynamic SKU, and a dynamic size_range array. > > Examples

[PHP] variable variables i think...

2002-08-21 Thread Justin French
Hi all, Having trouble with the logic behind this. I have a dynamic SKU, and a dynamic size_range array. Examples: $sku = '44044'; $size_range = array('S', 'M', 'L'); Which I use to build a pull down select box: $v) { echo "$v"; } ?> Note, the select's name is just a string

Re: [PHP] Determining if a variable is blank.

2002-08-21 Thread Rasmus Lerdorf
Use trim() instead of that str_replace and then an if(empty()) On Wed, 21 Aug 2002, Jason wrote: > I have a simplistic forum, and I am trying to write some code to determine > if the message box actually contains information, because if it is blank I > obviously don't want to post it to the data

[PHP] Determining if a variable is blank.

2002-08-21 Thread Jason
I have a simplistic forum, and I am trying to write some code to determine if the message box actually contains information, because if it is blank I obviously don't want to post it to the database. The message box has the name of 'reply'. Here is the code I'm trying to use, but its not working:

[PHP] Re: Passing variables between servers

2002-08-21 Thread Garth Dahlstrom
Why not share a session DB across both servers? Since your users disable cookies you'll have a url that looks like this anyway: http://www.myPHPserver.com/index.php?sid=12345 if you wanted to maintain session state so, when redirecting to the ASP server do: header('location: http://www.myASPser

[PHP] Re: Web Site

2002-08-21 Thread Sami Mahamed
I think DSL is better than cable if you can't get a T3 line. If you want a site hosted at your home, i strongly suggest Apache(www.apache.org). Great sever tool :) Or PHP-Triad(www.phpgeek.com not sure if thats the site or not, sorry). Sorry i have no PayPal account so i can't answer that one ;

[PHP] Re: Dumb question

2002-08-21 Thread David Robley
In article <000901c2498b$ce972950$0e00a8c0@luke>, [EMAIL PROTECTED] says... > Hey guys, got a basic question for you... > > > > function getvar() > { > $vari = "bollocks"; > } > > getvar(); > echo $vari; > ?> > > > How do I make that function return the variable? > > > Thanks, > Liam

[PHP] Re: connecting to db

2002-08-21 Thread Sami Mahamed
$dbhost = ''; // MySQL server hostname $dbuser = ''; // MySQL username $dbpass = ''; // MySQL password $dbname = ''; // MySQL database name mysql_connect("$dbhost", "$dbuser") && mysql_select_db("$dbname") or $failed = "Could not connect to database."; "Jim Long" <[EMAIL PROTECTED]> wrot

[Fwd: Re: [PHP] Dumb question]

2002-08-21 Thread David Christensen
--- Begin Message --- On Wed, 2002-08-21 at 20:35, Bob Irwin wrote: > You need to declare $vari as a global variable. > > > eg; > > function getvar() > { > global $vari; > > $vari = "bollocks"; > } > > getvar(); > echo $vari; > ?> > > Best Regards > Bob Irwin > Server Admin & Web P

Re: [PHP] Help w/IMAP

2002-08-21 Thread David Christensen
Sorry all, I can't type. The reference should be "imap_header()" and also, here's a snip of the code I'm using: >>SNIP $mbox = imap_open("{localhost:143}","user","pass") or die("can't connect: ".imap_last_error()); for($i=1; $i <= 5; $i++) { $msg_header = imap_header($mbox

Re: [PHP] UPS Ship Rates avail? XML?

2002-08-21 Thread Peter J. Schoenster
On 21 Aug 2002 at 17:55, Shane wrote: > Anyone know if there is a place I can query US shipping rates from say > UPS or FedEx? Possibly through Amazon's API? I'm surprised on one has sold access to these. Back in the days when I did ecommerce:) I had carts that would use something like curl I g

[PHP] Help w/IMAP

2002-08-21 Thread David Christensen
I'm having a weird problem with the certain "date" fields using the imap_head() object in PHP4. Sorry about the long lines, but I wanted to get all the fields for imap_header() in so you could see what I mean. Index Size udate dateDate

Re: [PHP] Dumb question

2002-08-21 Thread Bob Irwin
You need to declare $vari as a global variable. eg; Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Liam MacKenzie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 22, 2002 1:27 PM Subject: [PHP] Dumb question > Hey

[PHP] Dumb question

2002-08-21 Thread Liam MacKenzie
Hey guys, got a basic question for you... How do I make that function return the variable? Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web Site

2002-08-21 Thread Justin French
on 22/08/02 1:18 PM, Jason Wong ([EMAIL PROTECTED]) wrote: >> DSL is a cheap option, although you have limited bandwidth and file >> transfers. It would be a good first step. > > Do they give you a permanent IP address? If not, you're going to have to > subscribe to some dynamic IP service so p

Re: [PHP] How Do You Protect Individual Files

2002-08-21 Thread Justin French
on 22/08/02 1:10 PM, Roger Lewis ([EMAIL PROTECTED]) wrote: > Justin, > > Thanks again. I've been doing some more research on .htaccess. The problem > I see is that it is high maintenance, i.e. I've already got a MySQL table of > users with username and password. To use .htaccess, you have to

Re: [PHP] Web Site

2002-08-21 Thread Jason Wong
On Thursday 22 August 2002 10:44, Justin French wrote: > on 22/08/02 11:41 AM, Peter Goggin ([EMAIL PROTECTED]) wrote: > > I am setting up a web site which will be hosted on my own equipmet at > > home, located in Melbourne, Australia > > I would like some general advice on two questions. > > > >

Re: [PHP] Web Site

2002-08-21 Thread Jason Wong
On Thursday 22 August 2002 10:42, Bogdan Stancescu wrote: > Just for the record, I'm sure you can Google out quite a few nasty > comments on PayPal - I remember reading some along the lines of "dear > all, I know it was much easier for you to send money via PayPal, I know > that giving up on using

RE: [PHP] How Do You Protect Individual Files

2002-08-21 Thread Roger Lewis
Justin, Thanks again. I've been doing some more research on .htaccess. The problem I see is that it is high maintenance, i.e. I've already got a MySQL table of users with username and password. To use .htaccess, you have to have a htpasswd file containing duplicate usernames and passwords, and

Re: [PHP] directory help

2002-08-21 Thread Jason Wong
On Thursday 22 August 2002 10:12, Randy Johnson wrote: > I need some help, > > I need to go through a number of directories and rename each of the files > like this > > img001 > img002 > img003 > > do dir 1 would have > > img001 > img002 > img003 > > directory 2 might have > img004 > img005 > > an

Re: [PHP] inserting info into db

2002-08-21 Thread ::: Flavio Bastos Amiel::::::>
maybe yuou could try passing the variables into an input hidden field, so you know the answer wont be uncomplete, and you insert all of them in the last page. Flavio Bastos Amiel "Rick Widmer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 01:56 PM 7/29/02

Re: [PHP] Image library

2002-08-21 Thread Bogdan Stancescu
That was my original idea - and to take things to extremes, you might even want to recurse directories: using only a couple of recursiveness levels (1-1000/1-1000/1-1000.jpg) would ensure 1 bil. files without getting more than 1000 in any singe directory. The really nice thing about this appro

[PHP] connecting to db

2002-08-21 Thread Jim Long
Hi, Just setting up a new db at a new domain and the connection script does not work. I've always been able to connect to a db using the following: Unable to connect to the " . "database server at this time." ); exit(); } The host support suggests the following: > Root as the

[PHP] anyone...?

2002-08-21 Thread ::: Flavio Bastos Amiel::::::>
Hi, im trying to do this the most automate as possible... i want this scripts to make the input as the user ask, for example "3" then, each input must have a different name, i've tried with the "for" control structure but can't get to the point. then the fields are created in a db... anyone? |

Re: [PHP] webhosting - OT

2002-08-21 Thread Justin French
You basicaly need to have the domains point to IP address within your box. This is done via a domain name server (DNS). I used to use bpc-users.org for this, but now my ISP kindly hosts xx.indent.com.au as my office server. In other words, you need someone with a DNS to point your websites

Re: [PHP] Web Site

2002-08-21 Thread Justin French
on 22/08/02 11:41 AM, Peter Goggin ([EMAIL PROTECTED]) wrote: > > I am setting up a web site which will be hosted on my own equipmet at home, > located in Melbourne, Australia > I would like some general advice on two questions. > > 1. What sort of permanent interconnect should I look at (Cable

[PHP] webhosting - OT

2002-08-21 Thread Ryan A
Hi guys, I know this is off topic but any help appreciated. I have a high speed cable connection...(I get around 100k a second on downloads) and I own a 2 domains that are not hosted...coz I cant afford hosting...is there any way I can host these 2 domains from my comp? if you can tell me ho

Re: [PHP] Web Site

2002-08-21 Thread Bogdan Stancescu
Just for the record, I'm sure you can Google out quite a few nasty comments on PayPal - I remember reading some along the lines of "dear all, I know it was much easier for you to send money via PayPal, I know that giving up on using it will considerably decrease my income, but after my [...] e

Re: [PHP] Mime types?

2002-08-21 Thread Justin French
Generally looking your browser preferences is a great help. For IE mac it's known as "helper applications", and lists what IE should do with each mime type. Justin French on 22/08/02 7:17 AM, Wm ([EMAIL PROTECTED]) wrote: > Is there a resource somewhere that would show what the various MIME

Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Andre Dubuc
Thanks again Bob, First off, the site is still being debugged off-line, and part of the problem, as you suggested is my confusion over UNIX SERVER and the Apache Server. OK. Got that. What I'm trying to do: Any file that utilizes $_SESSION variables accessed through username/password validat

Re: [PHP] Image library

2002-08-21 Thread Justin French
So hash them into groups of 1000 images 1-1000 1001 - 2000 2001 - 3000 etc etc, and just name the files 1.gif, 2.jpeg, etc etc Justin French on 22/08/02 12:41 AM, Scott Houseman ([EMAIL PROTECTED]) wrote: > Hi there. > > So what you are suggesting is using an AUTO_INCREMENT field, poss

RE: [PHP] Web Site

2002-08-21 Thread Roger Lewis
On Wednesday, August 21, 2002 6:41 PM Peter Goggin wrote < 2. I need to set up credit card payments. Has anyone any experience with < PayPal? Are there any other providers I should consider. Nothing but good to say about PayPal Roger -- PHP General Mailing List (http://www.p

Re: [PHP] Re: SeparatingWords

2002-08-21 Thread Bogdan Stancescu
Just to make a fool of myself, I'd explode the string, parse each item and implode. I'm sure it can be done through some regexp wizardry as well - probably matching something along the lines of "(^\ [A-Z])" but I'm way too retarded regexp-wise. BTW, any good online tutorials? I read through PH

Re: [PHP] How Do You Protect Individual Files

2002-08-21 Thread Justin French
on 22/08/02 2:15 AM, Roger Lewis ([EMAIL PROTECTED]) wrote: > Well, I originally searched for "protect file downloads". I also searched > "protect individual files", "protect files", "authenticate files", and on > and on. There are thousands of messages, but very few with relevant titles > or c

Re: [PHP] Session problems: "Warning: write failed: Disk quota exceeded"

2002-08-21 Thread Bob Irwin
G'day, Most likely they haven't pointed it to the right place (or maybe permissions? Doubt it would give this error for that). Session information is usually stored in /tmp on the hosting server (and on unix servers /tmp is actually a disk partition with a set size). There are a lot of applica

[PHP] Session problems: "Warning: write failed: Disk quota exceeded"

2002-08-21 Thread Beau Hartshorne
Hi, Recently, my php app has started to throw these warnings: Warning: write failed: Disk quota exceeded (122) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 I narrowed it do

[PHP] directory help

2002-08-21 Thread Randy Johnson
I need some help, I need to go through a number of directories and rename each of the files like this img001 img002 img003 do dir 1 would have img001 img002 img003 directory 2 might have img004 img005 and directory 3 would have img006 img007 img008 Thanks Randy -- PHP General Mailin

Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Bob Irwin
> Thanks Bob, > > Got a 404: File not Found. Checked the ssl_error_log as suggested, and found > a rather interesting entry: > "No such file: /var/www/html/var/www/secure/test.php" Ahhh - ok - I thought you were including them internally from PHP. You are actually linking to the file being SER

Re: [PHP] copy a string

2002-08-21 Thread Justin French
$str = "foo foo"; $str_copy = $str; // a copy of $str Unless of course you want to return a portion of a string, a certain word, a modified string, etc etc, in which case you'd need to check out all the string functions in the manual, and tell us what you wanna do. Justin on 22/08/02 1:32 AM,

[PHP] Re: Adding shadow effects to Images

2002-08-21 Thread Bogdan Stancescu
If you need "real" shadow effects (i.e. if the image data itself should contain the shadow), you can follow the suggestion below but using GD to achieve the effect by concatenating images. If you're looking for a solution to *display* the thumbnails in the page, then this is what I would do: I

Re: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Justin French
Instead of trim($str), you need: $str = trim($str); Justin French on 22/08/02 12:44 AM, Mike At Spy ([EMAIL PROTECTED]) wrote: > > But isn't taking off characters or spaces considered modifying a string? > > I'll take another look at the manual, thanks. > > -Mike > > >> -Original M

Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Andre Dubuc
Thanks Bob, Got a 404: File not Found. Checked the ssl_error_log as suggested, and found a rather interesting entry: "No such file: /var/www/html/var/www/secure/test.php" Obviously it's goes to DOCUMENT_ROOT (pre-pending the/var/www/html) and adds what I've asked for. So, how do I tell it whe

[PHP] Web Site

2002-08-21 Thread Peter Goggin
I am setting up a web site which will be hosted on my own equipmet at home, located in Melbourne, Australia I would like some general advice on two questions. 1. What sort of permanent interconnect should I look at (Cable is not available in my area). Is DSL suitable? Are there any good provide

Re: [PHP] Multiple File Uploads With a Single Input

2002-08-21 Thread Rasmus Lerdorf
That's not how rfc1867 file uploads work. You need multiple browse buttons unless you do some weird client side magic that would zip a bunch of files together and upload them as one. -Rasmus On Wed, 21 Aug 2002, Roger Lewis wrote: > Is anyone aware of any recent developments that would allow y

Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Bob Irwin
Usually the first thing you want to do here is check your error log. Most of the time, this sort of thing will be a permissions problem, as the apache server runs the PHP scripts as a user (ie you), that user needs to have the ability to execute those files. If you aren't sure, make the file own

[PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Andre Dubuc
My main files are located in /var/www/html (the 'DOCUMENT_ROOT' in Apache, according to php.ini). All sensitive files have been moved to '/var/www/secure', but now I can't access them! (According to php.ini, the PHP core 'doc_root=none'). I'm totally confused. If I understand this correctly, I

[PHP] Multiple File Uploads With a Single Input

2002-08-21 Thread Roger Lewis
Is anyone aware of any recent developments that would allow you to upload multiple files from a single . Many of the messages in the archives say that this is impossible; however, these messages are more that a year old. I would like to be able to click a browse button, select multiple files, an

[PHP] UPS Ship Rates avail? XML?

2002-08-21 Thread Shane
Anyone know if there is a place I can query US shipping rates from say UPS or FedEx? Possibly through Amazon's API? Thanks in Advance!!! -NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mime types?

2002-08-21 Thread Matt
From: "Wm" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 21, 2002 5:17 PM Subject: [PHP] Mime types? > Is there a resource somewhere that would show what the various MIME types > are? For a file upload page, I want to include .TIF, .AI, .PSD, etc., in > addition to the "st

[PHP] Adding shadow effects to Images

2002-08-21 Thread Steph
I'm trying to auto-add shadow effects to my image thumbs using PHP or the GD Library if that's even possible. Any ideas where I start? Thanks, Steph

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Rasmus Lerdorf
You don't need to modify sendmail's config, you simply need to modify how you are calling sendmail from PHP. Chances are the server you are on already flushes the queue occasionally. You'd need to try to figure out how often, perhaps simply by trial and error. Since you have no control over the

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Pupeno
Rasmus Lerdorf wrote: > Simply configure your MTA to queue requests coming from PHP. Your php.ini > file has the sendmail invocation line that is used by PHP's mail() > function. Most MTA's out there have a sendmail-like interface and most > have a way to tell it to simply queue the request and

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Rasmus Lerdorf
Simply configure your MTA to queue requests coming from PHP. Your php.ini file has the sendmail invocation line that is used by PHP's mail() function. Most MTA's out there have a sendmail-like interface and most have a way to tell it to simply queue the request and return immediately. For sendm

[PHP] Background process (sending mails)

2002-08-21 Thread Pupeno
I know this issue have been discussed a lot of times but I checked a lot of archives and documents and I couldn't find any solution. What I want to do is send a lot of mails (belive me, it's not spamming) and I thought about running the process of sending mails in background (detached from the

Re: [PHP] Re: SeparatingWords

2002-08-21 Thread Philip Hallstrom
Yes, it would and yes you can, but I'll leave that up to you :) On Wed, 21 Aug 2002, DL Neil wrote: > Philip, > What about "SoftwareVersion Thingy"? > Won't that end up as "Software Version Thingy" - with two spaces before the > "T"? > Can the RegEx be 'turned off' if the u/case letter is alrea

Re: [PHP] Re: SeparatingWords

2002-08-21 Thread DL Neil
Philip, What about "SoftwareVersion Thingy"? Won't that end up as "Software Version Thingy" - with two spaces before the "T"? Can the RegEx be 'turned off' if the u/case letter is already preceded by a space? (sorry, may not be Hessu's requirement = my curiosity) Regards, =dn > This works. > >

[PHP] Re: Mime types?

2002-08-21 Thread Joni Järvinen
If I remember correctly, there are various articles about file upload in sites such as www.phpbuilder.com, www.codewalkers.com and such. Hope that helps you get started :) -Joni- -- // Joni Järvinen // [EMAIL PROTECTED] // http://www.reactorbox.org/~wandu "Wm" <[EMAIL PROTECTED]> wrote in messag

Re: [PHP] No variables imported on form POST

2002-08-21 Thread Jason Annin-White
You are correct Bill, problem solved, thank you. Jason White - Original Message - From: "Bill Leonard" <[EMAIL PROTECTED]> To: "Jason Annin-White" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, August 21, 2002 2:13 PM Subject: Re: [PHP] No variables imported on form POST > D

[PHP] Re: SeparatingWords

2002-08-21 Thread Philip Hallstrom
This works. $word = "SoftwareVersionThingy"; $word = ereg_replace("([A-Z])", " \\1", $word); $word = ltrim($word); -philip On Thu, 22 Aug 2002, Hessu wrote: > Hi, > > I have strings like FileName, SoftwareVersion etc. > How can I add space between words? Somehow with preg_replace perhaps? > Fi

[PHP] SeparatingWords

2002-08-21 Thread Hessu
Hi, I have strings like FileName, SoftwareVersion etc. How can I add space between words? Somehow with preg_replace perhaps? First letter of each word is capitalized. -Hessu- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is there a better way of doing this?

2002-08-21 Thread Mike
-Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 4:56 PM To: Mike; [EMAIL PROTECTED] Subject: Re: [PHP] Is there a better way of doing this? Hello Mike, parse a string similar > to "4,31m)" figure out if it is numeric or not, then if it is rem

[PHP] Mime types?

2002-08-21 Thread Wm
Is there a resource somewhere that would show what the various MIME types are? For a file upload page, I want to include .TIF, .AI, .PSD, etc., in addition to the "standard" GIF and JPG types... Thanx, Wm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] No variables imported on form POST

2002-08-21 Thread Bill Leonard
Did you just recently upgrade to PHP v 4.2.x? It has changed the way it handles variables. Check: http://www.php.net/manual/en/language.variables.predefined.php on 8/21/02 5:05 PM, Jason Annin-White at [EMAIL PROTECTED] wrote: > A simple example form, there is no value $submit after a POST.

[PHP] No variables imported on form POST

2002-08-21 Thread Jason Annin-White
When I do an HTTP POST to a PHP application on my web server, it is not importing the from values as variables. For example, Enter Your Name '; } ?> A simple example form, there is no value $submit after a POST. I eve tried making an app that just echos $HOM

Re: [PHP] Is there a better way of doing this?

2002-08-21 Thread DL Neil
Hello Mike, parse a string similar > to "4,31m)" figure out if it is numeric or not, then if it is remove the > last to characters on the string (the 'm)') and change the string so > that it is 4.31. There is probably a better way of doing this but I > can't figure out how to make it better or mo

[PHP] executing php at shell level...

2002-08-21 Thread Kelly Meeks
Hi folks, Having a strange problem... I've got a php script named 'phptest' with the following code: #!/usr/bin/php -q I've set the permission on the file to 755, and am executing the file by typing: ./phptest var1 var2 var3 The only output I get is NULL. No matter what I do, I can't seem t

Re: [PHP] Calendar logic question

2002-08-21 Thread Brent Baisley
You know it's been done before by many the many calendar systems out there. You really just want to store the event once and you wouldn't want to even replicate the event ID out to whatever date. I would search the php class libraries and free software to see how they did it. I'm someone has d

RE: [PHP] Re: Passing variables between servers

2002-08-21 Thread MET
http://www.w3.org/TR/SOAP/ ~ Matthew -Original Message- From: Mark McCulligh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 4:14 PM To: Jay Blanchard Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Passing variables between servers I have thought about this also, but I need

[PHP] Re: copy a string

2002-08-21 Thread Carsten Mohr
Hi, there is a JavaScript-command to 'simulate' ctrl-v. It's exec.Command("paste"); so I'm quite sure that there is also a command like exec.Command("copy"); but this works for MSIE only in newer versions (5.5 and higher) this is not possible because this "security-bug" was fixed Greetings Cars

Re: [PHP] Re: Passing variables between servers

2002-08-21 Thread Mark McCulligh
I have thought about this also, but I need the variables in the ASP session and I don't have the time line to rewrite the ASP pages over in PHP. The current ASP app took a year to develop. I have thought about having PHP on both servers and having the PHP on the 2000 server just save the variabl

RE: [PHP] copy a string

2002-08-21 Thread MET
You want to copy a string to do what with it? This answer to this would help all of us help you. ~ Matthew -Original Message- From: Oskar Hermansson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: [PHP] copy a string Hello! Is ther

[PHP] test

2002-08-21 Thread Trout, Travis
Travis Trout Production Support Mobile Register Phone: (251) 219-5263 Email: [EMAIL PROTECTED] Address: 401 N Water St. Mobile, AL 36602

Re: Re[3]: [PHP] still problems with register globals set to on

2002-08-21 Thread Andy
Yeeahhh! Thanks Tom. Works great. It was just a small error causing this much trouble. For turning register globals on it is: php_flag register_globals on Cheers, Andy "Tom Rogers" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Wednesday,

[PHP] Is there a better way of doing this?

2002-08-21 Thread Mike
Hello all, You have been lots of help in the past, so I was wondering if you could help me out with this, basically I just have to parse a string similar to "4,31m)" figure out if it is numeric or not, then if it is remove the last to characters on the string (the 'm)') and change the string so th

RE: [PHP] Re: Passing variables between servers

2002-08-21 Thread Jay Blanchard
[snip] The session variables are need on both server for authorization needs. The two servers host two separate Intranet apps and I am trying to join the two together into one Intranet app. The variable will be used on both sides. The reason I don't what to use cookie is your users keep disablin

[PHP] copy a string

2002-08-21 Thread Oskar Hermansson
Hello! Is there any function to copy a string into the computers memory (just like you do when you press "ctrl + c" in, for example Internet Explorer). Is there any way to do this, just using PHP or JavaScript? Maybe by using the function system()? Note that i dont want to copy a file, just a str

[PHP] testing

2002-08-21 Thread Sami Mahamed
just a test. -Sami -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Passing variables between servers

2002-08-21 Thread Mark McCulligh
The session variables are need on both server for authorization needs. The two servers host two separate Intranet apps and I am trying to join the two together into one Intranet app. The variable will be used on both sides. The reason I don't what to use cookie is your users keep disabling them.

Re: [PHP] Passing variables between servers

2002-08-21 Thread Mark McCulligh
I have read this arcticle too, and yes it will work for PHP to ASP but I have never came across a ASP version like this function to send the information from ASP to PHP. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCana

Re: [PHP] problem with PostgreSQL

2002-08-21 Thread Ray Hunter
Sorry Adam, I just realized that you are totally correct...damn brain farts or something... excuses my stupidity -- RAY HUNTER - Original Message - From: "Adam Williams" <[EMAIL PROTECTED]> To: "Ray Hunter" <[EMAIL PROTECTED]> Cc: "PHP GEN" <[EMAIL PROTECTED]>; "Richard Kurth" <

Re: [PHP] problem with PostgreSQL

2002-08-21 Thread Ray Hunter
Good call on that Adam... One thing to note is that when you call the postmaster here you are calling it with the pg_ctl command...so it is beneficial to pass the postmaster options to the pg_ctl command...like so... su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -o '-i' -D $PGDATA -p /usr/bin/p

Re: [PHP] problem with PostgreSQL

2002-08-21 Thread Adam Williams
Just to throw my $.02 in, if you are running an RPM based linux distribution on your server (such as RedHat), edit your /etc/rc.d/init.d/postgresql file and look for the code in it: # Check for postmaster already running... pid=`pidof -s postmaster` if [ $pid ] the

[PHP] RE: Image library

2002-08-21 Thread Philip Hallstrom
> [snip] > > Having a large number of files in a single directory does affect > performance, > > the degree of which depends on the filesystem. > > This is generally accepted wisdom for dealing with large numbers of files - > but what number is considered "large"? > Any rules of thumb, for differe

Re: [PHP] problem with PostgreSQL

2002-08-21 Thread Ray Hunter
Basically, That is your problem here: > [Wed Aug 21 11:06:56 2002] [error] PHP Warning: pg_pconnect() unable to connect to PostgreSQL server: PQconnec > tPoll() -- connect() failed: Connection refused > Is the postmaster running (with -i) at '127.0.0.1' > and accepting connectio

[PHP] Re: PHP Web site down?

2002-08-21 Thread Sami Mahamed
it seems to be just your network, me and a couple of friends on differnt networks were just talking about that place :) works fine for us! -Sami "Adam Williams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is it just me having network connectivity problems,

[PHP] problem with PostgreSQL

2002-08-21 Thread rdkurth
Can somebody tell me what this mines in my error log I have PostgreSQL compiled in to php so that should not be the problem PHP Warning: Function registration failed - duplicate name - pg_connect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - pg_pconnect in

[PHP] Re: Passing variables between servers

2002-08-21 Thread Seairth Jacobs
Is there any reason to pass the data to the ASP server other than the need for the ASP server to pass it back in case the PHP server session has expired? If not, why not just store the login information in a local table referencable by a primary key that you pass around instead? You could even d

Re: [PHP] Passing variables between servers

2002-08-21 Thread Seairth Jacobs
MD5 is a one-way hash. There is no way to get information back out of it. If he keeps a copy of the hash locally to comare instead of the original password, this is still as vulnerable as using the original password in this case. The only thing it would protect from is making available the origi

[PHP] Calendar logic question

2002-08-21 Thread Matt Schroebel
I have a calendar application that shows events in a month. I want to add the ability to have re-occuring events. I've been thinking about how to do that, but it's not seeming to be too easy. Say, I have a table of re-occuring events: eventId int eventName varchar eventStartDate date eventE

RE: [PHP] Passing variables between servers

2002-08-21 Thread Jay Blanchard
[snip] I thought about encrypting the whole querystring then decrypting it on the other server, but I wanted to keep the address bar clean. I wanted the user not to know they just got passed. If all a sudden there was a lot of data in the address bar they will wonder what it is for. [/snip] How

RE: [PHP] Passing variables between servers

2002-08-21 Thread Daniel Masson
Hi !! I know you said you cont want to use cookies ... I suggest that place encrypted data in a cookie and in the win2000 machine place a php script that read the data in the cookie, uncryptit and some how set the info for the asp script, a plain text file or something ... I hope this is useful

Re: [PHP] Passing variables between servers

2002-08-21 Thread Mark McCulligh
I thought about encrypting the whole querystring then decrypting it on the other server, but I wanted to keep the address bar clean. I wanted the user not to know they just got passed. If all a sudden there was a lot of data in the address bar they will wonder what it is for. Mark.

Re: [PHP] Passing variables between servers

2002-08-21 Thread Adam Williams
Just suggestion but why not use md5($password) and then send the result of that in your GET? Adam On Wed, 21 Aug 2002, Mark McCulligh wrote: > I have two server. One running PHP/Linux the other running ASP/2000. > The user logins into the PHP server and session variable

[PHP] Passing variables between servers

2002-08-21 Thread Mark McCulligh
I have two server. One running PHP/Linux the other running ASP/2000. The user logins into the PHP server and session variables are made to hold their username, password, department, etc.. The site from time to time redirect the user to the ASP server. I want to pass the session variable across

RE: [PHP] unable to lookup host [1001] error

2002-08-21 Thread David Buerer
Here is the code per your request mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 9:42 AM To: David Buerer Subject: Re: [PHP] unable to lookup host [1001] error Show the code and we might be able to help better... maybe line 20-35 ish, or anything you feel useful thx Andrew - Or

RE: [PHP] Image library

2002-08-21 Thread Jay Blanchard
[snip] > Having a large number of files in a single directory does affect performance, > the degree of which depends on the filesystem. This is generally accepted wisdom for dealing with large numbers of files - but what number is considered "large"? Any rules of thumb, for different OpSys/file s

[PHP] Re: Image library

2002-08-21 Thread Philip Hallstrom
Lots of good ideas. One other thing to consider when designing this is the possibility of multiple web server accessing a single database server. If you use the file system method which assumes that the web/db are on the same server as soon as you want to have multiple web servers you'll run int

RE: [PHP] PHP and Windows Active Directory...

2002-08-21 Thread Roedel, Mark
> -Original Message- > From: Glenn Sieb [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 11:30 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP and Windows Active Directory... > > > I know that *ahem* "theoretically" Active Directory uses > LDAP... has anyone had any luck g

  1   2   >