Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Better To Start With <? Or <?php


Is starting with <? the same as <?php . The reason I asked was that after reading a few tutorials I have seen them both use <? and <?php sometimes. Why not use <? since its only 2 chars compared to 5?




View Complete Forum Thread with Replies

Related Forum Messages:
Warning: Ldap_start_tls() [function.ldap-start-tls]: Unable To Start TLS:
Warning: ldap_start_tls() [function.ldap-start-tls]: Unable to start TLS: Connect error in C:apachehtdocs oolconnect_ldap.php on line 46 LDAP TLS error.

And this is my code ....

View Replies !
Warning: Session Start() [function.session-start]: Open(/tmp/sess 8b10
Hello. Could someone tell me why i am getting these warnings on my php pages? And what i can do to fix it? Thanks.

Warning: session_start() [function.session-start]: open(/tmp/sess_8b107ef6a1cde0a7426aedc044c14cb2, O_RDWR) failed: Disk quota exceeded (122) in /home/ployjam/public_html/admin/login.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ployjam/public_html/admin/login.php:2) in /home/ployjam/public_html/admin/login.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ployjam/public_html/admin/login.php:2) in /home/ployjam/public_html/admin/login.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/ployjam/public_html/admin/login.php:2) in /home/ployjam/public_html/admin/login.php on line 23

Warning: Unknown: open(/tmp/sess_8b107ef6a1cde0a7426aedc044c14cb2, O_RDWR) failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

View Replies !
Not Sure Where To Start
I have a page with the letters ABCDE...etc
I want to be able to click on a letter and it will bring up a list of
title's to click on, so how do I get it to load a page if say A was
index.php?reviews=a

I've already got the page with the links in and that then loads the reviews
up if you click on the link, but I've made 26 pages areview, breview,
creview etc. I would just rather have a common page that would choose the
right one.

Is this a simple answer or is it going to be complex?



View Replies !
Where To Start
I'm still new to HTML / PHP and so forth, but here is my project. I am going to create database table with URL's in it. This table is going to be my list of "member sites". I want a user to be able to enter a search question (for Example, "GOLD WIDGETS"). Then I want to move through the list of "member sites" searching each site for "GOLD WIDGETS".

View Replies !
Where Do I Start
I don't have any idea about frameworks, how they work and what they are. I didn't learn much of the base PHP stuff, but I can assemble a quick program if I'm required to, and if it's needed I can go back to revisiting some of the php books I have. And I kinda know some xhtml/css but I won't do it without an IDE or web development tool (i.e Dreamweaver) that auto-completes and does most of the dirty work for me. from where do I need to start to get the basic knowledge and getting experience(quickly)? I need this done in about 2 months, and I hardly can keep myself motivated to do this.

View Replies !
Where To Start Learning OO In PHP ?
like to learning OOP in PHP , but i dont know where i must start to learning.
can somebody give me advice ...

View Replies !
Best Way To Start Learning...?
Alright, I need to learn PHP, but honestly I'm having trouble with some
of the online tutorials for two reasons:

1. They're incredibly dry and tend to just say what things do instead
of going in-depth into examples.
2. They don't provide me with excercises and projects in which to test
out what I've learned. The best books I've ever read on any form of
scripting, coding, programming, etc. give me tasks in which to use what
I've been taught. I only learn well by doing, not simply by being
presented with facts.

So... is there a site and/or a book (I'm willing to buy one if
necessary) that you would recommend for someone like me?

As a side note, a lot of them seem to put a lot of time and effort into
instructions on setting up PHP, Apache, and MySQL. I have a web host
that's already fully configured (and runs PHP as CGI, although Apache
is an available method that goes against their recommendation)

View Replies !
Want To Start Tomcat From Php
i wan tto start jakarta-tomcat-5.5.3 from the webbrowser using the
sheel scripts...i normally use the shell scripts from the command line
to start and stop the tomcat server.....

i found out that php gives this incredible facility where i can execute
normal bash commands...i tried doing so ..but a simple command like {
system('whoami') } from
browser......eg.....http://localhost/startup.php..

