Hi there:
We are developing a web site in PHP, and we have to use sessions. The site will be published in a servers cluster, but we have a dude: could that work?
Thanks.
I am sorry about my English.
...
I'm trying to wrap my brain around getting data into my project in a way that I can use..
I want to use MySQL & PHP my Flashbuilder app and I'm not populating a datagrid so......
For simplicities sake, In my database table I have 3 columns "ID, Title & Content".
I want to use this to populate the different states in my flashbuilder pr...
I'm trying to read values from $_SESSION which may or may not be set, while avoiding undefined index warnings. I'm used to Python dicts, which have a d.get('key','default') method, which returns a default parameter if not found. I've resorted to this:
function array_get($a, $key, $default=NULL)
{
if (isset($a) and isset($a[$key]))
...
Good Morning,
I'm starting a PHP/MySQL project that will include a registration page where the user will be prompted to enter their email address. The requirement is that certain email address domains will not be permitted access to the website. We want to disallow registration of such user's but not sure how to make this happen.
O...
There is a company that uses salesforce software to keep track of all customers and the performance of the employees. I am building a points website, which is about the manager rewarding points to employees for a job well done. I want to integrate the info from salesforce software database about the employees and present it on my website...
Hello,
I installed php and mysql on a Windows 2003 server running IIS6. I uncommented the lines for the mysql and mysqli extensions. I am able to run phpinfo, and am seeing the mysql and mysqli sections in phpinfo.
I then run the following code to attempt a connection to the database -
<?php
$link = mysql_connect('localhost', 'root',...
I come from a C and C++ background but also play with some web stuff. All us C folks (hopefully) know that calling feof on a FILE* before doing a read is an error. This is something that stings newbies to C and C++ very often. Is this also the case for PHP's implementation?
I figure it has to be because the file could be a socket or an...
I'm running a PHP web app running on Ubuntu 8.04 which is interfacing with SQL Server 2005. I use FreeTDS to connect to MSSQL2005 with the following lines in my freetds.conf
[MYDB]
host = 192.168.1.11
port = 1433
tds version = 7.0
client charset = UTF-8
This works perfectly however if I switch to tds version = 8.0 (whi...
Hi Folks,
another encoding question.
On my server, I want to have the possibility of having mp3-files with utf-encoded filenames, for exampe Начало.mp3 .
Now when I save (or rename via my FTP client) a file to Начало.mp3, after refreshing, this file will automatically be renamed to ??????.mp3.
I added a htaccess to both the parent an...
hello, everyone! i have a question about sessions hopefully someone can help me with. I have a apache test server set up that uses virtual hosts for http and https. I put the following files in my https and it works:
mytest.php:
// this starts the session
session_start();
// this sets variables in the session
$_SESSION['color']='red';
...
I'm trying to query posts based on a number of ID's that are contained in an array.
My array (called $my_array) looks like this:
Array
(
[0] => 108
[1] => 129
[2] => 145
)
And my Query looks like this:
<?php query_posts(array('post__in' => $my_array)); ?>
However this just returns one post, the post has the ID of the f...
I have an octal that I am using to set permissions on a directory.
$permissions = 0777;
mkdir($directory, $permissions, true)
And I want to compare it to a string
$expectedPermissions = '0777'; //must be a string
if ($expectedPermissions != $permissions) {
//do something
}
What would be the best way to do this comparison?
...
load failed -- arguments: [Object api=Object, Object request=Object reader=Object scope=Object, Object tId=0 status=200 statusText=OK, SyntaxError: missing } after property list message=missing } after property list]
I got that error by adding an exception to my store but don't see any real error in my code...maybe another set of eyes ...
Say you have a PHP variable called $description with the following value (that contains quotes and line breaks):
Tromp L'oeil Sheath Dress
You will certainly "trick the eye" of many in this gorgeous illusion. Add it to your fall wardrobe before it disappears.
You want to pass the contents of this variable into a Javascript function t...
I have an contact mail form on my website and i want to make this form secure enough.
Which is the best way to to this job, is there any way to hide php variables that i sent with post to another page.
Any sample or link or idea ?
Secure - i mean my data to be safe, since users will be inserting their personal data, like passport nu...
I'm nearly finished building a simple web application that would really benefit from integration with Twitter through its API. I think the best way to do this would be through following and direct messages similar to how RTM has chosen to interact with users through Twitter. I learn best by analyzing examples, so I would like to find s...
Looking for a way to cleanly override the values of databases.yml in Doctrine / Symfony in order to use my own local settings?
The idea is not touching databases.yml and using some sort of local unversioned file to override that default.
I'm trying to find out how without much success yet :/
...
I read the following question and answer http://stackoverflow.com/questions/1995589/html5-audio-safari-live-broadcast-vs-not
Still unclear how to resolve the issue in my situation:
The audio files (mp3) I am working with are stored in mySQL and pulled into the browser by a PHP script that sends the Content-length and Content-type heade...
How can I hide our main nav and use it as the home page but only for logged in users?
The following is the code for the slideshow. The MENU is an element though. Should they both be in the element file together? Before I attempt to hide when logged in? File /elements/nb_menu_home.ctp reads:
<script src="/js/loopedslider.js" type="text/...
I'm stumped on this and my searches aren't turning up anything relevant.. I need to do a while loop that will continue if either of 2 variables are true... as far as I can tell you can't do a "while ($var = '' and $var2 = ''); so I tried this, basically I figured I could just set 2 different if statements so that it would change the vari...