Search found 18 matches

by linuxbox
Fri Jan 13, 2006 2:06 pm
Forum: PHP - Theory and Design
Topic: activex
Replies: 7
Views: 1773

javascript

You can use Javascript to communicate with a ActiveX control... Not sure how you implement ActiveX interfaces in VB, but you can communicate with a COM objects interfaces in any language. So if you artiveX control is embedded in HTML then use Javascript to query the object and send the data to a HI...
by linuxbox
Fri Jan 13, 2006 10:17 am
Forum: PHP - Theory and Design
Topic: activex
Replies: 7
Views: 1773

well, you could do it with xmlHttpRequest directly from your control. Once I used XHR to fetch the information from intranet website into Outlook application. It's almost certain that if VBA was able to use XHR, VB would be able to use it as well. I'm thinking now of simply writing a vb application...
by linuxbox
Fri Jan 13, 2006 9:28 am
Forum: PHP - Theory and Design
Topic: activex
Replies: 7
Views: 1773

I don't know anything about active X. But how about writing the data to a text file and reading the contents in with PHP and create variables and so forth... I'm not sure you understand :) there are 77 computers on a different network that are behind a router/firewall. i'm needing to get their priv...
by linuxbox
Fri Jan 13, 2006 8:54 am
Forum: PHP - Theory and Design
Topic: activex
Replies: 7
Views: 1773

activex

is there anyone here who knows if it is possible to get a variable from an activex control embedded into a php page? I'm writing an activex control in visual basic 6 that will get the ip address of the client pc. i'm going to embed the control into my php page so it will run on the client pc and get...
by linuxbox
Fri Jan 23, 2004 7:53 am
Forum: PHP - Code
Topic: windows_cookie/header problem
Replies: 10
Views: 884

Re: Another test

Have you tried your refresh method, it works beautifully. However, I have also tried to simply put exit(); after the header statement? i.e. header("Location:$wherefrom"); exit(); Seems to work as well, please try and let me know if this is the case for you. Thanks! Cheers :D try it on a w...
by linuxbox
Mon Jan 19, 2004 6:45 pm
Forum: PHP - Code
Topic: windows_cookie/header problem
Replies: 10
Views: 884

LOL

If you're on IIS it's a known 'bug'. See the user comments at http://www.php.net/manual/en/function.setcookie.php for more info. i found the answer on another site at the exact same time i heard my email ring for this post..weird day indeed. answer is: header("Refresh: 0; $wherefrom: blah"...
by linuxbox
Mon Jan 19, 2004 6:32 pm
Forum: PHP - Code
Topic: windows_cookie/header problem
Replies: 10
Views: 884

still not working

that was not the problem..i have no idea why it's not working
by linuxbox
Mon Jan 19, 2004 6:17 pm
Forum: PHP - Code
Topic: windows_cookie/header problem
Replies: 10
Views: 884

umm

patnet2004 wrote:im still a php noob but my book says to delete a cookie just setcookie(cookie_name);

you have:
setcookie("login", "", -1, "/", ".mydomain.com");
i'll try that but i don't think that is the issue.
by linuxbox
Mon Jan 19, 2004 5:55 pm
Forum: PHP - Code
Topic: windows_cookie/header problem
Replies: 10
Views: 884

windows_cookie/header problem

Hi. i'm having an issue concerning cookies/headers and windows/php. i'm trying to port my login system over to windows and make sure it runs ok. everything is ok except for setting/deleting cookies before i issue a header. here is what fails: (this is deleting the cookie if user hits logout) if ($_G...
by linuxbox
Fri Jan 16, 2004 7:30 pm
Forum: Databases
Topic: select closest to most current time
Replies: 3
Views: 484

right

McGruff wrote:The most current is the highest value so:

"SELECT MAX(timestamp) as timestamp FROM table"
i understand that but i'm not just selecting MAX(timestamp)..i need to select everything in two tables including the MAX(timestamp) from the 2nd table.
by linuxbox
Fri Jan 16, 2004 6:30 pm
Forum: Databases
Topic: select closest to most current time
Replies: 3
Views: 484

hmm

man i wish someone knew how to do this, i'm freak'n lost.
by linuxbox
Fri Jan 16, 2004 4:12 pm
Forum: Databases
Topic: select closest to most current time
Replies: 3
Views: 484

select closest to most current time

i have an sql table below that i'm trying to select the most current entry based on the number in the timestamp field. can someone post code on how to do that? i need it for displaying the "currently logged in users" and the most current file they've viewed. the number in the timestamp fie...
by linuxbox
Thu Jan 15, 2004 6:36 pm
Forum: Databases
Topic: php/mysql show logged in
Replies: 4
Views: 591

Each time a user loads a page store in a database the page they loaded, the time, username, IP etc. Then you can just print this info on your page. Of course only keep one record per username. When displaying the page you can then just call the info from the database where the last page loaded time...
by linuxbox
Thu Jan 15, 2004 5:57 pm
Forum: Databases
Topic: php/mysql show logged in
Replies: 4
Views: 591

php/mysql show logged in

hey there, i have recently created a login/registration script and on my admin screen i'd like to show "users currently logged in" along with what page they are viewing. i'm using sessions but not using session id's in the cookie or anything that auto logs a person back in. is there a way ...
by linuxbox
Sat Dec 13, 2003 3:18 pm
Forum: PHP - Code
Topic: rename multiple files recursively
Replies: 10
Views: 2767

i used

chcase:
i renamed chcase to rename.cgi and did this:

./rename.cgi -r -x 's/.html/.php/' '*.html'

that recursively changed .html in every .html file to .php.
worked like a charm. now i need something that will open all of the php files and place a strand of code at the top of each php page.