prints apache as the user....so technically it executes the tomcat
startup script as apache user..but ive got
jakarta-tomcat-5.5.3 under the tomcat user....can someone please tell
me is there a way in php coding wherein i can execute the command as
another....i know this seems a bit out of place...but i really didnt
know anywhere else to go

View Replies !
PHP Script At Start Up
I would like to run a script at startup under SuSE 9. I read and
figured out that it can be done using chkconfig and setting the proper
run level. The problem I have currently is that I depend on system
environmental variables being available for PHP. I am using PHP as a
scripting language (nothing to do with the web), and this PHP script
is called from the start up bash script, but it cannot retrieve any
environmental vars at runlevel 3.

When are environmental vars set and at which runlevel? Or should I do
this some other way?

View Replies !
Newbie Looking Where To Start
After being a lurker in here for some time, I got the PHP bug, and
downloaded Apache 2.0, PHP 4.summat and MySQL

I installed, registered the dll's edited the conf files and finally got it
all working (i think) after a few nights of faffing about.

Now... where should i start? I know naff all about PHP or MySQL and would be
greatful if someone could point me in the direction of some tutorials to
start learning about PHP and MySQL.

I am from a programming background (visual basic) and have a welly load of
knoledge on relational databases so wheres the best sources...
Book/Web/Forums etc...

View Replies !
Fopen Start On New Row?
is it possible to have fopen start on new row?

fopen("$filename","aw");

i've been trying to write to the end or beginning, doesn't really matter, of a .txt file, but it just writes on the same row as the last input.

View Replies !
How To Start Session?
i m learning how to have session in my form. like for example, after the user insert their information in the application form, they will then be redirected to another page. the another page is where they will have to print out their form - with their info added in. but i m unsure how to go about doing it. can someone show me?

View Replies !
When Does HTTPS Start?
This might seem obvious, but do you have to establish an https connection before a form is sent, or can you send the form to an https connection and have it encrypted? For some reason, I never looked into this - I just always sent the form to the user via https to be sure - and to be honest it really doesn't matter that much, but I'm just curious. Code:

View Replies !
How To Start Learning PHP
I am working website recently and new to it.Please mail me how to learn best?

View Replies !
Session Start More Than Once
I include sessionstart.php which calls session_start() and instantiates a user class from my index.php. I also have a place to login with the form set to run login.php and then I want to reload the index.php with the user set up.

Does the session_start() get run again and if so does it kill the stored values? And how am I supposed to reload the index.php? The way it is set up now I have to have "Action='login.php'" but somewhere in login I have to go back to index. Or should I put the action="PHP_SELF" and collect the user's info on load?

View Replies !
AJAX: Where To Start
IVe read a few articles:

IBM
IBM
IBM

but im left wanting more... would it be better to get a book that provides step by step the basics-or- is there a website that would be comperable.

View Replies !
Get This Session To Start
I'm just tryin to get this session to start... in page1.php there's this:

<?php
session_start();

$_SESSION['test']='working'

?>

and in page2.php i will do this:
<?php
session_start();

echo $_SESSION['test'];
?>

but nothing prints.

View Replies !
Substr - How Can It Start At 0 And End At -1
I don't know why this prints "ab":

$a="abc";
$b=substr($a, 0, -1);
echo $b;

I found it on a php quiz somewhere (and got the answer wrong) how can it start at 0 and end at -1

View Replies !
Start A Session
i need a very simplified log-in / logout process for learning purposes.

1)when a log-in button is clicked i want a session to start. similarly when another button is clicked i want the session to be destroyed. this should apply acoss the whole site and not just for one particular page.

2) to know that a session is on, i want an if statement that evalutes if a seession exsist. If so, a text saying "session exsist" to show up.

View Replies !
Start MySQL
I'm running a website on XAMPP and I was able to start and stop the mysql database each time I opened the Control Panel Application.

