What are the best current libraries/methods to authenticate users without the use of a CMS or heavy framework?
Responses should include suggestions for anything you think should be considered the standard for new PHP development involving user authentication.
...
It's now 925*1139,I want to change it to 90*110.
...
I am making a simple blog and I want to use a class for this. I am wondering what the best way of doing this may be. There are 3 methods so far that I can see. I made a class that got links, posts and comments. The problem with returning all of this data in a single array was that the data that only should have been echoed a single time ...
I get the following error.
Fatal error: Cannot increment/decrement overloaded objects nor string offsets
Here is the code.
$mysqli = new mysqli("localhost", "root", "", "sitename");
$dbc = mysqli_query($mysqli,"SELECT id, label, link_url, parent_id FROM dyn_menu ORDER BY parent_id, id ASC");
if (!$dbc) {
// There was an error...do ...
I am trying to setup a php page which uses cURL to hit a third party server to log them in. Right now my code does successfully log in to the third party server, but since cURL is not sending the SESSION cookies to the user, the user must login in themselves
How can I get cURL to forward cookies to the client.
Thanks
...
hello,
I am new to Joomla development, I am developing a website in which I have to use customize the articles (i know you will say develop a component or module) but I want to use articles any ways.
While google I found that Joomla stores all the contents of articles in database.
but what I need is Is there any way to edit articles ...
Hello ladies and gentlemen!
I'm new to php and zend framework and fill very uncertain about following:
For example, I have two tables:
table1: box(id, height, width, length, weight)
table2: labels(id, boxid, text, position)
labels.boxid -> box.id
(labels.boxid is a foreign_key for primary_key box.id)
I've generated two separate sta...
I'm trying to run the following command in terminal on my macbook pro
cd /tmp; pecl download memcached
but im getting
pecl:command not found.
after a days googling I cant find out whats up. Does anyone have a solution?
...
Users of our website often type in a lot of garbage for the name and address information. eg, all CAPS, all lower case etc.
It looks a lot better if we fix the case for them, but can anyone suggest a good way of doing this. A simple approach is just to capitalise each word in their name, but this fails when dealing with some names. Her...
I am trying to execute the following sql from php using pdo: SELECT * FROM my_table WHERE name=?.
When I do this:
$sql = 'SELECT * FROM my__table WHERE name=?' ;
$stmt = $dbconn->prepare($sql);
$stmt->bindValue(1, $_POST['name'], PDO::PARAM_STR);
$stmt->execute();
I get an empty result set.
When I do this:
$sql = 'SELECT ...
I'm stuck for ideas on this one.
I'm working on a CMS that uses a file-browser to store all media file in an S3 bucket.
I have 4 options for thumbnail sizes which generate new thumbnail images from original image. If I'm doing this server-side in PHP it's fine - I'm just at loss as to how to do this if all the original files are s...
What's the best practice for locating external libraries in a PHP project (e.g., GoogleMapAPI, Recaptcha, etc.)? Right now I have all classes in /lib or subdirectories thereof, and am using Zend convention for naming (e.g., class Foo sits in /lib/Foo.php, class Db_Bar sits in /lib/Db/Bar.php).
But should I segregate third-party stuff? I...
I keep getting the following warning listed below on line 3.
Warning: Invalid argument supplied for foreach()
Here is the php code.
function dyn_menu($parent_array, $sub_array, $qs_val = "menu", $main_id = "nav", $sub_id = "subnav", $extra_style = "foldout") {
$menu = "<ul id=\"".$main_id."\">\n";
foreach ($parent_array as $pkey...
I have a mysql problem, my query looks as follows but not complete
SELECT
s.name,
s.surname
FROM
students as s,
practical as p,
days_attend as d
WHERE
s.sid = p.sid
AND
s.sid = d.sid
The scenario is the user may enter in a form to search how many days the student has been absent, eg if he enters 5 it will b...
What would be the proper way to explode a COM object for debugging? I have a 3rd party function that returns a multilevel object. The documentation is non existant, so I'd like to be able to echo everything out of the object or debug it in Komodo IDE.
Komodo just says Object and nothing else. Maybe convert to array?
I know some of...
I have the following query
SELECT
s.name,
s.surname,
s.id_nr,
s.student_nr,
s.createdate,
s.enddate,
(SELECT count(*) FROM Student_Attendance WHERE absent = 1) AS count_absent
FROM
Student AS s,
Student_Contact AS sc,
Student_Payment AS p,
Student_Courses AS scou...
I'm currently writing a report in PHP that occasionally has to display negative currency amounts. Said currency amounts are stored in the database like "-44.00". Ideally this number would be output as "($44.00)" on the report.
I know I can write some semi-complicated function to detect whether the number is negative and manually insert ...
Obviously it's a lot easier to convert from code to Sequence Diagrams, rather than from a Sequence Diagram to a bunch of code that doesn't match your implementation at all. However, these do exists for languages like Java, and .NET.
Does anyone have any links to such tools for PHP?
...
Hi,
Does it possible to use soap php5 from Linux to request Sharepoint?
Does it possible to have a wsdl php?
Thank's
...
<?php
class A{
//many properties
protected $myProperty1;
protected $myProperty2;
protected $myProperty3;
public function __construct(){
$this->myProperty1='some value';
$this->myProperty2='some value';
$this->myProperty3='some value';
}
public function getProperty1(){
re...