473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Clear my Doubts Immediately on PHP Coding

1. When i want to add a link in content window for php .. i am facing problem with the path settings...

I am getting my link like http://localhost//wwww.mnc.com...

THe main problem is i need to get like wwww.mnc.com

Can any one give relay for this question, this is very urgent..

2. When i am adding a link in to selection selection like

var hyperlink="http://www.mnc.com";

document.getElement('content').contentWindoe.docum ent.createCommand("createLink",false,hyperlink)

This code is giving probelm to me

When i am going in to My Content window , i am getting my url like

http://localhost//http://www.mnc.com"

Can any one give relay for this question, this is very urgent..

3. When i want to add alink for my selection sentence which is in content window Editor (WysiWyg) in php

I am getting the big probelm

My added link was not coming in correct way...

var obj =window.opener.document.getElementById('wysiwyg' + qsParm['wysiwyg']).contentWindow.document.selection.createRange();

var strLink="<a href=http://www.mnc.com>"+obj.text+"</a>";
obj.cutHTML;
obj.pasteHTML(strLink)


Helpers can help me to this ID: suman_joyful007@yahoo.com
Nov 7 '07 #1
1 2611
1. When i want to add a link in content window for php .. i am facing problem with the path settings...

I am getting my link like http://localhost//wwww.mnc.com...

THe main problem is i need to get like wwww.mnc.com

Can any one give relay for this question, this is very urgent..
First: I don't get it. w4?

Secondly: I assume that you are not talking about doing something like Apache URI rewrite.

And for the third: http://localhost//wwww.mnc.com -- wouldn't it mean that you are running your site locally with the sub dir "wwww.mnc.com"? Don't you need to upload your site to a online web server hosting stuffy thingy?

If all above is wrong, and it is PHP that is "deforming" your URI's then you should perhaps post some code...? (any function that processes the URI)

2. When i am adding a link in to selection selection like

var hyperlink="http://www.mnc.com";

document.getElement('content').contentWindoe.docum ent.createCommand("createLink",false,hyperlink)

This code is giving probelm to me

When i am going in to My Content window , i am getting my url like

http://localhost//http://www.mnc.com"

Can any one give relay for this question, this is very urgent..
I would say that your problem isn't related to PHP at all. It seems that your local server config needs some adjustments. It seems that you are trying to run a .com domain thingy from you local server.

3. When i want to add alink for my selection sentence which is in content window Editor (WysiWyg) in php

I am getting the big probelm

My added link was not coming in correct way...

var obj =window.opener.document.getElementById('wysiwyg' + qsParm['wysiwyg']).contentWindow.document.selection.createRange();

var strLink="<a href=http://www.mnc.com>"+obj.text+"</a>";
obj.cutHTML;
obj.pasteHTML(strLink)


Helpers can help me to this ID: suman_joyful007@yahoo.com
This last one sounds like a JavaScript exclusive question. However, chances are that if you fix the above problem (no more http://localhost before wwww.mnc.com) then this problem would magically cure itself.

I'm no expert or stuff, but... Eh, there you go.
Anyway, good luck to you.
Nov 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: abbas reji | last post by:
--0-599929911-1059996886=:4358 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline ...
17
by: Rich S. | last post by:
Hello Just like everyone else, I am excited about how easily one can create Windows applications with the .NET platform, but for shareware, I have some serious reservations 1. Your code can be...
5
by: Bharat Shetty | last post by:
project doubt 1) ping all defined machines in the network from time to time, and alert (by an indicator on a web page or screen) when some machine is down (2) periodically check HTTP and FTP...
6
by: ritesh | last post by:
Hi, I have been reading some text on C and C++ (i.e advanced books). One of the books mentioned that C++ requires a runtime support whereas C does not - what the author was trying to say was...
2
by: VMI | last post by:
I'm having doubts as to how the compiler interprets this If statement: bool bIsTrue = true; if (! bIsTrue) { //RUN PROCESS } Here, will "RUN PROCESS" be executed? Or is this just wrong?...
5
by: nx-2000 | last post by:
I've got a very large C# forms app and now that its being used in bigger environments we're getting a steady stream of "why does it do this?" problems. The most nagging of which right now is that...
1
by: AD | last post by:
Hi I am trying to read elements of a vector from console (cin) in two steps ie, read a list of numbers from cin. Sort these. Then read from cin again and append in same vector. ...
12
by: divya | last post by:
1. If The size of the array is unknown during programming time then how is such array declared?? Suppose there is an Array named arrClashname(size unknown at start), Now when the clash occurs...
1
by: thh108688 | last post by:
Hi there, Is anyone know how can I clear the contents of the form immediately once either one of the command buttons are pressed. When i create the second record, the previous content are still...
2
by: sathishc58 | last post by:
Hi All I recently studied about "Forest" Datastructures. Supposed we have two trees. Could not represent diagramatically Tree a ====== 1) 10 is the root node 2) 9 is the
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.