hi,
how do i match anything in the expression other than "certain words".
Say i have bunch of strings like this:
1234.abc.com,
asd.abc.com,
ees.abc.com,
www.abc.com
Now i want to match all the strings that do not have "www." at the start of the string.
For example in the strings above the...
hi,
i am trying to grab some foreign character from an html page and insert it into a mysql database ...
For example say the character was chinese or russian,,,when i view it on a webpage it looks fine but when i try to pass it php script it converts to gibberish,,,what should i do to convert...
hi,
i have this redirect rule which doesnt seem to work for some reason.
I have a directory called "blog" inside which the .htaccess with the rule below exists. For some reason it doesnt work any idea?
RewriteEngine On
RewriteRule ^/(.*)$ ../index.php?base=viewblog
Hi,
I have a script that executes curl on various websites. I also have 5 internal ip for my box.
Is it possible to rotate execute the curl as if it was coming from one of those IP addresses?
I thought the CURLOPT_PROXY was the option but i am not sure if this the correct method.
hi,
i am trying to understand this regex expression and i just want to clarify with the fellow users if my interpretation is right:
(?!(?:#|javascript\s*:))
the first "?" from the left means this is optional. the "!" after that means anything that doesnt match. The code inside the is...
Hi,
I am trying to append an innerHTML that looks like this:
var inn = '<javascript src="/test.js">blah..blah..blah<input type="text">';
When I append the inn to an existing div it works fine in Firefox but fails to even show up in IE....any idea how to get around this.
thanks
ro
Hi,
I have a system where i am trying to pass session between two files.
There is a file called "editor.php" and there is a file called "index.php"
when i am in "editor.php" i set certain session variables. Within that "editor.php" i call php's "file" command like this:
$fh =...
hi,
I have a string containing html where i need to use regex to match certain elements.
the string can be
ajkshajda
<form name="form1"></form>
aksdhaskjashd
<form name="form2"></form>
lakjdkjasjas
"
how would you match all the <form name=""> elements and get the "name" of the form?
thanks
Hi,
could someone give me an example of how to create a prototype for a list. I have seen examples for array, string but is it possible to create one for a list object at all?
thanks
ro
hi,
i am trying to create a drag and drop utility where i want to duplicate the "div" that i am dragging so that when the "div" is dropped the original "div" is still in original location.
i tried clonenode but its not working. Are there any other methods to create exact copy of the item.
thanks
ro
Hi,
I have never done any extensive looking into flash and I was hoping someone would guide me to a tutorial where I can create a flash animation like this site(at the top of the page):
http://www.newark.com/
Would it be possible to use xml data to make the content dynamic?
Thanks
ro
hi,
i am not sure if this is related with php but since the code i am using is all php i thought i will ask it here.
i am trying to get contents of a certain website. the contents are such that there are multiple pages and the first page has links for the rest of the pages. I can easily...
Hi,
is it possible to duplicate linux based software on a windows environment?
We have a website for clients where some of the files are path specific.
For example when a clients' website is accessed the index page is retrieved from "/home/clientid/".
Can we set up environment variables in...
Hi,
we run website for multiple clients where all the client files are stored in /home directory. each client has his own group and own name.
The problem I am facing is when apache needs to write info to file inside /home directory. Since the client by default owns the directory the apache error...
Hi,
I have a page where clients can upload contents from either microsoft word or other word processor into a text box. The system I am running the server is linux so all the end of line characters get converted to ^M (its not carat , its ctrl+V+M )
Is there a php command that can remove this...
Hi,
One of the webservers that I manage crashed last week and I need to recover the data. I have the hard drive and when I try to boot it locally I get "kernel panic". I dont have the exact error.
I tried to set it up as a slave drive. The ide cable for the computer I was trying to set it up on...
Hi,
When I am uploading an mp3 file the $_FILES info is not complete. For example the mime info for the mp3 file is:
[uploadFile] => Array
(
[name] => 43 Play That Funky Music.mp3
[type] =>
[tmp_name] =>
[error] => 1
[size] =>...
HI,
I am looking to configure the SMTP AUTH for sendmail and needed help.
I am using Fedora core 6. I am able to send email to a user using
telnet ip 25
My understanding is that once the saslauthd is running then the server needs to ask me or authenticate the username entered when I try to...
Hi,
I currently have an old and new linux servers. I am still configuring the new server but I need to transfer all the existing accounts from the old server to the new one especially the email without deleting the data in the old one. Is there a documentation on how to do this.
The old server...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.