But the last time I had mysql running I clicked the Admin. button and that launched the mysql admin interface. Now, whever I click the Start button for mysql on the XAMPP Control Panel Application, the database starts for like 1 second then turns off again immediately.

View Replies !
About To Start A New Project
I am about to start writing invoicing software for our company, and think PHP is the direction I should take. Should I look at using any other framework like Cake, Pear, or anything else to aid in the process?

View Replies !
Session Start-Up
I'm trying to use sessions to store a user's username for me. I seem to be messing up the sessions_start() command. I've put this: PHP Code:

<?php session_start(); ?>

at the top of the body section of my page but get this message:

-----------------------------
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/scodut.freehostia.com/sign_in.php:10) in /home/www/scodut.freehostia.com/sign_in.php on line 10

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/scodut.freehostia.com/sign_in.php:10) in /home/www/scodut.freehostia.com/sign_in.php on line 10
------------------------------

View Replies !
Start PHP From Basic
Want to start PHP From Basic ,Please suggest me links or send PDF file format for reference .

View Replies !
Php Tag To Start New Page
I have a page that is generated based on a user's selection of a state. They can then choose to use the default letter, or write a custom letter. The state they select will always return 2 people. So I need to output the letter to 2 pages for them to print out. Here is what I have so far.

while ($row = mysql_fetch_array($query)) {echo "<p>",$row['first_name'], " ",$row['last_name'], "<br>", $row['address'], "<br>", $row['city'], ", ", $row['state_dc'], " ", $row['zip'], "<BR>", $row['email_address'], $row['website'], "<P>", "Dear Senator ", $row['last_name'], ",", "<P>","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$letter" ; }

If the letter they put in is less then a whole page, then next senators address is on page one and there for unprintable.

View Replies !
Session Start
user logs in, passes thru auth.php if that passes $_Session is now true. on include.php i have:

session_start();

include.php is on all pages. do i have to have

session_start();

on any other pages to keep session active? or will include.php do it for me.

View Replies !
CGI Virgin... Where Do I Start?
I'm only familiar with HTML raw coding, and am eager to learn CGI and PHP. Is it my impression or has PHP indeed taken over Perl? I have no idea where to start. Is there an online resource that someone can lead me to?

Also, I don't have access to a server that I could play with while learning the basics. Will this hinder my learning curve?

View Replies !
Start Array At 1
I am reading the contents of a folder and storeing the file names to an array as such: PHP Code:

while (false !== ($filename = readdir($dh))) {
       $files[] = $filename;
    }

When i print_r the values to the webpage, even though I only have 6 files in the folder, there are 8 elements in the array showing where the first 2 are empty.

View Replies !
Start With Ecommerce
I am an amateur programmer looking to build an ecommerce site, but am a relative newcomer to the tools available (e.g. PHP and MySQL). I was just wondering if any of you have any recommendations as to where I should start gaining the knowledge necessary (e.g. books and tutorials).

View Replies !
Start A New Browser
I have a simple form, and after the visitor filed the form and click the button, I want to pop up a new browser so the user can preview the information, but the original browser window is still there.

View Replies !
Start A Session On Page
im trying to start a session on my page... and it kind of works... after initializing the session, and assigning a value to that variable, when i print that variable... it prints the value, but also shows some error messages...

This is my code...
session_start();
session_register('userNum');
$userNum = mysql_result($res,0,"userId");
printf($userNum);

These are my errors...
Warning: Cannot send session cookie - headers already sent
by (output started at 'examplesiteandpage':2)
in 'examplesiteandpage' on line 8

Warning: Cannot send session cache limiter - headers already
sent by (output started at 'examplesiteandpage':2)
in 'examplesiteandpage' on line 8

Does anyone know why this happens? The variable is still created, and the value assigned... but i get the errors... thanks

View Replies !
Start And Stop Apache With PHP
Is it possible to start and stop a server using a link button. Is there any PHP function to control the server starting and stopping. I have a small function to check the server status.

