|
PHP is the poor mans ASP... (Just poking fun)
You are right in a way. PHP is to ASP as Linux is to Windows. The fact that PHP is generally served from Linux and ASP generally served from Windows strengthens that notion.
There is no section for PHP on CP because officially or not CP is a Microsoft/Windows site. 90% of the developers here are Microsoft boys and girls who use MS technologies.
Also nobody wants to dilute CP too much. If we let in PHP then we will have to let in Perl, ColdFusion, CGI etc. etc. Soon it will be a mess and the community will loose the cohesion it has.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
Hi, tx for the replies.
The reason I'm asking is that my company has a webpage that is hosted on a Linux (Unix) machine, so I'm not sure if I would be able to use *.asp to connect with a database.
So: Can u use asp on a Linux server, and do I have to us MySQL?
|
|
|
|
|
Cois wrote:
So: Can u use asp on a Linux server, and do I have to us MySQL?
You can serve ASP off a Linux box by using something called ChiliSoft which I see has now been renamed and is by Sun. Never used it, but apparently it works.
As for not having to use MySQL... MS SQL Server 2000 does not run on Linux. You could connect to it runnin on a Windows box, but I doubt that is what you want. Oracle probably runs on Linux. Otherwise MySQL is your best bet, it is not that bad (but you get spoilt using MS SQL.)
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
Can we use PHP & MSSQL Server to develop web sites? (MS SQL Server runs on a Window machine and Web server for PHP runs on a Linux machine).
|
|
|
|
|
Absolutely, you should have no problems with a PHP web app on a Linux box talking to a MSSQL database on a Windows box.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
Paul Watson wrote:
You can serve ASP off a Linux box by using something called ChiliSoft which I see has now been renamed and is by Sun. Never used it, but apparently it works.
I used ChiliSoft about a year ago and it work great. But if you're under linux a sugest using apache+php. It's a very good combination.
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|
|
Oh for sure, much better to use the language and environment made and optimised for a particular OS.
ChilliSoft must do some odd wrapper things to get ASP working on Linux. Same goes for using PHP on Windows. It can be done, but it would not be as good as using ASP on Windows.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
Hi,
We have the following problem. On the server, we have a large string.
This string, should be downloaded by the user, as a seperate file. For performance reasons, we can't create a file on the server, containing the string, that the user could download. The string has to be sent to the client and from there be saved as a file. Can anyone give a hint on an elegant solution to this problem?
Cheers,
henrik
Henrik Sternberg,
Cambridge Technolgy Partners, Germany
www.ctp.com/ce
henrik.sternberg@ctp.com
|
|
|
|
|
Henrik Sternberg wrote:
Can anyone give a hint on an elegant solution to this problem?
Yes:
Create an ASP page with this code:
Response.Expires = -1
Response.ContentType = "aplication/plain"
Response.AddHeader "content-disposition", "attachment; filename=yourfile.txt"
Response.Write yourlongstring
And IE will start the download process with yourfile.txt as the default filename.
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
|
|
|
|
|
Is there a way of creating Activex controls (similar to the windows user control in VB 6.0) in VB.Net. I want to use such a control in Web forms or HTML page.
Currently I am able to use an Activex control (windows user control) created with VB 6.0 in ASP.Net web form. Similarly I created a Windows user control in VB.Net and when I added the control in ASP.Net application's tool box using 'customize tool box' option the control shows up, but is greyed out.
|
|
|
|
|
hi there.
i m trying to create an Excell-like spreadsheet.
i used the "dynamic propertis" which work so slow , but the make my
life easier.
my prob is , how can i edit the cells at runtime?
at first , i place 500 textBoxes (each cell) , but the page
becomes extreamly heavy.
then , i handled the onclick of the table , and if the srcElement id TD , i place a previously created (absolute positioned) TextBox over that cell and display it.
the problem is in getting the CElls Cords. if i could use TextArea it was perfect cause it gives me absolute screen positions. but its a TD so i cant.
i used TD.getBoundingClienRect. it worked at first. but when i set the page&table to "Direction:RTL" , it was mis-accurate (like it didn't take something in account. maybe the scrollbar that moved to the other edge of the screen , but i don't like the idea of handling it manualy.).
also , if the page was scrolled down , the GetBoundingClientRect also mis-accurate (gives me a much higher top position (even if the item is in the page's view area ... ).
and if i use the mousewheel while editing , the table moves offcourse , but the textBox isn't...ouch... (this i solved by handling the MouseWheel and a custom flag indicating we are in the middle of editing (so event.returnValue=false).
any suggestions... please... its URGENT...
thanks .
david.
|
|
|
|
|
hi ,
eventualy , i create the TextBox dynamicly (resetting the InnerHTML
attribute). i m not sure it works faster cause IEx have to recreate and destroy a textBox on each edit. but it solves the repositioning and the scrolling&rtl problems.
now i have 2 things that didn't solved. i have to retain the value of the cell while editing cause the other cells uses the cells InnerText in their expression. removing the InnerText when overriding the InnerHTML attribute with an "INPUT" , will cause the other cells to be deleted untill the user finishes typing and the innerText is resetted. any solutions? (i try setting an &nbs; insinde the innerText while editing , but this made the cell multiline cause my textbox has a height&width 100% (have to...).
second , that Dynamic properties works so slow... and the CPU is 100%. any suggestions as of how to make it faster? i don't have time write my own "cell_on_value_change" routine...
thanks...
|
|
|
|
|
HTC ViewLink Content does not allow (successful) cut/copy/paste operations when it is viewed via an IFRAME. The context menu is displayed but does not perform successful operations. This does not occur when the same file is viewed in its own window.
Is this a bug or am I missing some information..
Given an IFRAME in an HTML file:
<HTML><HEAD></HEAD><BODY>
<IFRAME src=page1.html></IFRAME>
</BODY></HTML>
And this HTML file (page1.html):
<HTML xmlns:myNameSpace>
<?IMPORT namespace="myNameSpace" implementation="IMP.htc" >
<HEAD>
</HEAD>
<BODY>
<myNameSpace:myTag />
</BODY>
</HTML>
And this HTC ViewLink Behavior Implementation file (Imp.htc):
<PUBLIC:COMPONENT tagName="myTag">
<PUBLIC:DEFAULTS viewLinkContent/>
</PUBLIC:COMPONENT>
<BODY>
Cannot cut/copy this text when parent document is in an IFRAME"
<INPUT VALUE="Cannot cut/copy this text when parent document is in an IFRAME">
</BODY>
Cut/Copy/Paste operations are not successful on the HTC ViewLink Behavior Implementation Content file if the content is being viewed thru an IFRAME or FRAME
ie IFRAME-->HTML File containing Master Element-->HTC ViewLink Content.
Cut/Copy/Paste operations are successful however if the content is not viewed thru an IFRAME or FRAME
ie HTML File containing Master Element-->HTC ViewLink Content.
What do you think?
|
|
|
|
|
hi
i want to make a chat application in ASP. i want someone to give me a guideline on how to make it.
Please someone should help me over it
Bye.
|
|
|
|
|
Well there are several ways to do it. But it all boils down to what you have available and how many people will be using it. I did some work for a company that needed something quick to allow them to chat in realtime with customers. They were expecting about 10 concurrent users so I used a combination of cookies and application vars. Application vars carried the actual chat and authenticated via the cookie.
Basically had people log in and they could see only the conversation to which they were invited. Not a very scalible solution but worked perfectly for them.
Fear not my insanity, fear the mind it protects.
|
|
|
|
|
can u please give me some more details like, how do many customers can talk to one guy. like how to chat to each individual in a separate window.
|
|
|
|
|
We have a pay service that provides us information, via web, on a daily basis. I am trying to build an application to automate the logon and file download that a user has to do today. I have started with the webbrowser control to hit the site and login and then use the WebClient.DownloadFile() to get the .PDF files. There web server sees this attempt as two different sessions from different computers. So I added some headers to the webclient to make it look more like the WebBrowser control request:
Me.WebClient1.Headers.Add("User-Agent", "Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SALT+1.0.3404.1+1007+Developer;+.NET+CLR+1.0.3705)")
Me.WebClient1.Headers.Add("Cookie", Me.AxWebBrowser1.Document.cookie())
Me.WebClient1.Headers.Add("Referer", Me.AxWebBrowser1.Document.url)
My last option would be to use Me.AxWebBrowser1.Document.Links(intPDFFileIndex).Click() and a SendKeys combination to do it all from the Web Browser control.
I have not seen much help anywhere for automating downloading of content in .NET. I can't be the only one wanting to do this? Right?
Is there a better approach?
|
|
|
|
|
Hi there
I have a index.html file that contains 3 frames. I would like the header frame to update first, then the navigation bar frame and then the content. At the moment it seems like they are loading simuteonously?? and the "content" which is the smallest of the frames appears first. Is there a method to load the header frame, then the next etc. without slowing the upload process?
tx
|
|
|
|
|
ok dude..basically what you need to do is load the next frame from the previously loaded frame...
so lets say that you a have a frameset composed of 3 frames.. something like:
<br />
<frameset rows="100,*" border=0><br />
<frame src="top.html" name="frame1" border=0 scrolling=no><br />
<frameset cols="50,*" border=0><br />
<frame src="blank.html" name=frame2 scrolling=auto><br />
<frame src="blank.html" name=frame3 scrolling=auto><br />
</frameset><br />
</frameset><br />
so you have frame1 through frame3. Notice that frame2 and frame3 have as a src a blank.html (I'll explain why in a bit).
since you want that frame2 loads after frame1 does... you will place the following code in top.html (the file in frame1)
<br />
<html><br />
<head><br />
<script language="JavaScript" type="text/JavaScript"><br />
<!--<br />
function MM_goToURL() {
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;<br />
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");<br />
}<br />
</script><br />
</head><br />
<br />
<body onLoad="MM_goToURL('top.frame2','left.html');return document.MM_returnValue"><br />
you will do the same thing in left.html (the second frame)...but changing only the target frame and the file to load:
<br />
<html><br />
<head><br />
<script language="JavaScript" type="text/JavaScript"><br />
<!--<br />
function MM_goToURL() {
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;<br />
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");<br />
}<br />
</script><br />
</head><br />
<br />
<body onLoad="MM_goToURL('top.frame3','index.html');return document.MM_returnValue"><br />
thats pretty much it. Keep in mind that every time you reload the site, the process will repeat itself.
hope it works.
luck,
Jon
x-zd Designs
|
|
|
|
|
I'm trying ot use the ASP FileSystemObject to create new folders in my web application and unable to do so.
The FolderExists call seems to work but when the CreateFolder function is called the application locks up. I've tried giving full access to iuser and shared the c:\ drive as well as shutting down zonealarm and norton (Only while offline) but nothing seems to help.
This is the simple code I'm trying to use.
Any hints would be appreciated.
<%
Dim objFSO
Set objFSO= Server.CreateObject("Scripting.FileSystemObject")
'Create the folder
If Not objFSO.FolderExists("C:\newFolder") then
objFSO.CreateFolder("C:\newFolder")
End If
%>
Tom.
|
|
|
|
|
Usually this happens when you have Norton Antivirus installed with Script Blocking enabled (even if NA is disabled by itself). So you should disable the script blocking in Norton to be able to use FileSystemObject. To read more about this problem, here is the link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;295375[^]
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Hi, everyone!
I have referenced a lot of materials but still do not
understand the meaning of the event.
for example,
--------
<BODY scroll=no ONLOAD="initialize()" ONSELECTSTART="return false" TOPMARGIN="0"
LEFTMARGIN="0" topmargin="0" marginheight="0" marginwidth="0" class = "color1">
--------
Who can give me a simple explanation about the meaning and function of
ONSELECTSTART?
Thanks in advance,
George
|
|
|
|
|
George2 wrote:
Who can give me a simple explanation about the meaning and function of
ONSELECTSTART?
Basically it lets you catch the begining of the onselect event of many elements on the page. Select happens when you click on an element or navigate to it (using tab, shortcut keys, autofocus etc.)
So you could catch the begining of the select event of a hyperlink, check something else and then return either true or false to let the rest of the event through or cancel it (maybe the person could only select the hyperlink if they have typed in something in anothe text box for instance.)
Frankly though it sounds overly complex and I have never seen it used (or even heard of it) before today. OnClick/OnSelect etc. give most of the control you need.
I think the more important question is: Why do you want to know about ONSELECTSTART and why are you putting it on the BODY element? What is your requirement?
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
Thanks, Paul buddie!
I am just reading source codes of a project for
learning purpose.
George
|
|
|
|
|