I'm trying to connect to a website I made with auth that uses MD5.hex(password) to encrypt the password before sending it to the PHP. How could I achieve the same encryption in C#?
hi,
<div class="clickme"> click here </div>
I want to make that div clickable and it should trigger following function:
<script type="text/javascript">
$(document).ready(function(){
$("#generate").click(function(){
$("#quote p").load("script.php");
});
});
</script>
how can I make that work?
I want to find the token's name passed by augment into a function.
class Norm
{
const STR_NORM = 0;
const INT_NORM = 0;
}
function foo($Arg1, $Arg2 = NULL)
{
getConstName($Arg1); # Should Return STR_NORM;
return $Arg1, $Arg2;
}
echo foo(Norm::STR_NORM);
Is there any way to impalement getConstName via the PHP Reflection API?
Because wikipedia is open source, I can modify anything I want. But what happens if someone deletes, adds bad content, modifies useful content ? What does wikipedia do to prevent that ?
The last question is available for any other open source software: linux, php etc. How do they know which contribution is useful and which is harmful ?
Thank you.
I want to change the page, I'm not sure if it is possible with JavaScript, so I tried with HTML, and it failed.
if (text=="home") {'<meta http-equiv="REFRESH" content="1;url=index.php">'; return;}
Any ideas on how to do this?
I was coding in NetBeans (PHP) today, and my hand slipped while I was typing a constructor. It must have hit a keyboard shortcut, because a constructor that was designed for a child class appeared on my screen (i.e. it called the parent constructor, so it's not the Insert Code -> Constructor, I don't think). Does anyone know what the shortcut is?
What is the best language for developing a website. I know its kind of an odd question. I recently saw a lot of articles for developing a website and they all chose PHP. I mostly work in Java technologies, so was wondering is Java limited to web application and not for websites.
Hello
I just bought new domain for my web page.
Is it good to use php redirection to the new domain and what are the exact headers that I must send to google bot to just renew the address and keep the page rank without loosing position in search results for the specific keyword ?
Regards
hi,
how can I add an Eclipse project to my Eclipse PDT ?
I've a Drupal installation on my hard-disk (a subfolder of Eclipse workspace).
I've tried create new PHP project from eclipse, but it seems not to work.
I've successively tried to import the Drupal project but Eclipse only recognize the SimplyModern project from drupal themes folder, and not the main Drupal project.
thanks
I am interested in learning Objective C so I can develop for the iPhone and Mac. I am a web developer with lots of experience with HTML, CSS, Javascript, and PHP, but I have no knowledge at all of C or Objective C. What is the fastest and easiest way for me to learn Objective C? Can you recommend any good resources for getting started?
I've a site hosted in a shared enviroment.
Every time I do a and add some validation controls the ASP.Net generate a script call to a WebResource.axd who leads to a exploit site:
www2.shopezlive.com/main.php?.....
How the hacker could compromise the assemblies of .Net and how can I get rid of this mess?
I am using PHP open source and I need the map of a country highlighting all the states in different colors. Once a particular state is hovered over, some info about the state needs to appear. Please suggest me how to do this. Is it possible to do this using some basic stuff ... I mean nothing like what goes beyond my knowledge... Not sure if the tags that i have posted this query in is right...
So I rewrote my paths to something like: URL/really/nice/paths/ using mod_rewrite rules like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
</IfModule>
The question is how could I rewrite the paths for js/css/image files too, so when they are requested with a relative path from URL/really/nice/path/ to be served from URL/scripts/, URL/styles/ and URL/images/ folders instead? Can this be done without using RewriteBase?
hi,
I need to call a function with some javascript everytime my View is updated (I enabled ajax option, there is not page refresh).
How can I make it ? I'm inspecting php code in Views to find it, but I cannot find it.
thanks
i have two large tables in a database.
table 1 with 2 fields
rank,name
and
table2 with 2 fields
rank,name.
both are of 1 million records.
can you write php sql code to fetch those records which exists in table2 but does not exist in table1.
We have some apps written in classic ASP, ASP.NET and PHP. They are all in one same web server.
We want to transfer between the apps who is currently log in or none, we do not need to transfer everything in the session object.
What is the best way?
We need secure and high performance. Thanks.
<form enctype="multipart/form-data" method="post" action="mailto:[email protected]" accept-charset="UTF-8">
Is there a problem if mails are sent this way .. i wanna avoid using PHP codes..
Hi all
Im looking for some resources and information around agile web development. I have done a search and found a wiki page and lots of other sites around the subject. Most of these sites are orientated around Ruby on Rails. Does anyone know of any sites or resources that cover other platforms and languages like asp.net and php or are even generic.
Thanks
Hi Guys,
could you help me with following questions.
How do i get the:
absolute/relative current url
http://www.example.com/subdir/controller/action
/subdir/controller/action
absolute/relative application url
http://www.example.com/subdir/
/subdir/
I could of course use native php to get it but i think i should rather use ko3 functions.
Any idea how that works?
Thanks in advance!
I have to create an SQL Query to get all rows starting with a specific character, except if the parameter passed to the (PHP) function is 0, in that case it should get every row that does not start with A - Z (like #0-9.,$ etc).
What is the easiest and fastest way to get those rows?
DB: MySQL 5.1
Column: title
The most egregiously redundant code construct I often see involves using the code sequence
if (condition)
return true;
else
return false;
instead of simply writing
return (condition);
I've seen this beginner error in all sorts of languages: from Pascal and C to PHP and Java. What other such constructs would you flag in a code review?
How does escrow feature work in freelancing sites? Are they using any 3rd party escrow providers? OR Is it possible to develop the same feature using PHP? I know, it is possible. But I dont know how to develop. Please advise