home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1706
Discussions: 188,402, Posts: 2,243,609, Members: 232,632
Old January 30th, 2005, 07:41 PM     #11 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Quote:
Originally Posted by large_nostril
MS equivalent to PHP and MySQL is basically ASP and Access, which never should have been allowed online.
YES! Do NOT use ASP and Access. (if you do use ASP, you still can use mySQL, but there is no reason to)


-Blaze

Blazer06 is offline   Reply With Quote
Old January 30th, 2005, 08:09 PM     #12 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
Quote:
Originally Posted by large_nostril
MS equivalent to PHP and MySQL is basically ASP and Access, which never should have been allowed online
Access is the equivalent of MySQL? These are two VERY different databases. It would be more fair to compare MySQL to MSDE, or SQL Server Express. There is also ASP.Net, which is very different from ASP.


Last edited by Creosote : January 30th, 2005 at 08:11 PM.
Creosote is offline   Reply With Quote
Old January 30th, 2005, 08:19 PM     #13 (permalink)
Senior Member
 
James T's Avatar
 
Join Date: Jul 2004
Location: New Zealand
Posts: 582
When you connect from your client machine to the server you are limited to the commands you can send, GET & POST being the main two. You can pass data to the server by the way you format the GET request or by the POST method.

From here the web server really just serves up a page, but in doing so it passes data to a server side script which is then able to connect to a server side database and read and write to the database. You cannot do this from a client side script, you cannot do it from javascript, you can attempt it with client side java but then you have to write your own network sockets on the client side and access a port direct into your database on the server side, which is bad for security.

You can use java on server side as large_nostril pointed out, but it must still respond to the GET and POST methods. Now it is possible to write a dedicated java server side socket and go java client side to java server side. Don't, the security holes you open are potentially massive.

Also, I suspect when you are talking Dreamweaver MX java, you are talking client side java. Just a guess this.

James T is offline   Reply With Quote
Old January 30th, 2005, 08:38 PM     #14 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Quote:
Originally Posted by James T
When you connect from your client machine to the server you are limited to the commands you can send, GET & POST being the main two. You can pass data to the server by the way you format the GET request or by the POST method.

From here the web server really just serves up a page, but in doing so it passes data to a server side script which is then able to connect to a server side database and read and write to the database. You cannot do this from a client side script, you cannot do it from javascript, you can attempt it with client side java but then you have to write your own network sockets on the client side and access a port direct into your database on the server side, which is bad for security.

You can use java on server side as large_nostril pointed out, but it must still respond to the GET and POST methods. Now it is possible to write a dedicated java server side socket and go java client side to java server side. Don't, the security holes you open are potentially massive.

Also, I suspect when you are talking Dreamweaver MX java, you are talking client side java. Just a guess this.
Wrong, you *CAN* send varibles to the server using javascript. Getting them into the database, I am sure you can do, but I'm not sure.

Here is just a example script that will pass varibles to the server: (send the month, day and year, as well as any exsisting varibles)

Code:
<SCRIPT LANGUAGE="JavaScript1.2">

<!-- Begin
  var time=new Date();
  var lmonth=time.getMonth() + 1;
  var date=time.getDate();
  var year=time.getYear();
  year = year + 1900;
 
  url = new String( document.location );
  vars = url.split("?");
  vars2 = vars[1];

  if( vars.length > 1 ) {
    urlString= "page.php?" + vars2 + "&d_d=" + date + "&d_y=" + year + "&d_m=" + lmonth;
  } else {
    urlString= "page.php?d_d=" + date + "&d_y=" + year + "&d_m=" + lmonth;
  }

  self.location = urlString;

// End -->


</SCRIPT>
You then can use almost any scripting language to handle that.


-Blaze
Blazer06 is offline   Reply With Quote
Old January 30th, 2005, 08:40 PM     #15 (permalink)
Senior Member
 
James T's Avatar
 
Join Date: Jul 2004
Location: New Zealand
Posts: 582
Quote:
Originally Posted by Blazer06
Wrong, you *CAN* send varibles to the server using javascript. Getting them into the database, I am sure you can do, but I'm not sure.
Blaze, your example script is using the GET method, which is one I described. So you've actually demonstrated I'm right by example.

Last edited by James T : January 30th, 2005 at 08:42 PM.
James T is offline   Reply With Quote
Old January 30th, 2005, 10:31 PM     #16 (permalink)
Ultimate Member
 
Join Date: Dec 2004
Posts: 1,558
Quote:
Access is the equivalent of MySQL? These are two VERY different databases. It would be more fair to compare MySQL to MSDE, or SQL Server Express.
Indeed they are very different, in functionality. I was (maybe erroneously) comparing their support. I don't know many standard servers (by that I mean not a single one) that support MSDE or MS SQL.

Quote:
There is also ASP.Net, which is very different from ASP.
lol... I preferred ASP to ASP.NET; but still, it never should have been allowed online (IMO).

Long story short, there are dozens of ways this could be accomplished. The best way, is to use PHP and MySQL. If your server doesn't support MySQL, the next best is to use PHP to read and write from a flat text file. If your server doesn't support PHP, the next best would be ASP and MySQL, then ASP and text file, then... well, let's just not go there.

(boomsonic, sorry for getting this thread so off topic. If you need any more help, you can PM me)
large_nostril is offline   Reply With Quote
Old January 30th, 2005, 10:39 PM     #17 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Quote:
Originally Posted by James T
Blaze, your example script is using the GET method, which is one I described. So you've actually demonstrated I'm right by example.
lol, Sorry, I got confused.


-Blaze
Blazer06 is offline   Reply With Quote
Old January 30th, 2005, 10:58 PM     #18 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
I would use XML over a text file. A $5 per month rented space on a webserver wouldn't support MSDE or SQL Server. One's own Windows box would, however, and MSDE is free as well. SQL Server is offered on almost all Windows hosting plans for a fee.

I still wouldn't use a text file or XML over Access. I would use MySQL over Access, however,
Creosote is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2906)
3-days in and no threads about Gaza (161)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Futronix has water features? (0)
Laptop proccesor to desktop mob.. (2)
Please help! multiple problems! (4)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 04:31 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28