Strange.. with my installation of the Zend Framework
<?php echo $this->user; ?> works fine but
<?= $this->user; ?> does not work
Anyone have an idea what is the problem ?
I'm using gotos and a lot of them. C++, PHP or COBOL - I use them on nearly all occasions where everybody else would use functions or even classes.
Yet my code is
Clear
Maintainable
Bug-free
Fast
So why does everybody I meet tell me about how bad gotos are? Are there any facts that show that they are "bad"?
(Sorry for the title, I don't really know how to phrase that :-) )
I have a table that has a date and a uid fields.
I need to get the number of uid for each date, currently I'm doing it in php running multiple queries like this one:
SELECT COUNT(uid) FROM users where Date = 'xxx';
Is there a simple way to achieve this with only an sql query?
Hello
I want to design a WebService for communication between Win Mobile 6.5 based Palm device and a PHP web server. The Palm device software will be developed on .NET compact framework. The communication between web server and device I envision as XML over HTTP. I want a tool that will let me design the Webservice (interfaces, methods) and then generate the xsd schema together with xml messages for the communication. Can you recommend something?
Regards
I am trying to patch dmenu with the files provided here: http://aur.archlinux.org/packages.php?ID=27334
I do not know how to do it, I've read that I should do patch file-to-patch the-path, but in the patch provided there is more than one file involved. I've tried patching manually but I failed, it will not compile.
Okay... Seems i can't find it with google... so here you go SO ;)
How do i empty the drupal caches:
without the Devel module
without running some PHP Statement in a new node etc.
without going into the database itself
Effectively, how do you instruct a luser to clear his caches
i try to use the next code to load cforms II plugin only on my CONTACT PAGE
(http://www.deliciousdays.com/cforms-plugin/)
#/template/functions.php
add_action( 'wp_print_scripts', ' ', 100 );
function my_deregister_javascript() {
if ( !is_page('Contact') ) {
wp_deregister_script( 'cforms' );
}
}
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
if ( !is_page('contact') ) {
wp_deregister_style( 'cforms' );
wp_deregister_style( 'style' );
}
}
but doesn't work
the code worked for contact form 7
( http://wordpress.org/extend/plugins/contact-form-7/)
I can only find samples using php or curl.
I want to do something like
https://graph.facebook.com/<app_id>/accounts/test-users?
installed=true&permissions=read_stream
and the response is:
{
"error": {
"type": "OAuthException",
"message": "An access token is required to request this resource."
}
}
as well is should... so how do i get the access token in JavaScript (using the JavaScript SDK obviously).
thanks!
I need inspiration and motivation so I'm trying to find examples of different programs that have interesting and attractive UI's created free using wxPython.
My searches have been slow to find results. I'm hoping you guys know of some of the best ones out there.
btw, I've seen these:
http://www.wxpython.org/screenshots.php
and the list under "Applications Developed with wxPython" on the wxPython Wikipedia page.
Update: only need Windows examples
I want this to be on top... how can I do this and not have it go underneath...
http://opentech.durhamcollege.ca/~intn2201/brittains/chatter/signup_step2.php
I think there is a way in CSS to make stuff go on higher layers I think I read something about it a few years ago but I forget what its called.
As I know, in PHP, we need to connect LDAP over SSL in order to change user password.
Is there another way, E.G, other language (JAVA / ASP) to change LDAP password without SSL required?
Thanks.
Updates:
I get "Warning: ldap_mod_replace() [function.ldap-mod-replace]: Modify: Insufficient access" when I try to modify self account password.
If i try to change other user password, I get no error message, but the password still stick to the old one.
I want the wordpress sidebars got an specific height, NOT equal to the content to the post/page. Just 400px, for example. I`m working with atahualpa.
Which code in wich php i got to hack?
Thanks
hello all
i have 3 modules in my application , like following sturcture
application
|
default
|---models
|--views
|--forms
|--controller
admin
|---models
|--views
|--forms
|--controller
cars
|---models
|--views
|--forms
|--controller
bootstrap.php
how could i create autoloader for all forms and models in mouldes?
thanks?
Hi,
I've been wondering if there is any chance to use dtrace ustack helpers on Mac OS X for python and other interpreted languages? I know that you can figure out what python and php on OpenSolaris are doing when giving the ustack some extra memory for a buffer. Is this somehow possible on Mac OS X?
Regards
raichoo
In my last Drupal project we were 5 people doing coding and installing new modules, at the same type our client was putting up content. Since we chose to have only one server for simplicity there were times were many people needed to write to the same files like style.css or page.tpl.php or when someones broken code would prevent others from working
Are there any best practises for a team that works with Drupal? How can leverage code repositories or sandboxes?
These two querys gives me the exact same result:
select * from topics where name='Harligt';
select * from topics where name='Härligt';
How is this possible? Seems like mysql translates åäö to aao when it searches. Is there some way to turn this off?
I use utf-8 encoding everywhere as far as i know. The same problem occurs both from terminal and from php.
I have just stumbled upon Bad Behavior - a plugin for PHP that promises to detect spam and malicious crawlers by preventing them from accessing the site at all.
Does something similar exist for ASP.NET/ASP.NET MVC?
I am interested in blocking access to the site altogether, not in detecting spam after it was posted.
There is an email service ExactTarget with web service API.
There are samples (in php though) for sending email to whole list instantly, or to single subscriber by triggered action.
It's pretty hard to get in it's documentation, and I couldn't find explanation how to send email to a single subscriber instantly without having some triggering actions.
Any help or advice will be great.
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
1 and I've uploaded all the files onto the file server that I am using 000webhost.com however Im having a few problems with the modrewrite I keep getting re-directed to http://error404.000webhost.com/?
Does anyone know how to setup cakephp 2.1 on a shared area??
Im getting this error now: Fatal error: Call to undefined function pluginsplit() in /home/a4300629/public_html/lib/Cake/Cache/Cache.php on line 151 not really sure how this error has come about, any ideas?
Thanks in advance.
Hello,
Because the IP of the SMTP server that is being used by my Gridserver account at Mediatemple is blacklisted I'm looking for an off site SMTP service to send mails from my PHP application to (verification mails, notifications, etc). I'm using CampaignMonitor.com for mass mailings, but for all other mails I would like to use another service. I've checked out smtp.com and smtp-server.com which look okay, but maybe there are better out there? A reporting feature for undeliverables are a huge plus!
what are your recommendations to use as a source control, project repository for a windows - .NET development environment (2 coders, possible one using the system)
thanks
addition: also the team includes 3 developers. 1 vb6 moving to .net, myself in .net, and one web developer (php, javascript, etc.)
the system i am looking for would be something that easily integrates into the ide of visual studio
I am about to start developing an Android application and had a question if in Java there self naming. For instance say I had a variable named dog that held the value of scruffy.
Could I then create a variable named scruffy from that variable. In PHP it would be $$dog. That would make a variable with the name scruffy.
If this is possible please provide example