This is it below
// This function checks to see the status of the servers
function check_server($ip){
$fp = fsockopen ("$ip", 1111, $errno, $errstr, 30);
if (!$fp){
echo "<td bgcolor=red><FONT face=arial, helvetica size=2 color=white>DOWN</font></td>";
}
else{
echo "<td bgcolor=green><FONT face=arial, helvetica size=2 color=white>UP</font></td>";
fclose($fp);
}
}

I now want to either have a method to either stop or start the server depending on its status.

View Replies !
Inserting At Start Of Array
I am trying to insert an item at the start of an already populated array but I cannot seem to find a way of doing it.
Here is an example of what I am trying to do:

View Replies !
Start A Session Id And Register
I start a session id and register "lang", lang equals english.php I have 3 images that are links and one of them is the France flag. Now how can I make so that when a user clicks on France flag, the value of the $lang changes and becomes french.php instead of english.php ?I can't do things such as:

<a href="blah.php onclick="<? php code?>">

cause this gets executed no matter what. so if the client does not click on this link, it'll get executed anyway.

View Replies !
How To Delay The Start Of A Function
My problem is that a function in the page have a rather heavy mysql query.
The query takes between 6 - 10 seconds. while the query takes place other
content on the page stop loading (Opera). Explorer and Firefox seems to
wait for the whole page to load befor drawing the site.

Is there a way to tell the browser to draw all the content except for this
function and run through this at the end, alternatively to run the process
in backround?

This functionality a want is on many sites who let you search through
multiple whois databases.

View Replies !
Record A Session's Start And End
how can i record the time a session started and ended. by ended i mean. ended in any way. browser closed, logout link clicked. or session expired. i thought to do

