I came across this statement
Do not use "forgotten password"
functionality. But if you must, ensure
that you are only providing
information to the actual user, e.g.
by using an email address or challenge
question that the legitimate user
already provided in the past; do not
allow the current user to change this
identi...
displaying html problem with php & mysql
Hi basically i have a quick mysql_fetch_array script to display the contents from the db like below:
$sql_select_jobs = $db->query("SELECT * FROM `probid_jobs`");
while ($jobs_found = $db->fetch_array($sql_select_jobs)) {
$template_output .= "<div class=\"listed-jobs\" style=\"border: 1px solid ...
Hi
I have this PHP code :
$query = "SELECT * FROM news WHERE news_active = 1 AND news_type = 1 ORDER BY id DESC";
$q2 = "SELECT * FROM st_photos WHERE id = 4 LIMIT 1";
$r2 = mysql_query($q2);
$row22 = mysql_fetch_array($r2);
$news_set = mysql_query($query);
$news_set2 = mysql_query($query);
if (mysql_num_rows($news...
Hi,
I'm curious if anyone knows how I can save the current state of a php application (the one that is currently in memory, with everything including declared variables, $_POST, $_GET) when an error occurs?
Currently Zend Server does this. by monitoring the application and saving the snapshot of the php's memory etc. and shows a log r...
I am working on a osCommercre project, in which there pages for uploading the reference files, we have given functionality to upload the file upto 100 MB size,
Now the client Complains me that customers are complaining for the late upload of files,
what should i do to increase the upload speed?
...
I have an array of timezones:
$timezones = array(
'Africa/Abidjan',
'Africa/Accra',
...
'America/Argentina/Buenos_Aires',
'America/Argentina/Catamarca',
...
'Pacific/Wallis',
'UTC',
);
How can I easiest split this array so that I get one like this:
$timezones = array(
'Africa' => array('Abidjan', '...
Hi there,
I'm going to write a booking website using php and ajax and I really can't figure how to mix these two tools with a strict object oriented design.
I was used to make a call using ajax to a php web page that returns the right set of values (string, xml, json) in a procedural way.
With object oriented programming how is it sup...
Hi ,
I know ,
Posting twit into twitter using API ,
But is it possible to delete posted tweet using api ,
Please advise me ,
Thanks
...
i have a messaging system and it works fine but i have it so when its read it mysql_querys and sets read to 1. so that way in futer you can tell if its opend. it does not update here is the script for viewing the message where its suppose to update. THANKS
<?php
session_start();
require "../scripts/connect_to_mysql.php";
if (isset...
Hi
I want to have multiple login with in single zend application.
I have five sections A,B,C,D,E and four type of users (P,Q,R,S) including anonymous user.These section have sub sections. Section A,B,C required login to access them. Section D and E can be accessed by all type of users but there are some action that can be followed by s...
I have had an attack on my web server where .html files were copied by FTP into a public html directory.
The FTP password was very strong.
I'm trying to determin whether PHP initiated the FTP transfer. Is there an Apache or Nix log file that can give me this information?
Additional information
I have FTP log entries which seem to show...
I have a function that gets a value from the database and returns it. I call the function to store it into a member variable but I get the following error:
Parse error: parse error, expecting `','' or `';'' in I:\wamp\www\deposit\classes\Site.php on line 14
This is the line that causes the error
public static $depositmoney = self::ge...
I am facing some problem with MySQL database. actually It was fast when I did testing on My localhost..but when I uploaded to public server it is slow. data s are displaying but taking more time than usual. there are 7 table which opens to read for a single page. so what I did is for first table I added username and password. for last ta...
I think this is just something I haven't come across before!
$r = $database->currentChallengers($f, $g);
while($row=mysql_fetch_assoc($r))
{
$u[]=$row['username'];
$i[]=$row['userid'];
$s[]=$row['streak'];
}
for ($i = 0; $i < count($u); $i++)
{
fore...
I am working on a osCommerce project, which is accessible on the main server, but when i try to access the admin portion of the project on my LOCALHOST the login page do accepts my login, ideally it should accept my login and redirect me to index,php..
below is the login script i am using..
<?php
require('includes/application_top.php'...
I have a VPS Linux webserver with php installed.
I want to code some search engine or data mining stuff in one application which i am thnking of building i python.
I want to know that is it possible that i can use python and php together
like calling function of python in php and vice versa
As it is my VPS server i can install anythin...
Good morning,
I am trying to pass a string to twitter, using the following code
// The message you want to send
$message = "http://www.smartphonesoft.com/index.php?option=com_mtree&task=viewlink&link_id=" .$link_id . " " ."Android Software" . " " .$link_name . " " . $metadesc;
// The twitter API address
$url = 'http://twitter....
Hi, I'm making a restaurant search in which users can filter the search based on many criteria...
I have three tables:
Table1 - **Restaurant**
------+----------+----------
id + name + place
------+----------+----------
1 Rest1 Ny
2 Rest2 La
3 Rest3 Ph
Table2 - **r_type**
------+-----...
Hi...
I want to show checkbox selected in edit section if there have value in DB. i m using cakephp 1.3 version .in edit section how i will show valued checkbox true.
Please help me as soon as possible.
...
My OS environment is linux.
I have a php file in this folder - /var/www/html (say... test.php)
I also have a folder called DATA_SOMENUMBERHERE in the same directory.
Inside test.php, I need to find out the SOMENUMBEREHERE.
In other words, find the folder whose name starts with DATA_ and get the remainder part
of the string.
One way ...