Can you do
array['Name'];
In C#
Rather than:
array[0];
I know you can do that in PHP but is there an equivelent for C#, although im thinking highley unlikely :(
Is there a way to use javascript to determine how long someone was looking at my webpage before they closed their browser or hit the back button? Something like send a message to php page every few seconds or so in the background?
I have noticed that the quality of the images produced by the JPEGEncoder does not match that of other encoders available (i.e. php's built in image compression functions from the gd library)
Any explanation ? or hints/workarounds for improving the quality of compressed images by JPEGEncoder ??
Hi there,
i am planing to set up a new webproject which has to use a database and a model which can be presented in a browser. I looked at a lot of technologies (JSF, PHP, ..) but i could not find a free and easy framework/technology for me (in the end i prefered asp.net, but this is not free).
What can you recommend me for a new webproject from scratch?
I have a lot of customized javascript and layout design, and I want to prevent as best I can people just copying and pasting and then using it for themselves. Is there any practical way to do this, or do I basically just have to be happy my php code does not show? I want to at least make it difficult to copy my site.
Hi,
I am trying to make a script that updates the captcha image, that is loaded through live() function... It works, but it only updates the image 1 time on firefox, 2 times on safari... How can I make this to work multiple times?
jquery 1.4.2
relevant part of code:
/* captcha image change */
var rand = Math.random();
$('a.captcha_refresh').live('click', function() {
$('img.captcha').attr("src", 'captchashow.php?sid=' + rand);
});
thanks,
brm
Hi folks,
I use Smarty View, but want to benefit from theme options.
Since for theming cake use Theme View, I cant use both Smarty and
Theme at the same time.
Perhaps can combine the code but am not that familar with View eingine
core.
Already have a lot views done with smarty and do not want to recreate
all of them with plain php.
Is there a ready combined solution i.e. Themed Smarty View?
Thanks
With $.ajax i'm getting a page dinamicly generated via PHP code, in the HTML returned I need only one object ('lwrapper' in my code).
How can I grabber 'lwrapper' from 'data' returned.
this is my code
$.ajax({
url: ref, //the url
cache: false,
success: function(data){
//code to get the slide of data
//slide = $("lwrapper",data) //not working
$('wrapper').html(slide);
}
});
I have been developing websites for some time now and I hardly use any Javascript in my pages.
Whatever I can want to do with JavaScript, it is possible through PHP. Just like ajax itself. We can send a regular request instead of a ajax request, can't we? We can use "include" to include sub part of pages.
So am i missing something about javascript, that I dont know of?
Hi,
i have these methods in module1/actions/actions.class.php:
public function executeMethod1(sfWebRequest $request){
$a = 10;
sfContext::getInstance()->set('a', $a);
return $this->redirect('module1/method2');
}
public function executeMethod2(sfWebRequest $request){
echo sfContext::getInstance()->get('a');
}
When i execute module1/method1 i get this error:
"The "a" object does not exist in the current context."
Any idea?
Javi
Is there a simple :) and efficient way or reading very large number of rows sequentially using Zend_Db?
Basically I need to process entire table, row by row. Table is large, primary key sequence is not guaranteed(i.e. not an autoincrement, but is UNSIGNED INT).
What's the best way to approach this?
Environment: PHP 5.2, Zend Framework 1.10, MySQL 5.1
Hello,
this is actually an problem question from project euler site
http://projecteuler.net/index.php?section=problems&id=3
Anyway I'm not out after the solution, but I probably guess you will know what my approach is. To my question now, how do I handle numbers exceeding unsigned int?
Is there a mathematical approach for this, if so where can I read about it?
I work in a small department in a very large company. Our department operates
largely as a independent unit within the company. Each member of the team has a different role. My role within the team is a operations/admin and no one knew of my skills in programing as I never said anything before about it. I just did my work and in the free time read up on things for my own development
Our developer who used to look after our websites has left a few months ago. Now when we require edits to our websites even basic HTML changes we outsource the work. We are getting shafted big time. I could of so said something sooner to highlight my skills in this area but I guess I was just happy to do my own development projects. And one reason was they are using asp.net and I have mainly done things in php.
I only hinted before that I have done things but I did not want to reveal them before I had completed anything. I was working on something for myself that the company was also trying to implement something similar(e commerce site). I used open source and they decided to go for a propriety solution. Now I have finished my project and showed it to my boss, their project is still not completed and is quite expensive.
He was impressed with what I showed him and suggested I should go for courses to learn asp.net. that I may be able to do the development work for them and there are some big upcoming projects in the future. He said this would be a benefit for me that I should look to be doing a better then role then admin.
My employer does have a policy if relevent to the role they may support the costs of courses.
Now how do I play this what should I say to my boss. I want to get advise on which MS certified courses would be good for asp.net and how to best approach my boss to see if they will pay all the amount for the course.
And how much different will asp.net be from php.
What's the simplest way, if any, to search Twitter for replies to any username that includes <string?
eg, how to search at the same time for replies to @google, @googletech, @firstgooglers, @nogoogle ?
I'm not a competent developer with any language but I can handle some easy JS or PHP or regex & Bash scripting...snippets welcome.
Hi,
is there a "document" property named ssh? It's a simple question. I've seen this in some code at work, but no one in the office wrote the code, so I'm stucked.
The line was document.ssh.firstPing(...)
firstPing was a method in the code, that is writen in js+php. But I've searched with eclipse throughout all the code and there is no ssh anywhere.
How to convert the existing flash site into mobile version existing site in form of the cakephp frame work. We thought that html ,css,php,javascript may work all mobiles.We dont know exactly. Please tell us how many possible way to develop existing site into mobile version and also need to detect the from which browser the request is coming whether mobile browser or pc browser.
The existing site link is :This site convert into mobile version
hi,
i have to pages:
domain.com/
domain.com/post.php?id=43
Inside the second page i have added Disqus comments... but i need to know the number of comments in that post in the first page (post list). Is it feasible?
I had a rule in the .htaccess file in my root directory that said:
RewriteCond ^(.*)$ $1.php
I've completely rewritten the file since then, and the rule is still being applied. I tried restarting the Apache server and the physical server with no luck.
I've also scoured the directory and there are no other .htaccess files in there or any subdirectories.
Does anyone know what might be causing something like this to happen?
I need to supply a binary license file to a java program. What is the best way to do this? The data will change all the time so I don't want to have to write a file and then read it back every time.
The Data is coming from a PHP page
The following is a great tutorial about using the Language Class. But I think the author forgot about creating the controller file. I just started using CI today and I'm not sure how to name the controller file for the view "example.php".
The tutorial:
http://codeigniter.com/wiki/Internationalization_and_the_Template_Parser_Class/
I'm storing a string in a CCK field.
The problem is getting it back out. I have a node-node_type.tpl.php and ask it
$node->content['field_custom_map_data']['#value']
That returns html, three nested div's and uses HTML entities, I want the pure text, as entered.
What is the Drupal 5 way to fix this?
I have a huge table that is mainly used for backup and administrative purposes. The only records that matters is the last inserted record.
On every hit to order by time inserted is just too slow. I want keep a separate table with the last inserted id.
In PHP I now insert, get last inserted id, and update the other table.
Is there a more efficient way to do this.
I am using the registration form that is already available in the user manager option in my website.
But once I click on the register button I get this message:
Server error The website encountered an error while retrieving
http://prachi.matrimony4me.in/index.php/sample-sites-2?task=registration.register.
It may be down for maintenance or configured incorrectly. Here are
some suggestions: Reload this webpage later. HTTP Error 500 (Internal
Server Error): An unexpected condition was encountered while the
server was attempting to fulfill the request.
Hello,
I have a domain www.example.com
In the domain, www.example.com/write directory is chmod to 777. Now, suppose, if I want to create a new directory like www.example.com/write/new from www.some-domain.com, what should I be doing.
I know PHP, Python. Please relate the answers to this.