if (session_register('var1','var2'))
{ // record time }

but register_globals is off. can i still use that? and i still dont know how to record the ending.

View Replies !
Php Kick-start Required
Sorry to barge in like this but I'd really appreciate any pointers for a
seasoned veteran of programming (including C, Java, ASP, JSP, Perl, shell,
VB, HTML, XSL) who has never touched PHP before.

I've rather rashly agreed to doing some enhancements on a PHP Web app and,
timescales being what they are, I don't have enough time for "learn PHP in
21 days" or suchlike

View Replies !
Filtering A Db With A Start And End Date
I have a MySQL table with a datetime field. I need to make a PHP script that will take all rows whose datetime field falls within that of a user-specified begin and end time. Anyone have a code snippet to do that?

View Replies !
Show Images Using A Start To End
i have a folder of images in numerical order.

45.jpg
46.jpg
47.jpg

in order for me to view them i have to type in the url and see if it exists. how am i able to make start to end of images. for example if i have a form with a start and end field of 40 - 50 how can they be displayed so i only see 40.jpg to 50.jpg PHP Code:

View Replies !
Installed PHP And Now Apache Won't Start
I installed Apache 2.2.3 per the instructions in the book I'm reading
'AJAX and PHP' by Darie et al. After installation, I confirmed that the
server was working. I then installed MySQL and PHP. After configuring
the system per the book's instructions, I now find that the Apache
server won't start.

View Replies !
Good PHP/Sql Pack To Start?
Could you point me out a good PHP/Sql pack to start? I would prefer one with
the Apache server and a front end to create the DBs.

View Replies !
Start The Session On A Sub-folder
I've got a Php 4.3.3 installation on A Red Hat Advanced Server 2.1.

Sessions start correctly if i start them from the server root.
But, if i start the session on a sub-folder, when i change to a folder
that's not below it, the session gets started again.

Let's see an example

When i begin from the document root all goes as expected...
Open /index.php -> session id = A
Open /folder1/index.php -> session id = A
Open /folder2/index.php -> session id = A

But when i begin on a subfolder.......
Open /folder1/index.php -> session id = A
Open /folder1/index2.php -> session id = A (inside the same folder the
session is mantained)
Open /folder1/subfolder/index.php -> session id = A (on a sub-folder the
session is also mantained)
Open /folder2/index.php -> session id = B (on a folder that's not below
the first, the session starts again!!!!!!!!)
Open /folder3/index.php -> session id = C

It's like if the session were only set for the current path and downwards,
but not the entire server...
Any thoughts?

View Replies !
How To Re-start A Program From Web Interface Using PHP
We are running a application on the Linux, and would like to have a web
interface to restart it remotely using PHP. I would like to get an
advice on how to do it.

View Replies !
How Can Get The File To Start Over Once It Gets To The End Of An Array?
I am running PHP from the command line, so I can have a huge loop, so... how can get the file to start over once it gets to the end of an array? after the foreach, I was thinking of having:

<?php
header("Location: contentRobot.php");
exit;
?>

But... I'm not sure if that is only valid for browser or not.

View Replies !
Form Validation :: Where To Start?
I'm looking to get a fairly simple form validated using php, but I dont know where I should start as I'm new to it. Dont really want to do this client side, hence posting here. I have a few text fields and one checkbox on my yourinfo.php page, which I send to a SQL db upon submission of the form, and then autoforward into the next page. I would like to be able to validate the content of these fields (ie email address is checked for validity) before going into the db.

View Replies !
Adding To Start Of An Array?
I know I can achieve it by using an array_reverse, followed by adding the desired first element to the end, followed by another array_reverse - but wondering if there is a simpler/quicker way of doing this? Code:

View Replies !
Start/stop Php Script
I have a PHP script i run from the SSH command line every day to perform some admin tasks. The script runs in a never ending loop and i manually ctrl+c out of it when using SSH. I want to make this web based so others can do things instead of me. a simple start/stop button would suffice. How can i start and stop a PHP script executing in the background? I've had a look at the exec functions. these should enable me to start them but how would i go about stopping the script too?

View Replies !
Unable To Start MySQL
I have just installed, PHP, Apache, on my WinXP Pro machine. I then went to install MySQL, which appeared to go well. I went into MySQL folder and opened up winmysqladmin, and clicked on Start. the response I got was unable to start try again in 30 seconds. Don;t know if this has anything to do with it, but in the books and help pages I have got, they all mention a log on page, to enter username and password, I have not seen this.

View Replies !
Mysql Start Of Word
anyone know how to search for something starting with a number in mysql?

and is there a way to find something starting with a symbol?

I have this, which doesn't work:
users.displayName LIKE '0-9%'
but these work individually:

users.displayName LIKE '0%'users.displayName LIKE '1%'users.displayName LIKE '2%'and so on, but that doesn't work for me, I need to have it so it will find everything starting with a number on the first search, same thing with symbols.

View Replies !
Match Only That Start With The $q String?
using the following.

if($val ^'$q'){ stuff }

Though that returns pretty much everything. $q for example could be <i>1234</i> ... and it will return anything that has a 1 in it for example. Was I wrong in thinking ^$q will match only things that start with the $q string?

View Replies !
Start Page For Visitors Per IP
I have a PHP-based webpage using MySql. I want to store the IP-adresses of the visitors into DB and when it's a new visitor (ip) the start page will show an extra image (or pop up) that will never be shown again for the same IP.

View Replies !
Start A Mailing List
I am really interested in putting a mailing list on my website. I have only just discovered php and mysql and I found a program called php list on my cPanel X control panel on my website. I would like to put a text box on my navigation bar that has inside it "enter your e-mail" (when they click this disappears) and a button on the right of that which says "join" (I will have a jpg underneath this text box saying "Mailing List"). When someone clicks on "join" I would like them to get sent to a page with the e-mail address field filled out in the right table with what the address they entered in the navigation pane, along with a name field they can fill out and a Submit button.

I have seen these on many websites so I assume it is not that hard to do, but I am pretty lost as to how everything is connected (the database (mysql?) and the php list program). I assume when they click submit it will send their details to a mysql database / send them a confirmation e-mail. I was wondering what code I will need to make this system work, as I have been reading and googling and I am quite lost as to the mechanics of how it all works :( :( :confused:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved