Re: [PHP] Reliability of sessions

2002-04-04 Thread Thomas Deliduka

I use them because 'sid' isn't always populated and, who knows, some browser
may not handle cookies right and then lose a session. I do it to make sure,
to be absolutely sure that it will work.

On 4/4/02 5:19 PM this was written:

> If you made your link like this:   it tacks
> on the name plus the session id.  If cookies are enabled you will only see
> the session id passed through the url on the first page.. After that you
> wont, thus the little script I wrote so the '?' doesn¹t show up.  Now if
> cookies arent enabled you will see the session name and id passed through
> the url every single time.  There is absolutely no reason to use those
> functions since php takes care of that stuff for you.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Reliability of sessions

2002-04-04 Thread Thomas Deliduka

On 4/4/02 4:56 PM this was written:

> How do you pass session IDs via strings? Can you describe in few words
> please?

Well, I know that SID is a defined constant (see session functions in the
online PHP manual) but just to be sure, I created my own functions:

function sessinfo() {
return session_name() . "=" . session_id();
}

function sessfield() {
echo "\n";
}


I use 'session_name()' rather than PHPSESSID because some webmasters may
change the PHP.ini file's definition for the session name.

Then whenever I make a URL link in my site I do

my link

Of course, the sessfield function is for passing the session ID via a form.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Reliability of sessions

2002-04-04 Thread Thomas Deliduka

On 4/4/02 4:46 PM this was written:

> I am not sure about the reliability of sessions, but the way I do it is
> also through several processes, and the information passed via  type=hidden name=name value=$name> I can demonstrate it if you want.

That's what I was wanting to avoid. That's a lot of hidden fields. Not to
mention if you  have to add to the first step, you need to modify all the
others.

> Even though sessions are more handy, I still don't know what happens if
> cookies are disabled in the client's browser.

I pass the session ID in the URL on every page so whether or not cookies are
set, the session stays intact.

I'm thinking that I solved my old problem and I'm going to do it in the
database and pass the order number. That's probably the best way. I only
have to provide for order clean-up for those that started the process and
decided not to check out.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Reliability of sessions

2002-04-04 Thread Thomas Deliduka

I have a quick question for a veteren of sessions out there.

We're building a shopping cart and I'm playing with the idea of keeping the
checkout information such as Shipping and billing address in a session
variable until I retrieve it at checkout.

The checkout is a step process:

Shipping info -> billing info -> confirmation -> final.

At shipping and billing the information would be stored in a session
variable. To be retrieved at confirmation, etc.  (cc information would be
encrypted before storing in the session var.)

Otherwise I could possibly create the order starting with shipping info in
the database and merely pass the order number that is assigned to them.

What is the opinion, are sessions reliable enough to go through the step
process?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: PHP 4.1.0 released

2001-12-11 Thread Thomas Deliduka

On 12/11/2001 4:22 PM this was written:

> Yeah, and waiting till Zend is bringing out a working version of Optimizer
> for
> that PHP version ! :)

It's out Version 1.2.0

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Zend Optimizer Gui?

2001-12-11 Thread Thomas Deliduka

I am looking at the documentation for the zend optimizer and I see nothing
about this (perhaps not looking hard enough?)

The installation had me set a password for the Optimizer gui Interface. What
is this? How can I get to it?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Searchengine friendly URLs

2001-10-26 Thread Thomas Deliduka

I found several problems with managing this. All links on the page CANNOT be
relative (i.e. HREF="filename.php/var/var/var" it must be
HREF="/filename.php/var/var/var" or with the full path. Otherwise your
browser will try to attach the filename to the end of the long querystring
you created.  Unless someone on this list knows of a way around that.

As for a form, say the resulting form of a searchbox. If you want the form
to be a 'GET' form so people can see the querystring I created a file which
made that happen. You POST to the form with a hidden variable in there
containing the actual destination. The code is here:

 
>   Search engines don't normally reach anything on a query string (whatever's
> after a ? ).  So, if you're passing variables from one page to another, you
> can use a spider-friendly method by changing your URL from something like
> http://host/script?var1=1&var2=2 to something like http://host/script/1/2.
> Then you can extract the variables through the $PATH_INFO variable.
> 
>   This was discussed a while back when I posted this same question.  Look
> through the archives and search for subject topic "Submitting variables via
> /'s"...
> 
>   You may also want to read the following article:
> 
>   http://www.zend.com/zend/spotlight/searchengine.php

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Looking for a text editor for Mac

2001-10-25 Thread Thomas Deliduka

On 10/25/2001 3:51 PM this was written:

> Out of curiosity, what's wrong with BBEdit, that'd be my choice.  It has
> color syntax highlighting for PHP, and is IMHO, the best editor on MacOS.
> Another one I used briefly was Alpha.  So, if BBEdit isn't to your liking,
> maybe check out Alpha.  I don't know if Alpha is still being kept up or not,
> but it was quite good in the past (I don't know if Alpha has PHP color
> syntax highlighting or not).

I find Pepper to be totally awesome and I use it regularly.

It has syntax styling and it's also ready for OS X (as is BBEdit).

http://www.hekkelman.com/pepper.html

It also can be used in conjunction with other programming applications (as I
think BBEdit, not sure) like Code Warrier.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] getting data from form...

2001-10-18 Thread Thomas Deliduka

Well the form has to submit to the other file. Normally with default PHP
configurations it will automatically make the variables $Steak, $XYZ, and
$CHIPs with the corresponding values IF the checkboxes are checked. If it's
not checked nothing is set.

So you can do this on the receiving page:

If (!isset($Steak)) $Steak = 0;
If (!isset($XYZ)) $XYZ = 0;
If (!isset($CHIPs)) $CHIPs = 0;

Remember that variable names are case sensative.

On 10/18/2001 4:48 PM this was written:

