04-28-2004
Problem with PHP and MySQL
Okay, I'm new to this PHP and MySQL stuff, so help would be VERY much appreciated.
On my iMac runnning Panther, it has MySQL and PHP installed.
Yet when I view a PHP file from the iMac or another computer at my house, I get the source code.
What's wrong?
9 More Discussions You Might Find Interesting
1. Cybersecurity
with a limited knowledege of php and sql, what is a good and secure way to do passwords running an https server? (1 Reply)
Discussion started by: macdonto
1 Replies
2. UNIX for Advanced & Expert Users
MySQL on my server is down....
I figured out that the mysqld process isn't running. When I try to run it, it says it can't find mysql.sock
Any suggestions?
Here's what I can't do:
can't be root
don't have physical access (do stuff via SSH)
reinstall MySQL (need to keep the current MySQL... (8 Replies)
Discussion started by: _hp_
8 Replies
3. UNIX for Dummies Questions & Answers
I want to design a database, using mysql as a backend, and PHP as the frontend, I wanna be able to easily build forms in PHP to communicate with MySQL, is there any programs that will allow this, I really dont want to program all the forms by hand..
thankyou (2 Replies)
Discussion started by: kwalick
2 Replies
4. Shell Programming and Scripting
No help guys??? :(
Hi guys, i've got a question here... my intention is to write a script that would access a mysql db and extract some info and paste it into a file...
so the first move would be, to access the mysql interface right? hence...
#! /usr/bin/ksh
echo "Job Begin: " `date`
... (1 Reply)
Discussion started by: 12yearold
1 Replies
5. Programming
Hello every one
i have question i want to build DATAbase using PHP as interface
i use shell to access to linux . i have in linux psql and SQLplus
i'll call all html files that has db tabels from shell directory.
what should to do before design php pages. can build the database sql design... (3 Replies)
Discussion started by: Scotch
3 Replies
6. Shell Programming and Scripting
Hi Experts,
I am a beginner of PHP and trying to create a tutorial database. My web interface takes a value and inserts into table very correctly. But when I refresh the same interface, it inserts the same value again and again. My code is below:
<?php
$con =... (2 Replies)
Discussion started by: naw_deepak
2 Replies
7. Emergency UNIX and Linux Support
Hi,
I have two websites:
website1.com and website2.com
I didn't write either but have successfully moved all the files from website1.com to website2.com
I (thought) I installed all the correct php modules and website2 is mostly up and running. However, my boss found that when we go to a... (15 Replies)
Discussion started by: Astrocloud
15 Replies
8. Programming
Hello,
While I was interpretation the PHP manual on database security the recent past, it said that you should by no means connect to the database as the super user but rather as one more user with more limited options.
My question is:
How do you generate new users and set access... (2 Replies)
Discussion started by: AimyThomas
2 Replies
9. Web Development
Database Structure
Root Table
ID Root_ Node Level
1 A 0
2 B 1
3 C 1
Child Table
ID Left_Node Right_Node Root_Node Root_ID
1 B C A 1
... (1 Reply)
Discussion started by: Deepak Tiwari
1 Replies
LEARN ABOUT PHP
mysqli_ssl_set
MYSQLI_SSL_SET(3) 1 MYSQLI_SSL_SET(3)
mysqli::ssl_set - Used for establishing secure connections using SSL
Object oriented style
SYNOPSIS
bool mysqli::ssl_set (string $key, string $cert, string $ca, string $capath, string $cipher)
DESCRIPTION
Procedural style
bool mysqli_ssl_set (mysqli $link, string $key, string $cert, string $ca, string $capath, string $cipher)
Used for establishing secure connections using SSL. It must be called before mysqli_real_connect(3). This function does nothing unless
OpenSSL support is enabled.
Note that MySQL Native Driver does not support SSL before PHP 5.3.3, so calling this function when using MySQL Native Driver will result
in an error. MySQL Native Driver is enabled by default on Microsoft Windows from PHP version 5.3 onwards.
PARAMETERS
o $
link -Procedural style only: A link identifier returned by mysqli_connect(3) or mysqli_init(3)
o $key
- The path name to the key file.
o $cert
- The path name to the certificate file.
o $ca
- The path name to the certificate authority file.
o $capath
- The pathname to a directory that contains trusted SSL CA certificates in PEM format.
o $cipher
- A list of allowable ciphers to use for SSL encryption.
Any unused SSL parameters may be given as NULL
RETURN VALUES
This function always returns TRUE value. If SSL setup is incorrect mysqli_real_connect(3) will return an error when you attempt to con-
nect.
SEE ALSO
mysqli_options(3), mysqli_real_connect(3).
PHP Documentation Group MYSQLI_SSL_SET(3)