> I have file .
> 
> index.php3 a form in it ...
> 
> 
> 
> 
> 
> and how to make it that form.php3 will read all the data that was submitted
> (i'm mean the name and the value)

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Classified Ad system (was: MySQL vs Flat File)

2001-10-17 Thread Thomas Deliduka

On 10/17/2001 6:11 PM this was written:

> Thomas Deliduka wrote:
> 
>> On a related note, does anyone here know of a GOOD program in PHP to do
>> classified ads?
>> 
> I just picked up November 2001 Web Techniques today and it has an
> article you can check out for a classified ad system. I haven't played
> with it yet and so can't vouch for its usefulness.
> 
> http://www.webtechniques.com/archives/2001/11/argus/
> 
> Kris O.

Thanks, I'll check it out!
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Re: popup window under php

2001-10-04 Thread Thomas Deliduka

You could also wait for the page to load and then invoke the JS by putting
an onLoad="function_name()" in the 'BODY' tag of the document.

On 10/4/2001 3:58 PM this was written:

> [EMAIL PROTECTED] (Tim Sawyer) wrote:
> 
>> I want to open a popup window under php control. So lets say I have an
>> if statement which if true opens the window.
>> 
>> if ($something) {
>> JavaScript:window.open("test.php",blah...);
>> }
>> 
>> Guess I'm saying that I want to call a Javascript function without the
>> user clicking on anything.
> 
> you need to put tha javascript in 

Re: [PHP] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

I just tried this here below. Before trying this I changed any called to
$PHPSESSID to session_id().

I turned off cookies
Loaded the page... Created session id and file:
sess_44074d3a54862b480c3407c9eb373f77
Contents: var1|s:8:"My var 1";var2|s:8:"My var 2";

I submitted the form:
PHPsessionid shows up as: 2f633e17c6752342d0c1e7e6191b4112
New file with same name contents: var3|s:8:"My Var 3";

I removed index2.php and went back to the first file.
PHP SessID shows up as 68b482365d9086068edfa3e35d8dd41d
Corresponding file with contents: var1|s:8:"My var 1";var2|s:8:"My var 2";

This is different then what I previously said.

But it's clear to me that each time session_start() is called, it doesn't
open the existing session rather it creates a new one.

When I click the 'try this link' instead when starting over. It still
creates a new session ID on the server.


On 9/24/2001 1:31 PM this was written:

> OK, do you have access to your /tmp directory? If so, close your browser,
> then open it and request your index page. Now sort the files in /tmp by
> creation time, to find the newly created session file. Look at its contents,
> and see if the 2 variables have values assigned to them in the file. Do this
> before you click submit on index.
> 
> BTW, I don't think $PHPSESSID is ever defined on the first request. Instead,
> you can do this to see the new session ID on the first page. That will also
> help you find the correct session file to inspect.
> 
> echo "session id is " . session_id() . "\n";

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

Yeah, I think it's my server setup, or something I have going on on my
server because others have said that it works fine for them but not on my
machine.

I'm running red hat linux 6.1 apache+mod_ssl 1.3.20

On 9/24/2001 2:08 PM this was written:

>> 
>> Then I will reload the first page again by erasing index2.php and
>> hitting enter and it will display a new sess id number and show the
>> first page, as normal but that sessid number is equal t the new
>> session created on the server and the value of it is:
>> 
>> var3; var1; var2
>> 
>> This is stranger than strange.
> This isn't so strange. The session id is stored in a cookie.
> 
> But.. I turned off cookies (debuging can be done much easier), and
> played a little.
> I found that the session is created properly on the first page and
> the 2 variables are registered too.
> But on the second page they aren't set on the first view (that's
> stange!).
> If I reload the page (of course the same sid is in the url), the 2
> variables this time are set, with their value that were given on the
> first page (that's why I told above they were registered, and their
> values are stored properly, so it's not a problem of rights, session
> save paths, etc..)
> So that's what I've found, but I have to go home now sorry.
> On the other hand the 2 source file you've sent me worked fine on my
> computer, without any problems (and warnings).

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

Thank you everyone for your continued help with this. It's still not fixed
but I have to leave to a dr. appt. I hope that most--If not all--of you are
on when I get back.

I just wanted to alert you as to why I wouldn't be responding to your
questions/messages.

Here is the last information I sent Tamas:

I find as exepcted, it's creating a new PHPSESSID every time I post to the
index2.php

As I mentioned in the first e-mail, it ust creates a new session. But this
is something I find interesting.

I start the session for the first time, it regsiters var1 and var2.

Then I post to the next page, the PHPSESSID values are posted perfectly fine
but on the server a new session with a different vale is created with var3
in it.

Then I will reload the first page again by erasing index2.php and hitting
enter and it will display a new sess id number and show the first page, as
normal but that sessid number is equal t the new session created on the
server and the value of it is:

var3; var1; var2

This is stranger than strange.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 1:18 PM this was written:

>> OK, now the session ID is getting passed like it should. Now for the two
>> missing variables. Try moving the two assignment statements ahead of the two
>> session_register() calls - "assign, then register". I have never seen this
>> make a difference, but the pros on this list say that is the way it needs to
>> be done.
> 
> Done, I switched the four lines around.

Same result.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 1:15 PM this was written:

> OK, now the session ID is getting passed like it should. Now for the two
> missing variables. Try moving the two assignment statements ahead of the two
> session_register() calls - "assign, then register". I have never seen this
> make a difference, but the pros on this list say that is the way it needs to
> be done.

Done, I switched the four lines around.


Session Page 1




PHPSESSID: 
Var1: 
Var2: 


Passing sessid: 
VAR 3:  


Try this link



-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 1:05 PM this was written:

> On Monday 24 September 2001 18:51, Thomas Deliduka wrote:
>> I'm finding my script on www.fromtheduke.com/session/ still doesn't
>> work even with the  in the link or passing it along in the
>> form.
> Please send us your latest code again, then we can help you, not just
> guessing what you've might done.

Latest code:
index.php:


Session Page 1




PHPSESSID: 
Var1: 
Var2: 


Passing sessid: 
VAR 3:  


Try this link




index2.php:


Session Page 2




PHPSESSID: 
Var1: 
Var2: 
VAR3: 



-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

I'm finding my script on www.fromtheduke.com/session/ still doesn't work
even with the  in the link or passing it along in the form.

On 9/24/2001 12:49 PM this was written:

> On Monday 24 September 2001 18:39, Thomas Deliduka wrote:
>> On 9/24/2001 12:32 PM this was written:
>>>> After reloading IE on the PC now the SID constant doesn't
>>>> echo anything at
>>>> all.
>>> 
>>> SID is always defined on the first page request. It is only
>>> defined on later page requests if cookies are disabled in the
>>> browser.
>> 
>> So, I shouldn't use that if I'm depending on SID to display on
>> pages to pass the session ID.  Or what, disable cookie support in
>> my php.ini?
> No, SID constant is especially usefull when you don't know if the
> user accepts cookies or not. SID will have a real value (e.g.
> PHPSESSID=lk123s) when you should add it to the url, and will
> have an empty value when you don't need to deal with it (because it's
> been stored in cookie).

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:39 PM this was written:

> Try these changes:
> 
> session.cookie_lifetime   = 0
> session.use_trans_sid = 1
> 

I see no changes to my problems.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:39 PM this was written:

> Try these changes:
> 
> session.cookie_lifetime   = 0
> session.use_trans_sid = 1
> 
> Also, what version of PHP are you using?

PHP: 4.0.6

In the past I had problems with trans_sid with urls that already had
querystrings being passed. They would mess up the querystrings, has that
been fixed?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:32 PM this was written:

>> After reloading IE on the PC now the SID constant doesn't
>> echo anything at
>> all.
> 
> SID is always defined on the first page request. It is only defined on later
> page requests if cookies are disabled in the browser.

So, I shouldn't use that if I'm depending on SID to display on pages to pass
the session ID.  Or what, disable cookie support in my php.ini?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:28 PM this was written:

> Perhaps you could post the [Session] section of your php.ini file. It
> appears that session.cookie_lifetime is not set to 0, which is what you want
> for a session cookie. Perhaps we can find another setting that needs a
> change.

My php.ini:

[Session]
session.save_handler  = files
session.save_path = /tmp

session.use_cookies   = 1
session.name  = PHPSESSID

session.auto_start= 0
session.cookie_lifetime   = 3600

session.cookie_path   = /
session.cookie_domain =
session.serialize_handler = php

session.gc_probability= 1

session.gc_maxlifetime= 1440

session.referer_check = 0

session.entropy_length= 0
session.entropy_file  =
; session.entropy_length= 16
; session.entropy_file  = /dev/urandom
session.cache_limiter = nocache

session.cache_expire  = 180


-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

After reloading IE on the PC now the SID constant doesn't echo anything at
all.

On 9/24/2001 12:28 PM this was written:

> On 9/24/2001 12:28 PM this was written:
> 
>> On Monday 24 September 2001 18:20, Thomas Deliduka wrote:
>>> On 9/24/2001 12:22 PM this was written:
>>>> Try to use constant SID, maybe that will work, and it is more
>>>> likely that it will work on other intallations with other session
>>>> variable names.
>>> 
>>> I just tried using SID in my index.php and there is nothing that
>>> displays. Hmmm.
>> The try this link almost works for me. You just forget the ? sign
>> before the SID.
> 
> I guess I did. But hey.
> 
> On internet Explorer for the PC I get the proper 'try this link' value. Not to
> mention that I get a warning above that PHPSESSID doesn't exist.
> 
> But on IE for the Mac PHPSESSID above prints out fine but the 'try this link'
> HREF has not PHPSESSID. I used  to echo it and it doesn't show up.
> 
> What is up with that?! is this platform specific?!

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:28 PM this was written:

> On Monday 24 September 2001 18:20, Thomas Deliduka wrote:
>> On 9/24/2001 12:22 PM this was written:
>>> Try to use constant SID, maybe that will work, and it is more
>>> likely that it will work on other intallations with other session
>>> variable names.
>> 
>> I just tried using SID in my index.php and there is nothing that
>> displays. Hmmm.
> The try this link almost works for me. You just forget the ? sign
> before the SID.

I guess I did. But hey.

On internet Explorer for the PC I get the proper 'try this link' value. Not
to mention that I get a warning above that PHPSESSID doesn't exist.

But on IE for the Mac PHPSESSID above prints out fine but the 'try this
link' HREF has not PHPSESSID. I used  to echo it and it doesn't show
up.

What is up with that?! is this platform specific?!
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:22 PM this was written:

> Try to use constant SID, maybe that will work, and it is more likely
> that it will work on other intallations with other session variable
> names.

I just tried using SID in my index.php and there is nothing that displays.
Hmmm.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

I see I'm relying on cookies in my code. Lemme see if I can pass it. Thanks.

On 9/24/2001 12:11 PM this was written:

> I dont see where the SID is being passed to the next page. I recently
> struggled through getting sessions to work, and for me I had to send SID
> myself manually, the server wouldn't send it via a cookie.
> 
> 
> I have mine set up a little differently, something like
> 
> 
> 
> //index.php
>  session_register("var1");
> session_register("var2");
> $var1 = "the session...";
> $var2 = "worked";
> ?>
> 
> 
> Go to page two
> 
> 
> 
> //index2.php
>  session_start();
> 
> echo "var1 is $var1 and var2 is $var2";
> 
> session_destroy();
> ?>
> 
> ---
> 
> You can also send the SID in a form via
> 
> 
> 
> I use the constant SID and the shorthand  because that is what is
> recommended and demonstrated on php.net

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

I see I'm relying on cookies in my code. Lemme see if I can pass it.

On 9/24/2001 12:04 PM this was written:

> I had the exact same problem.. don't know if you had this advice yet or not
> but what I did is when I started a session I would grab the session id for
> that session and put it in a variable and then just pass that session id
> everywhere I went.. turn on the trans_id or add the session id to the end of
> every link so it gets pass throughout all the links/forms you have on the
> site.
> 
> start_session();
> $SID = session_id();
> 
> That's what I do and then I just pass the $SID on all the links and forms
> and it works for me.
> 
> Hope that helps or is at least something new for you to try.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:02 PM this was written:

> Dont use sessions, they are a little flaky anyway.  Use a mixture of holding
> data in database and passing sid/userid/hash around on the URL.  You wont
> regret
> it.

That's what I do. Except I want to install:

http://www.phplinks.org/

Which requires them.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Thomas Deliduka

I have written here several times on this subject and in the end those who
have gratiously helped me have ended up just telling me they have no clue
why it doesn't work. It HAS to be my server setup but I don't know what it
could be.

Sessions just don't work on my machine...

The heart of the problem is the session_start() function.

The first time you start a session with this function it creates a new
session, that's fine.

The problem happens when it's run and no matter if the SSID is in a cookie
or passed via a form, it will still create a new session, every single time.
It will not pickup the old session.

Here is the app I setup to demonstrate the problem:

http://fromtheduke.com/session/

The first page initiates the session, the variable is posted to the next
page, the next page should retrieve the session and display the first two
variables which were registered in the session, then display the third var.

You'll see the third var showsup, the first two don't.  The session ID may
or may not remain the same. If you manually remove the index2.php file and
reload the first page, the SSID will have changed.

Source of the files:
index.php:


Session Page 1




PHPSESSID: 
Var1: 
Var2: 


VAR 3:  




--

Source of index2.php:


Session Page 2




PHPSESSID: 
Var1: 
Var2: 
VAR3: 



--

I have tried session_name() to force the session ID. I was told though this
function doesn't set the SSID. It gives the SSID a name or something.

I have been told this is all setup correctly, yet, you can see it doesn't
work.

The permissions on my /tmp directory look like this:

drwxrwxrwt  /tmp

Does this have anything to do with this? I don't know much about the
permissions part of things.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] num2string wish list

2001-09-22 Thread Thomas Deliduka

I don't know if this exists already, I'm looking for it but I'm not coming
up with much of anything.

Basically, a function to take a number and convert it to a string:

1 converts to "one"
365 converts to "three hundred sixty-five"

This would be awesome for me.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-09-21 Thread Thomas Deliduka

On 9/21/2001 5:49 AM this was written:

> dot.com crissis reaches me!!
> I've been fired, anyway I'll be in that nice PHP list
> 
> (any job for me?)

I feel for you. We were kinda put on notice that if things don't change we
could get salary cuts or job cuts.  I don't believe I'll lose my job, I'm
the only one here that manages the systems but a salary cut could put me in
some financial straits, I'm already barely making it. I'm sure losing your
job altogether is even worse though, I'm not knocking it.

I applied to the CIA last night, they're going to need extra help in the
coming years!  It should be interesting, it probably won't come to anything.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] closing persistance connection

2001-09-20 Thread Thomas Deliduka

On 9/20/2001 5:56 PM this was written:

> How to close persistance connection to MySQL server ?

You don't, they stay open for a certain amount of time, not sure how long..
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Have y'all seen this?

2001-09-14 Thread Thomas Deliduka

This is a pretty funny article:

http://www.bbspot.com/News/2000/6/php_suspend.html

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] equivelant of ASP's #include file?

2001-09-13 Thread Thomas Deliduka

Although, I must note that include() doesn't work quite the same as the ssi
#include

I think require() works much better

Read about the two differences:

http://www.php.net/require
http://www.php.net/include
 (these will redirect to the proper manual page.)


On 9/13/2001 10:32 AM this was written:

> At 10:21 AM 9/13/2001, LRW wrote:
> 
> I believe that that is server side includes...NOT asp..i could be wrong tho
> 
> the PHP equiv is include('')
> 
> read the manual -
> 
> ~kurth
> 
>> Hi all. PHP newbie here.
>> There's a code that one can use in ASP that will print to the browser the
>> contents of an ascii file:
>> 
>> 
>> 
>> Can anyone tell me what the PHP equivelant might be?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-09-10 Thread Thomas Deliduka

On 9/10/2001 10:08 PM this was written:

>   Some people have reported problems with cURL and PHP v4.0.6
>   (regarding SSL, although I haven't seen them, and some people don't have
> problems).
>   Upgrade to a recent snapshot (or latest CVS) of cURL and everything
>   should be fine...

I had cURL w/SSL with PHP 4.0.6 and it wouldn't work. I don't know what the
errors are so I can't really help with this conversation. I will probably
try a later version of cURL to see how it works.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] The future of PHP

2001-08-31 Thread Thomas Deliduka

Actually this originally started (If you're referring to the thread itself)
with my question as to what to tell my JSP-loving buddy that PHP isn't an
antiquated and dying language/processing system.

I NEVER would have thought it was balloon into this conversation!

On 8/31/2001 10:29 AM this was written:

> This originally started as a call to php'ers to step up and market the
> language so that it can compete more vitally in a larger market.
> Both Rasmus and Zeev have stated that they believe they are doing just that
> via conferences and Zend. Mr Lemos et al believe that more should be done. A
> more constructive targeted aim at the .NET and Java based crowd. Several
> solutions/ideas have been suggested one of which is a poll/display of
> quality/imaginative etc php sites. Another suggested that php go the way of
> BIND and APACHE and that the wait will pay off with the volume of  users in
> 10-12 years.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] The future of PHP

2001-08-24 Thread Thomas Deliduka

Most of my stuff is mingled right with the HTML. Heh. I guess I haven't
advanced to the all-code-no-html formatting. :-)

Mainly it's like that because I work with a team of designers, They make the
shell of the site, I then have to fill in the code. I'm sure many of you
will say y'all do it the same way but don't mingle your code. I guess I have
to figure it out.

On 8/24/2001 6:37 PM this was written:

> PHP can be extremely sloppy or coded extremely modularly.  I think it's
> a shame that
> most tutorials on PHP (and ASP, from what I've experienced) show
> comingling of code
> and HTML - far more than we ever do in day-to-day PHP work.  People get the
> impression that that's the only way to do stuff, and it's not.  It's
> often the QUICKEST
> way for small projects (I needed a quick contact form yesterday and
> built one in a couple
> minutes with PHP.  I don't think it would have been that painless under
> Java.)
> But we use PHP on some very large projects too - it requires you to
> plan ahead -
> but that should be the basis for any project, regardless of technology.  :)

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] The future of PHP

2001-08-24 Thread Thomas Deliduka

Wait, you blame someone convicting microsoft for a recession? Give me a
break. Things were on the way out before it started.

Alan Greenspan was chasing the 'inflation' demon that didn't exist raising
interest rates when things were going great. It came back to bite him in the
arse with the collapse of the dot-coms.  Now he's cutting them even further
and we can barely break free.

On 8/24/2001 3:30 PM this was written:

> Do you really believe that? As far as I can recall, this recession
> started when a "mean judge" convicted Microsoft for anti-trust
> practices. That caused NASDAQ crash that scared people away from
> investing in tech company stocks. Many Internet companies dried and
> without cash from the investors many went bankrupt. That affected all
> the small or big corporations that have grown and were dependent on the
> networking market. I don't think this affected much non-technological
> companies, big or small. So I don't think  your anti-big corporations
> speech has much to do with this.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] PHP vs CGI Search ?

2001-08-24 Thread Thomas Deliduka

On 8/24/2001 10:54 AM this was written:

> I know this question has been asked many times before so I am not asking
> again :-) What I am asking is how I can search the forum, is there a web
> based system that I can use to search???

Well, there's a Newgroup:

news.php.net

There is an archive on this list but I forget where it is. Perhaps the
support page on www.php.net will give it.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] The future of PHP

2001-08-23 Thread Thomas Deliduka

On 8/23/2001 11:59 AM this was written:

> On its Solaris Developer Connection site, Sun posed the question, "What
> language do you use to develop Web-based client applications?" The responses
> went like this: Perl, 41.3 percent; JSP, 19.9 percent; C/C++, 14.2 percent;
> Linux script language PHP, 11.2 percent; Microsoft Active Server Pages, 8.8
> percent; and other, 4.3 percent. Check it out for yourself at
> soldc.sun.com/polls/index.jshtml -- if they haven't taken it down yet.
> 
> 
> 
> Notice it even gives info on PHP use   :-)

He would see JSP at 19.9% and PHP at 11.2 and say that proves his point.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Re: The future of PHP

2001-08-22 Thread Thomas Deliduka

On 8/22/2001 10:52 PM this was written:

> I don't know if you refer to this list or other one, but I've been a
> webmaster since 1993 and in computers in general since 1988 and I also
> consider myself of the "advanced" type.

It definitely wasn't this list. It's another one.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] The future of PHP

2001-08-22 Thread Thomas Deliduka

A little background... Skip to "THE JIST" if you wanna make this quick.

I am on this webmaster's list where most of the people are fairly new
webmasters. They're just getting the hang of things. I am probably one of
the only advanced ones on there (not to toot my own horn really) and I'm one
of two who use PHP (the other is just learning.)

I tout PHP and MySQL as awesome, which they are, but I don't say they're the
only technology out there.

There is another guy, a kid, who is a major Java guy and he's BIG into XML
and JSP.

Some guy on this list asked what a good dynamic web solution is, I
immediately chimed in and said PHP was great, free, and on most all linux
hosts.  Told him how powerful it was and what could be done with it.

This kid chimes in and says, something to the affect of that if the guy
wants to live in the past and not let his website go anywhere then he should
go with PHP but JSP is the wave of the future and it's more powerful, and
has the backing of the almighty Sun and the Open Source community (as if PHP
doesn't).

THE JIST

So, the jist is, what does PHP have to offer to the web in the future?  I
think it's still a viable option that will be around for at least another
6-7 years. This kid thinks it's shelf life is another 3.  What do ya'll
think?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Re: PHP indexOf()?

2001-08-21 Thread Thomas Deliduka

On 8/21/2001 3:43 PM this was written:

> For someone used to Java & JavaScript..  what function would replace
> myString.indexOf(myStringPiece) ??

Strstr()

Or stristr() for case insensative search

http://www.php.net/manual/en/function.strstr.php
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Listing files from a directory

2001-08-21 Thread Thomas Deliduka

On 8/21/2001 11:42 AM this was written:

> I am trying to find a way to list files alphabetically.

Try putting the filenames into an array and sort the array.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Looking for link system

2001-08-15 Thread Thomas Deliduka

On 8/15/2001 9:36 AM this was written:

> what kind of a link system do you mean?  Like the categories search, or
> something else?

Yeah, I found one: http://www.in-link.net/


-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Looking for link system

2001-08-14 Thread Thomas Deliduka

I'm looking for a yahoo-style link system done in PHP.

Anyone know if a good one exists out there and where I can find it?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Display the weather on my site

2001-08-06 Thread Thomas Deliduka

On 8/6/2001 2:38 PM this was written:

> Put a webcam in your window. Put the city names in a database. Rotate through
> the city names randomly. They will be None The Wiser.

LOL yeah right!
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] URGENT!!! Can't start Apache with php4 and mysql

2001-08-02 Thread Thomas Deliduka

What I did was this:

ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.10
/usr/lib/libmysqlclient.so.10

(that should be only one line)

This fixed my problem.

On 8/2/2001 6:36 AM this was written:

>  I have read the archives for this problem but I can't seam to fix it
> This is on a RedHat 7
> I get this error when I try to start Apache
> Starting httpd: Syntax error on line 256 of /etc/httpd/conf
> /httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server:
> libmysqlclient.so.10: cannot open shared object file: No such file
> or directory
> 
> What I have read is to add the path to libmysqlclient.so.10 to the
> /etc/ld.so.conf file and then run  "ldconfig". at root
> I did this but ldconfig does not run
> I keep getting No such file or directory
> 
> 
> This is what my ld.so.conf file looks like
> /usr/X11R6/lib
> /usr/kerberos/lib
> /usr/lib
> /usr/local/mysql
> /usr/local/mysql/lib/mysql <--This is were   libmysqlclient.so.10 is
> 
> 
> I really need to get this working

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] YA Session Problem

2001-08-01 Thread Thomas Deliduka

I'm actually revisiting this after 8 months or more.  I have never gotten
sessions to work on my server and here's the problem:

Page 1:

Create session register a variable.
SessionID created is say:  555 (for example)
On the drive in /tmp I get a file sess_555 and it contains my variable.
I submit a form to another page with additional variable info.

Page 2
Page two creates the session and recalls the first variable, it is
empty. I set the variable which I posted to the page.
If I echo $PHPSESSID to the screen I get 555.
But in /tmp I have another file sess_777
Contained in sess_777 is my second variable.

Is this too abstract? Do I need to give code?

I even do session_name($PHPSESSID); before session_start() and get the same
results.

8 months ago, nobody had an answer for me.  Does anyone now?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Looking for Portal/Directory code

2001-08-01 Thread Thomas Deliduka

I've been looking in several places and can't find a good PHP code resource
site.  The ones I have found have stuff that isn't very good.

Anyway, I'm looking for a PHP app with MySQL back-end that will do a
Portal/directory listing like Yahoo or the Open Directory Project.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Teen Hobos having sex? ..no.. but MAYBE

2001-07-26 Thread Thomas Deliduka

This is a classic case of someone not having formmail.pl from Matt's Script
archive locked down.

I found it very interesting that while Matt's Script Archive is setup to
block you from using someone else's form as a referer to yours to prevent
the use of your script from another server, he simply allows you through if
you have no referer at all. And that's how someone used our server several
times about 6 months ago. If you format a perfect querystring and simply hit
enter on the browser, you can successfully send many people e-mail through
formmail.pl if it's not modified to block 'no referer' references.

On 7/26/2001 8:29 PM this was written:

> Below is the result of your feedback form.  It was submitted by
> ([EMAIL PROTECTED]) on Thursday, July 26, 2001 at 20:29:47
> ---
> 
> : Join for free Today.
> Free Memberships. No Credit Cards Needed.
> HUGE Celebrity selection from Jennifer Lopez to Britney Spears.
> Also Specializing Streaming Video, Live sex shows for every desire!
> This isn't one of those crummy scams where you have touse a credit card!
> Take a look and you'll see.
> http://coverme1.devil.ru";>Enter Here
> 
> 
> 
> 
> You recived this email because you subscribed to a mailing list. If you would
> like to be removed from this mailing list please  href="mailto:[EMAIL PROTECTED]";>Click Here!
> 
> ---
> 
> 
> -- 
> 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]

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Example high-profile PHP sites

2001-07-26 Thread Thomas Deliduka

Well here's a couple:

http://www.10tv.com/
http://www.evergreenmidwest.com/

They may not fit the requirement though, they're not high-profile and
perhaps not impressive-sounding.

On 7/26/2001 1:16 PM this was written:

> For a number of reasons, I need to offer a client a list of big,
> impressive-sounding, high-profile sites using PHP.  I went looking
> for the list on PHP.net, and the closest I could find is
> http://pt2.php.net/sites.php  which, as you'll see, is suffering from
> a fatal error.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] can I fopen an https url?

2001-07-09 Thread Thomas Deliduka

On 7/9/2001 2:07 PM this was written:

> *heavy sigh*  OK, let me rephrase my inquiry.  What must I do to be able
> to fopen an https url?  For some reason, php tries to find it in the
> path that the executing script resides in.

You have to use cURL http://curl.haxx.se/ with PHP
(http://www.php.net/manual/en/ref.curl.php)

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Question on Commercial Offerings

2001-06-30 Thread Thomas Deliduka

I don't know quite how to word that subject but here's what we want to do.

We have a shopping cart softwre (like a million others out there) which
based in windows NT with a COM+ object to guard the source code.

We mainly offer this product to our hosting customers as an add-on solution
to their hosting.

Well, we want to migrate this to PHP/MySQL and I don't know how to protect
the source code. My boss is suggesting to make a DSO but I really am not a C
programmer to do all that. I want to make it all in PHP but somehow protect
the code. Any ideas?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Pricing Advice Needed

2001-06-29 Thread Thomas Deliduka

On 6/28/2001 2:49 AM this was written:

> I am working as a freelance programmer. Problem is I don't really have a
> clue how the pricing mechanism in the industry works. I have heard
> calculations based on man hours and lines of code, so perhaps anyone one can
> tell me on the average, how much should I be charging per man hour, or per
> line of code?

I think the majority is man hour.  I actually handn't heard of lines of
code. I think that would be ridiculous, can you imagine. You get paid more
depending on your style:

If ($foo == "bar") {
$dofoo = fobar($foo);
} else {
$dofoo = foobar($bar);
}

Or 
If ($foo == "bar")
{
$dofoo = fobar($foo);
}
else
{
$dofoo = foobar($bar);
}

I would never trust someone who charged by line.

I think in general it's about $100-$150/hour for programming/database work.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-06-20 Thread Thomas Deliduka
Title: Re: [PHP] logout



On 6/20/2001 6:34 PM this was written:

Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser?


What type of authentication are you using?

If it's a cookie, reset the cookie, if it's http authentication I'm not sure.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/







Re: PHP version?

2001-06-18 Thread Thomas Deliduka
Title: Re: PHP version?



On 6/15/2001 5:29 AM this was written:

I wonder if you can help.  One of our servers has migrated to php V 4.05 from V 4.04.  Unfortunately part of the site that accesses a MySQL database no longer functions.  I have checked pretty much everything and it seems OK. Is there any changes in the version which could be causing these problems?


Not sure, any mysql-related stuff here:  http://www.php.net/ChangeLog-4.php

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/







Re: Lists are back up

2001-06-18 Thread Thomas Deliduka

On 6/18/2001 3:15 PM this was written:

> We have re-enabled the PHP mailing lists.  They are now running from a
> temporary machine sitting on the floor of my spare bedroom.  A more
> permanent home is in the works.

LOL, ya hoo!!
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/





Re: [PHP] Discussion board

2001-05-22 Thread Thomas Deliduka

Thanks everyone for your suggestions (and thanks to those who will suggest
more later... To cover y'all too)

I'll check these out.

On 5/22/2001 3:32 PM this was written:

> Is there a good PHP alternative for a discussion board or something else
> that allows for moderators and other good features that will run on Linux?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Discussion board

2001-05-22 Thread Thomas Deliduka

Is there a good PHP alternative for a discussion board or something else
that allows for moderators and other good features that will run on Linux?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Capturing the url in the location bar

2001-05-15 Thread Thomas Deliduka

On 5/15/2001 9:27 AM this was written:

> Is there a way of capturing the entire url contianed in the location bar
> within a variable?

$location = getenv("HTTP_HOST") . getenv("REQUEST_URI");

Or if your system handles it do this:

$location = $HTTP_HOST . $REQUEST_URI;

This will concatinate the site requested with the rest of the url.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] insert data to mysql

2001-04-23 Thread Thomas Deliduka

On 4/23/2001 1:32 PM this was written:

> $sql = "INSERT INTO $userstable (client, contact, email, address, city, state,
> zip, phone, fax, model, country, details, type)
> 
> VALUES("$client", "$contact", "$email", "$address", "$city", "$state", "$zip",
> "$phone", "$fax", "$model", "$country", "$details", "$type")";

Um.. You're using double-quotes inside of double quotes.  You need to use
single quotes....

VALUES('$client', '$contact', '$email', '$address', '$city', '$state',
'$zip', '$phone', '$fax', '$model', '$country', '$details', '$type')";

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] fflush() function

2001-04-20 Thread Thomas Deliduka

This function:

http://www.php.net/manual/en/function.fflush.php

Has no example on how you would code with it. Does anyone know?

It mentions "buffered output" how do you buffer output?
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] CGI ver. showing exec line

2001-04-05 Thread Thomas Deliduka

For anyone interested.  I found that the Zend Optimizer is the culprit,
disabling removes the output.

I'm currently working on removing the optimizer for my CGI version but
keeping it for my Apache install.  I didn't want to maintain two .ini files
but I guess I have to.

On 4/4/2001 4:56 PM this was written:

> Please forgive if this was posted before.
> 
> I don't know what the line really is called but recently when I upgraded to
> PHP 4 Um.. The latest and I used the exact same compile parameters as I
> did before. But now the first line of every script is displayed (the
> execution line)
> 
> I.e. The file looks like this:
> 
> #!/usr/local/php4/bin/php -q
>  
> Code.
> ?>
> 
> And the first line is displayed to the screen when the script is ran. Why is
> that and does anyone know how to stop that?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] CGI ver. showing exec line

2001-04-04 Thread Thomas Deliduka

Please forgive if this was posted before.

I don't know what the line really is called but recently when I upgraded to
PHP 4 Um.. The latest and I used the exact same compile parameters as I
did before. But now the first line of every script is displayed (the
execution line)

I.e. The file looks like this:

#!/usr/local/php4/bin/php -q


And the first line is displayed to the screen when the script is ran. Why is
that and does anyone know how to stop that?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Monthly Drawing Winner!

2001-04-04 Thread Thomas Deliduka

On 4/4/2001 1:32 PM this was written:

> 
> If you're using PHP, you're already a winner (in my book anyway!)
> 

LOL
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] OT Regular Expression [grep]

2001-04-03 Thread Thomas Deliduka

Thanks!

On 4/3/2001 4:41 PM this was written:

> On Tuesday 03 April 2001 21:59, you wrote:
> 
>> I would like to find all processes by a given user on a linux box and
>> kill them.  I know this much:
>> 
>> ps -u username
>> 
>> Now, do I then pipe that to grep somehow and get just the PID's?
> 
> (1) look up system / backtick operator / ... to get the output of the
> grep call as array, one line per entry
> 
> (2) do a
> 
> foreach ($TheOutput as $Line) {
> if (preg_match ('/^\s*(\d+)/', $Line, $Matches)) {
>   $PID = $Matches [1];
>   // kill it
> }
> }

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] OT Regular Expression [grep]

2001-04-03 Thread Thomas Deliduka

I know this is off-topic but what I'm using it for will be in a PHP script!

All you who are grep-masters I have a question.

I would like to find all processes by a given user on a linux box and kill
them.  I know this much:

ps -u username 

Now, do I then pipe that to grep somehow and get just the PID's?

How can I do this quickly and easily?
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Kick one of these darn elements out of my array, I ainthaving it!

2001-03-12 Thread Thomas Deliduka

On 3/12/2001 1:38 PM this was written:

> I want to take one element out of an array, is there a way to remove an
> element and have the array resorted so there isn't a blank spot where I
> remove the elements? Here is an example if the above text made no sense.
> 
> Example: $array = Array("1", "2", "3", "4");
> 
> So: $array[0] = 1, $array[1] = 2, $array[2] = 3, $array[3] = 4
> 
> I want to kick $array[2] out and have $array[3] be moved to $array[2]

Only thing I can think of is a loop:

$temparray = array();
Reset($array);
while ($elem = current($array)) {
if ($elem != "2") {
    $temparray[] = $elem
}
next($array);
}
$array = $temparray;


-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-03-09 Thread Thomas Deliduka

On 3/9/2001 5:38 PM this was written:

> Is this incorrect?  When you say that it 'died', what are you referring to?

That's what I'm inerested in. I have several sites currently using Cybercash
and one client left for a month on vacation and asked before he left if the
merger would affect him; didn't want his stuff going down while he was gone.

Now I'm hearing they're gone and we have to find other arrangements?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-03-09 Thread Thomas Deliduka

On 3/9/2001 5:27 PM this was written:

> How to people typically integrate payment processors with PHP?
> And what processors are used most often?  I know that a number
> of people are scrambling after cybercash died.  There is a site out
> there www.opay.com that says it supports payment processors
> on any platform, anyone ever use it?

Never used it. I use authorize.net or any of their resellers (rtware.net,
quickcommerce.com)
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] The coolest function in the world

2001-03-07 Thread Thomas Deliduka

I knew PHP was awesome, and I have seen some awesome functions. I've been
doing PHP for a few years now and I didn't even know this existed:

extract():
http://www.php.net/manual/en/function.extract.php

This is SO COOL. I just had to share my joy.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] pleaaaaaaaase help!

2001-03-01 Thread Thomas Deliduka

Uh huh, I agree. You can't run client-side PHP, it's called javascript.

On 3/1/01 12:01 PM this was written:

> Um...yeah.  Make the action of the form with the button be a script with the
> statement.
> 
> - Original Message -
> From: kaab kaoutar <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 01, 2001 11:59 AM
> Subject: [PHP] plese help!
> 
> 
>> Hi!
>> please i'm really in need of knowing if there is a way to do a php
> statement
>> once a button is clicked!

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Passing values from ASP to PHP

2001-02-28 Thread Thomas Deliduka

Well, if it's a query string it's easy...

In the ASP page you do:

<%
Response.Redirect("myscript.php?" & Request.ServerVariables("QUERY_STRING"))
%>

If it's posted form data do this:

<%
Dim Querystring
Querystring = ""
For each Item in Request.Form
if Querystring = "" Then
Querystring = Item & "=" & Server.UrlEncode(Request.Form(Item))
Else
Querystring = Querystring & "&" & Item & "=" &
Server.UrlEncode(Request.Form(Item))
' the above line isn't supposed to wrap
End If
Next
Response.Redirect("myscript.php?" & Querystring)
%>


On 2/28/01 4:08 PM this was written:

> I've been given a project that I want to use PHP with, but unfortunately
> there are unchangable hard-coded values that point clients to an ASP
> script residing on our server. Here's what I want to do, and I don't
> really know how to do it:
> 
> I want to pass all the key/value pairs that are passed to the ASP script
> to a PHP script. I can get values with Request.Form("key_name"), but
> that takes hard-coding the name of the key.
> 
> So if the following is passed to the ASP script:
> one=blue&two=red&three=yellow
> 
> Then I would want to redirect to
> myscript.php?one=blue&two=red&three=yellow
> 
> How do I go about walking through all the key/values that have been passed
> in ASP? I really don't want to have to learn this ugly language..

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Terrible Hosting Experience

2001-02-21 Thread Thomas Deliduka

On 2/21/01 10:14 AM this was written:

> Speaking of hosting companies, has anyone had experience with a company
> called www.nomonthlyfees.com?

You can see by the "Data Center" Information:

--
The NoMonthlyFees.com NOC located in Baltimore, Maryland is OnNet with
GlobalCenter (GC), Qwest Communications and GTE through three separate
bandwidth-on-demand connections which enter Baltimore in our building.
---

They are a reseller of Alabanza Servers. I wouldn't go with them.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Terrible Hosting Experience

2001-02-21 Thread Thomas Deliduka

On 2/21/01 10:23 AM this was written:

> Check out http://www.hostpro.com/hosting/shared/unix_products.html
> 
> It's a semi-dedicated virtual environment with complete root access.

I've heard good things about Host Pro.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Terrible Hosting Experience

2001-02-21 Thread Thomas Deliduka

On 2/21/01 10:53 AM this was written:

> Check out MyBizHosting at
> http://www.mybizhosting.com/

Hope it holds up They are also an Alabanza Dedicated server client:

From: http://www.mybizhosting.com/network/network.shtml

The MyBizHosting NOC located in Baltimore, Maryland is OnNet with
GlobalCenter (GC), Qwest Communications and GTE through three separate
bandwidth-on-demand connections which enter Baltimore in our building.


-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Terrible Hosting Experience

2001-02-21 Thread Thomas Deliduka

On 2/20/01 5:55 PM this was written:

> I was about to buy a server from Alabanza.  Am I ever glad I didn't.  The
> only thing impressive about them is their connection.  And for all I know
> they could be lying about that, as well.

Usdatacenters.com has a great connection. We've had great help with them.
They may be a tad high but their support is impeccable.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] PHP and SuEXEC?

2001-02-20 Thread Thomas Deliduka

On 2/20/01 2:51 PM this was written:

> I am using an APACHE server that has SuEXEC turned on.  For those of you who
> don't know what that is.  It is a way of adding more security to your
> scripts.

I printed out the whole thing on the Apache site about SuEXEC and I couldn't
figure out how to get it working. I'm so clueless when it comes to these
advanced Unix stuff. If anyone has any tips, perhaps you can e-mail me
privately. Thanks!

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Terrible Hosting Experience

2001-02-20 Thread Thomas Deliduka

On 2/20/01 3:17 PM this was written:

> We host and provide servers to a good number
> of clients that have come over from Alabanza.
> All of them complaining of similar experiences
> I think that company has been plagued for a
> long time

I agree. I have dealt with them on one level or another since 1997. They
used to have great customer service and skillful people. Well, those people
left out of frustration and better opportunities and they were replaced with
idiots.  These idiots that man their help desks and other services now have
very little to know about how to even work a computer.

I know that they have their help their help-desk in a college town and
employ people from the university. Some of the CS reps are philosophy and
other liberal arts students.

I called one day to give my updated credit card information to a billing rep
but they weren't in so I got a CS rep. They said, "You can update it
online", I said, "Your control panel isn't behind a secure server. I will
not update my Credit card information online." I asked her write it down,
put it in an envelope and deliver it to the billing rep by hand. The CS rep
said, "No problem."

About a week later I received an e-mail. I was forwarded from the CS rep the
conversation that took place 0VER E-MAIL with my CC information included in
the e-mail from the very first sending. I was so mad. I told her that she
just compromised my CC number! She said, "But I sent it right to her in the
office." I said, "You office is in a whole-nother state from where the
server is. It traveled unsecurely from your location to the server and back
again several times in the last few days." she was clueless.

Okay, I'm shutting up now.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Terrible Hosting Experience

2001-02-20 Thread Thomas Deliduka

On 2/20/01 3:02 PM this was written:

> Actually alabanza hosts a number of "hosting"
> companies from their baltimore  location.  About
> two weeks ago a "hosting" service I used went down,
> they use alabanza as well, down for almost two days.
> Then when it did come up, the permissions were all
> wrong and I couldn't change the files for a time. The
> problem appears to be with the alabanza servers and
> that caused problems for a number of "hosting"
> services.

Yeah, they're the biggens.

The history is that Alabanza used to be a Virtual Hosting service as well as
dedicated. Well, they sold off their virtual hosting clients to
"yourwebhost.com", which is owned by the same person and, they simply
provide dedicated services now.

Many of the Hosting companies that I have found to have great plans were all
Alabanza-hosted companies.  I knew a good friend of mine who worked for one
of them. He said the servers they  had from them were the most insecure on
the Internet. When they would lock it down, Alabanza would open the hole
again and tell them to stop messing with the server. One day they changed
their root passwords and locked down the server tight (security-wise) They
were given a cease and desist order.

I have heard, however, that they have gotten a little more security
conscience since then.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Terrible Hosting Experience

2001-02-20 Thread Thomas Deliduka

I just need to tell all of you about my terrible hosting experience with
yourwebhost.com which owned by hostingventures.com which is also kinda owned
by alabanza.com (same owners, I believe, different company)

Anyway. I have several sites hosted for free with them because they USED to
host non-profit organizations for free. We just haven't rocked the boat with
them so we remain free. ;-)

Well, what I'm about to say may be followed with "That's what you expect
with a free hosting service." But they have done this to a paying client
too.

Two weeks ago they moved one of the domains I work with to another server
(without prior notification) and they didn't bother even check the front
page of the website to see if it came up correctly!  The database wasn't
moved over so almost the whole site was completely broken. Then The SSL Cert
wasn't brought over with it (I found out later) so no orders could be taken.
Two day later I realized that Cybercash was not installed on the same
location on the server as the last server so no credit card charges could go
through!

5 days went by with no e-commerce and 2 of those five days the site was
completely disabled!  When I e-mailed them (tried calling, no answer even
though they have 'phone support' listed as an option on their website.) and
they simply replied with 'the site is now working'. No explanation, no
apology, nothing.  I was so angry.

I finally weeded an apology out of them and they offered me three months of
free hosting. Well, gee, we're free hosted so there's nothing they can give
us. I simply said that I hoped they learned that prior notification and
CHECKING OUT THE SITE would be things they would do next time.

Now, two weeks later I find today, BAM they did it to TWO MORE DOMAINS that
I have hosted with them!  I cannot believe this company.

So, I try calling, I leave voicemail, no response. I call and hit 'zero' for
the operator, it will either jump from phone to phone and eventually hit
voicemail or they will pick up the phone and hang it up! Can you believe
that?!

Stay away from these guys, they're terrible.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] processing form data

2001-02-20 Thread Thomas Deliduka

Correction

To quote from a previous e-mail from some one else:

If register_globals is true, the variable is also available in the
global scope as $rosen (as in Rosen's example).
If this does not work, it would seem that register_globals is not set [in
the php.ini file].


On 2/20/01 9:16 AM this was written:

> Hello friends.
> 
> I am new to php4 which I am running on an intel machine with NT4 sp6 and
> IIS4.
> 
> I have 2 forms name.php and username.php When I run the name.php, and click
> "submit data" button, the username.php does not appear. I have both the
> files in the same directory which is c:\inetpub\wwwroot. Appears to me that
> the FORM ACTION is not working and my username.php is noyt called. Can
> someone please help me and advise what I am doing wrong.
> 
> 
> 
> 
> 
> Please enter your name here :
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  echo ("Welcome, " . $username . "!")
> ?>
> 
> 

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] processing form data

2001-02-20 Thread Thomas Deliduka

Change your form method to GET and find out what's being passed.

Check your php.ini file. I think it's the "track vars" command that
determines whether the variables will be parsed on the next page.

On 2/20/01 9:16 AM this was written:

> I am new to php4 which I am running on an intel machine with NT4 sp6 and
> IIS4.
> 
> I have 2 forms name.php and username.php When I run the name.php, and click
> "submit data" button, the username.php does not appear. I have both the
> files in the same directory which is c:\inetpub\wwwroot. Appears to me that
> the FORM ACTION is not working and my username.php is noyt called. Can
> someone please help me and advise what I am doing wrong.
> 
> 
> 
> 
> 
> Please enter your name here :
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  echo ("Welcome, " . $username . "!")
> ?>
> 
> 
> 
> Thanks in advance
> Denis

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-02-19 Thread Thomas Deliduka

Do you get an error?  Remember that there can be no breaklines before the
start of you php tag ( Do I have to have special configuration to use the header function, this is
> because it is not responding.
> 
> I use it like this.
> 
> header('Location: contrato.html');

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-02-19 Thread Thomas Deliduka

On 2/20/01 1:11 AM this was written:

> im making a webdesign website that has a members login, do i have to
> make a member page for each member or can i get the
> info from the database of the person whom logged in and put it on the
> members page

If you create a table in a database that holds the information that you want
to capture for them with the username as the key to the database (no
duplicates) then when they login and they're authenticated. You can pull all
necessary information you want to track on them from the table and create
your page. So, one, physical page for all users.

If you're authenticating via .htaccess you can use the environment variable
"REMOTE_USER" to use as the username to do the select on the db. Something
like:

$user = getenv("REMOTE_USER");
$sql = "Select * from usertable where username = '$user'";
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-02-19 Thread Thomas Deliduka

I think if you echo the error (echo mysql_error();) you will see the exact
error you would get if connected directly to the db.

You can do something like:

$result = @mysql_query($sql_query); // hide any errors
If (!$result) {
echo "Error: " . Mysql_error() . "";
}

On 2/20/01 2:57 AM this was written:

> ahhh... yes...   :)
> 
> the linux version is much stricter when it comes
> to table definitions...
> 
> i had the same problem trying to declare an INDEX
> for my table too for linux, any key that
> you use as an INDEX on a table must be declared
> NOT NULL (whereas the win32 port doesnt seem
> to care very much)...
> 
> for future reference, i reccomend trying out your
> SQL code in the MySQL monitor (the command line
> utility that comes with the server)... generally
> the error messages are *MUCH* more helpful
> than the ones i get via PHP

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-02-19 Thread Thomas Deliduka

On 2/20/01 1:08 AM this was written:

> when poeple sign up to my site, how can i make a code that finds if
> there username is already in the database?

Um... Search for it.

$findit = mysql_query("Select username from usertable where username =
'$inputted_username'");
If (mysql_num_rows($findit)) {
echo "Error! username exists";
}

Or whatever code you want to add there.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] pro's and con's of storing images

2001-02-14 Thread Thomas Deliduka

On 2/14/01 7:12 AM this was written:

> I'm putting togeather a simple website buider app.
> i'm allowing users to upload images.I'm wondering whether i should store
> those images in a database or create dirs for each user.the mysql db has a
> relatively small capacity but storing them to the db might make it simpler
> for me.
> also ftp functions don't work on the server and my damn isp keeps fobbing me
> off when i ask him to do anything.

I would make an upload form and put the image on the server. IMHO, but
that's only because I've never really worked with BLOB values in mySQL
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Thomas Deliduka

I'd be curious to see others' answers on this because I upgraded everything
the other day (been at php4 for a while though) and I don't have a problem
with the quotes.

On 2/12/01 11:11 PM this was written:

> Have I lost something somewhere?
> 
> I have code which runs under PHP3.0.15, and PHP4.0.2 which references the
> result of a
> 
> $row = mysql_fetch_array($result_of_query);
> 
> by doing things like:
> 
> $row["this_is_a_field_name"]
> 
> Seems simple, right?
> 
> Well - I compiled a new copy of Apache 1.3.17, pushed PHP up to 4.0.4pl1,
> and upgraded mysql to the new stable version at the same time...
> 
> Now the above code doesnt work.  But if I do a:
> 
> $row[this_is_a_field_name]
> 
> Then the code does work.
> 
> Have I messed up something in the PHP configuration that doesnt allow these
> quoted identifiers anymore?
> 
> Or is this just a new (less-than-compatible) upgrade to PHP that I've missed
> reading about??
> 
> Heeeeeelp me ... I dont want to have to rebuild all my sites
> just because of these stupid quotes
> 

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-02-10 Thread Thomas Deliduka

My only issue was a symbolic link had to be created for Apache to start
again.

ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.10
/usr/lib/libmysqlclient.so.10


Oh, and I had to recompile PHP as a DSO in order to work with mysql 3.23

On 2/10/01 12:59 AM this was written:

> On Fri, 9 Feb 2001 22:08:06 -0500, Jon Rosenberg
> ([EMAIL PROTECTED]) wrote:
>> I'm about to upgrade to mysql 3.23  on a production installation on
>> linux
>> with PHP 4.0.4pl1, has anyone had any problems with this
>> combination, as
>> compared to 4.0.4pl1 with 3.22.xx?  Thanks!
> 
> I hit a snag with some of the new reserved words colliding with field
> names, you might want to take at the list.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] Is it server Push?

2001-02-07 Thread Thomas Deliduka

On 2/7/01 5:09 PM this was written:

> Use flush(); each time you want the latest output to be sent to the
> client.
> This works only with PHP as a Webserver-Module, not as CGI.

Thanks!
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] Is it server Push?

2001-02-07 Thread Thomas Deliduka

I don't know what it's called so I don't know what to search for.

I have had experience with ASP apps that sometimes I'll create some scripts,
say a script does multiple operations. And I want it to print to the screen
after each operation is done.. The user would get a running list.

Doing operation. Done
Doing this Done
Etc

With ASP it does it as you see it, with PHP it seems to do it all and the
print to the screen. Is there a way to get PHP to do the same as ASP or is
that just the way PHP works?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
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] "Trim" an array?

2001-02-02 Thread Thomas Deliduka

On 2/2/01 5:34 PM this was written:

> while(list($key,$value)=each($array)){
> if(empty($value)) unset $array[$key];
> }

Sweet! Thanks, that was easy.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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




[PHP] "Trim" an array?

2001-02-02 Thread Thomas Deliduka

I looked through the archives and couldn't find anything on this.

I have a web form which takes 9 values to create a definition for a table
that would have up to 9 columns.

I made the table so that each form field is submitted as an array so that I
can simply step through each value and create the table definition, so:

  (duplicated 9 times)

Now, when I submit the form the resulting array always has 9 elements and
some of those will be empty.

I would like to do error checking in case people didn't fill anything at all
so I thought using if (!count($tblcol)) { But that doesn't work since it
always has 9 elements.

Is there a way to find out if an array contains no values even though it has
elements?  Sort of like a trim() function on an array to destroy the
elements in the array that are empty.

Is it possible?
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-01-17 Thread Thomas Deliduka

You know, this means that ALL of my hundreds of pages over multiple sites
would break. That's really sad.

I just think it's hard (to remember) when I have code like:

this link

to put in the 'php' there. It's so much easier just to code with short tags.

(although I have a program that can work in every app that will trap  Ye 2001-01-17 13:54 -0500, Toby Butzon skribis:
> 
>>>> Is PHP the implied script, so that it is okay to begin PHP code like
>> this >>> vs. like this >>> When is it not implied?
>>> 
>>> You should use >> dropped or your administrator can disable the open short tag.
>> 
>> Are there in fact plans to drop the short tags?
> 
> Short open tags won't work with xml.  Therefore they won't work with
> xhtml.  They conflict with where the Web is going.
> 
> Thus, they have already been dropped.  You don't _need_ them.  Stay
> away from them.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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

2001-01-15 Thread Thomas Deliduka

When I look at the website (http://www.zend.com/zend/optimizer/) it says it
works with PHP Version 4.0.3 or 4.0.3pl1 it says no early or later versions
of PHP are supported so I would htink that is the reason why it's not
working.

On 1/15/01 3:07 PM this was written:

> I have download the Zend Optimizer (Running Apache 1.3.14 and PHP 4.04) and
> untarred it. Then I copied the ZendOptimizer.so to usr/local/Zend/lib Then I
> edited the PHP.ini and added:
> 
> zend_optimizer.optimization_level=15
> zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"
> 
> Somewhere near the top. Then I restarted the server using apachectl restart. I
> also tried stopping and starting as well. It still isn't running? Any ideas.
> Is there anything else that needs to be done?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



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