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.





Starting Out


Most of the messages in this newsgroup are specific problems or
questions. I have been scripting in mirc for a while so i have the
programming basics down but i was looking for your suggestions on
where to start with php.




View Complete Forum Thread with Replies

Related Forum Messages:
Starting .net
I require suggestions on how to get friends in the group to communicate
about the programming in .net and php etc.

View Replies !
Starting Php
i'm going to learn and implement php simultaneously. i'd like to know about useful links/resources about php available in booked formor online. i thought it would be effective if i get guidence from group before wandering around net.

View Replies !
Starting Out: PHPLIB ?
Are there any tutorials out there that detail how to use PHPLIB? I've read through the documentation, but it seems a little bit over my head.

View Replies !
Starting A Session
I have the simple code: PHP Code:

View Replies !
Starting Executable
I am trying to figure out how to get the CMD (dos) window to come up when I
call a executable. I have this working on a Win2000/apache machine and am
trying to use the same code on a identical machine.

Here is how I start the executable. It is initiated from the browser on the
machine itself:
pclose(popen("start " . $exe . $params, "r"));

What normally happens is a cmd window pops up showing the executable's
output to screen. My php code then gets the PID for the executable by
running a tlist.exe and searching for the name of the executable. I take
this PID and sleep till a certain time and then kill the executable.

When I do it on the new machine the executable runs but no cmd window comes
up. I also cannot get a PID for the executable because tlist output shows
the executable's PID but has no information about it. When I manually use
Tasklist I can see the name of the executable.

PHP and apache are setup identically on both machines so it must be
something in windows. From looking around I think it may have to do with
'apache not interacting with the desktop' ?

I need to have the cmd window come up and I feel if I can get that
accomplished the PID problem will be taken care of too.

View Replies !
Starting A Php Script
why is it some people use <? and others <?php ??

View Replies !
Session Not Starting
I am new in PHP. i am trying to start a session with

<?php
session_start();
?>
It gives me error:

Warning: open(/tmpsess_240edf6126abb0b892d4365f6348326d, O_RDWR) failed: No such file or directory (2) in c:phpdev5wwwpage2.php on line 2

Warning: open(/tmpsess_240edf6126abb0b892d4365f6348326d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

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

I changed the path in php.ini:
session.save_path = C:phpdev5www

View Replies !
Starting Tutorial
I have the php & mysqul for dummies books and have found a few old tutorials. I thought I'd ask if anyone knows of an up to date tutorial for installing apache, mysql, php in order to get a web site up and running.

View Replies !
Starting With XSLT
You can see that the specific complaint is blank ('') when I get this error. The first line of my xml file is:

<?xml version="1.0" encoding="UTF-8"?>

Which I gather is pretty much a standard.

I'm using a prefab script which gives me this output when I try to convert the XML file:

Something bad just happened. Here's some more information:
msgtype --> error
code --> 69
module --> Sablotron
URI --> http:/doc/dtd/StoreExport.dtd
line --> 1
msg --> unknown encoding ''


Any ideas where to start troubleshooting?

View Replies !
<? Vs <?PHP Starting Delimiter
I often see the former starting delimiter rather than the latter. Is there some rule about where the former can be used?

View Replies !
Starting A Project
I am working on a project where there are 6 main pages. I need to create a system whereby certain employess can login to PHPMYADMIN and dynamically update page information and maybe even create pages. I want to know if it would be more efficient to make tables for each different sub-directory (which contains page id's and page names) or if it is more effective to build one table that somehow references these sub-directories.

View Replies !
PHP Sessions Starting To Fail
we have a fairly busy server and we just started to have
problems with PHP sessions failing. We've never had this problem before and
to be honist, out server traffic is lower than it has been in prior months -
so I'm really not sure what could cause this.

Could anyone suggest some potentiol avenues to explore for reasons that
could cause PHP sessions to fail?

View Replies !
Starting Application In Background
On my main page I have several hyperlinks which point to a php page that plays different .wav files. In the play_sound.php page I just echo the .wav file and when the link is clicked in the calling page the browser (IE6) opens Winamp and plays the sound (since I output a header with Content-type: audio/wav).

It works great but is there any way to open the application in the background or at least minimized so you don't see it over the top of the main page?
Is it a setting in HTML that determines this or does it have to be done through php?

View Replies !
Starting & Stopping Httpd
What i want to do is to fire the functions in the httpd script to start, stop, restart, httpd for eg. from the console i would write ( from the init.d dir.)

httpd start. to start the Apache server. but how do i do it from a php script? I can open it with fopen().

View Replies !
Starting PHP, Netequite Question
I am learning php an I am amazed how easy a PHP noob like me can acheive
so much in little time.

I am planning to take part in the community and noticed these 3 newsgroups :

-alt.comp.lang.php
-comp.lang.php
-alt.php

Do these groups differ in purpose or is it allowed to crosspost in all 3
of these?

My guess is that my newsserver gets access to these 3 ones but other people
maybe can read only 1.

View Replies !
Remove All Lines Starting With B
Say I have the following file - dummy.txt:

a 4treg
a sdfas
a 4egdsag
b 1111
a ergdsfg
b 1111
c waefasdf

How would I go about removing all the lines that begin with a b? I
thought the following script (which I wrote with the intention of
replacing all such lines with the empty string) would but apparently it
doesn't:

<?
$contents = file_get_contents('dummy.txt');
echo "";
echo preg_replace('/^b.*?
/','',$contents);
?>

View Replies !
Starting File Download
Is there a way to make a browser start downloading a file, automaticly, no matter what type of file it is?

View Replies !
Starting A Process On The Server
after putting my self through hell trying to call an executable with Java. (which I was doing correctly according to the specs, but there is something f$#%ed up with the implementation of Runtime.exec() on this OS--Linux for those of you who are wondering, when I recomiled everything on NT it runs as expected, which is unfortunate)

Anyway, I was just curious, since I haven't really taken PHP very far, and haven't played with it since PHP3, what would one do to call an executable on the server file system? with arguments?

View Replies !
Values In Graph Not Starting At 0
I'm on a mission to dynamically generate stock quote line graphs. Stock quote graphs are usually very dramatic looking, even if the quote price changes slightly throughout the day. This is because the bottom label on the vertical side of the graph starts at an even increment just below or even with the lowest stock price of the day, instead of 0.

I'm getting close to making this happen for my project, but am not there yet. There may also be a better way to do what I'm doing? Sometimes my values fit within my labels. Sometimes my lowest value falls below my lowest label, which would make the line in my graph go below the chart. I'm sure that would make a bad impression on my client's investors. Code:

View Replies !
Error When Starting Apache
I have an error when starting apache under win xp like this:

cannot load c:/php/sapi/php4apache.dll into server: the specified module could not be found

the fact is I have c:/php/sapi/php4apache.dll module exist.

View Replies !
Starting Anew: OOP? PEAR?
I believe I can write basic procedural code but:

1) Should I be using the OOP method as much as possible (meaning I would have to crack the philosophy, too) ?

2) What about PEAR - is it something like CPAN in perl (I use perl now) and should I use it to shurtcut the development?

What I want to write is an application to do specialized reservation of multiple resources over time. The database model (E/R) based on the business needs is ready.

I would be gratefull just for being pointed to unbiased but focused information. I am not much interested in the Computer Science theories, I am interested in the practical php experience.

View Replies !
Starting Image Host
I am looking to start an Image hosting site to compete with imageshack. I need to know what this would entail, the level of difficulty, and if there are possibly any open source codes i could use.

View Replies !
Starting Up Using A Simple Database
Is it possible to create a table/array in a php-file and then collect data from it into another file by clicking a hyperlink..? I've never setup a database before. Some say I have to use MySql, Oracle and so on. In other terms.

Is it possible to make a database (simple table) in a php-file and then make a query without using mySql, Oracle and so on ? How could this easily be done (fetching data from an table and then preview the info in another site when clicking a hyperlink)?

View Replies !
Delete All Records Starting In R
PHP Code:

$result2 = mysql_query ("DELETE FROM r_CompTables WHERE CompID = R??") or die("DELETE error: ".mysql_error());

I have this code but I want it to delete anything start in R. R will be followed with a number so it could be R5 or R91.

View Replies !
XML And MySQL Starting Point !!!
I wondered if you could point me to the right direction as to what or how I should do about the following:

I have a few MySQL tables, accessing them via PHPmyAdmin 206
I use PHP 4.23

What I want to do is to use PHP via XML to get the data from MySQL database... my knowledge with XML with PHP and MySQL is zero... could someone please let me know where to start researching...

Do I have to create XML Schemas, then connect PHP to this and access the data.. I am totally lost here... Or do I have to download a few modules on either MySQL, PHP or Apache that will take care of this matter for me....

View Replies !
Home Page Starting With .php Extension?
This might seem a little newbie, but how does one configure Apache to allow
the "home page" to be a php page? As in index.php?

View Replies !
Recognize Edited Php.ini After Re-starting Apache?
I changed the php.ini file. I am under the impression that I need to re-start apache. I've tried stopping then starting apache. I've also tried just restarting it. These commands seem to be working, but the changes I make to the php.ini file are not put into effect and do not show up when I call phpinfo(). Anyone have any ideas how I can get my new php.ini recognized?

View Replies !
File Uploads - Starting From Scatch
I'm interested in learning how to do file uploads. I have basic php knowledge, but am completely unfamiliar with how to get this done. Are there any good tutorials on teh subject, or would anyone be able to provide the basics here?

View Replies !
Stopping And Starting A Process Via Web Form
This sort of ties into my other thread I started. I just figured out how to compile the CGI binary version of PHP so now I can have the script I needed running in the background, do so right there at the web server. (PHP command mode is up and running beautifully right now)

Anyway, my question is in regards to making a form to start/stop/restart a particular running process on a Linux machine using PHP. The process will be my PHP script that I want running all the time in the background.

Starting is going to be pretty straightforward, as I can just use a system command functions to explicitly start the script I want to start. Such as exec("/path/to/the/script/background.php")

My trouble comes with how do I check to see if the script is currently running, and then give the option to stop it or restart it? I can make the stop function just do a system command exec("Kill -9 $PID") but how can I get the PID to pass to the kill function? Also I am vary wary of holding the the PID in a variable, because then my script could be called like "http://some.com/script.php?PID=3455" which would be a "Bad Thing" [TM].

I guess basically I need to know how to either kill via the name of the running process ("man kill" did not give me any hints about that) or another linux system command to give me the PID of a particular running process.

Also if anyone has any thoughts on the (in)security of this, and how I can make sure this is hack proof I would really appreciate it! It seems to me that as long as I reset any variables passed to the system to blank at the top of my script, then it wouldn't matter if someone passed a variable via the URL. But I don't know that for sure.

View Replies !
Problems Starting A Console Application Though PHP
I have an Apache Webserver running on Win2000.
I try to start a console application an the server though PHP, with the
functions exec() or passthru() but it doesn't work.
The application starts though, but doesn't work in the same way I would
start it local on the web server (I mean though a "normal doubleclick").

I think it depends on the type of application, cause I ca start with PHP for
example other programms and they work fine!!

Before I write about the specifications of my console application, I have
this question:

What are the technical differences between starting an application through
PHP and starting it local on the machine?

View Replies !
Starting Apache 2.0.58 With PHP 5 Gives _zend_list_delete Error
I want to set up my own web server, so I first of all compiled Apache 2.0.58 (I've read that Apache 2.2.2 doesn't work with PHP 5).

I managed to compile it and get it to display some webpages. But of course no webserver is complete without PHP, so I proceeded to compiling PHP 5. I did everything exactly the way the instructions say at PHP.net, but when I try to run, I get the following error:

Cannot load /usr/lib/apache2/libphp5.so into server: /usr/lib/apache2/libphp5.so: undefined symbol: _zend_list_delete

Code:

View Replies !
Problems Starting Mod Rewrite On Apache 2.0.52
I tried google and everything I check from there is not working. So I'll explain what I do and if someone know what do I do wrong: Code:

View Replies !
Find Artists Starting With A Certain Letter
i'm completely lost on this one. meaning, sorting by alphabetic order is easy. but I want to make like navigation links that goes like "A B C D E F" and so on. and when u click A all artists starting on A appears.

View Replies !
Appending Text To A File, Starting A New Line.
Im appending text to a file. And I'd like each 'append' would start on a new line of a file. I tried 'n'. but it doesnt work. here is my code:

$fp = fopen("$filename", "a");
for ($i = 0; $i < count($arrText); $i++){
fputs($fp, $arrText[$i]);
} fclose($fp);

note: one of the array $arrText, eg. $arrText[3] = "line 3" . "n";
the next array $arrText[4] will NOT start on a new line, it will just joint the rrText[3].

View Replies !
Help Starting W/ User, Group Mgmt And Mvc's
Hey all, very new to PHP and want to try it out on a project (on which
I have lots of time to learn) that authenticates logins, manages users
and groups, and which pages they get access to.

Normally I do a lot of work in Java and use different MVC frameworks
like webwork, spring, hibernate, etc.

Anyone point me in the directions of examples and great books that I
need to know to do this right?

View Replies !
Request Display All Rows Starting With A Number?
What would I have to put within the $sort variable to have that request display all rows starting with a number? right now I have to put 1,2,3,4,5,6,7,8,9 seperate. Anyway I can include it all in one variable that would work below?

$q = 'SELECT * '
        . ' FROM `company_details` '
        . ' WHERE `cname` LIKE  '' . $sort . '%''
        . ' ORDER BY `cname` ASC';
$r = mysql_query($q);

View Replies !
Convert String To Integer - Not Starting With A Number
I can't get PHP to convert a string to an integer (or pull the numbers OUT of a string) if it doesn't start with a number, which is an issue.

Basically, i'm trying to pull the integers only out of various model numbers for pieces of equipment our store is selling - examples would be something like S820D or MS1798. I only need the 820 or the 1798 from these strings, but PHP doesn't want to play nice with either:

$product_model = "S820D";
$var = intval($product_model);
or
$var = (int) $product_model;

View Replies !
Starting And Stoping Apache And On Extenal Meachine
Now the problam is that i dont wont to use the cmd.exe command line interface to controll the other pc for apache and php on my laptop or i lose fingers......

I have created a shered folder on each meachine and placed the shortcut's off apache to the folder of choice with shearing prevlages so now when i goto the laptop i see the folder i wont and the start and stop for apache are there all looks good. Code:

View Replies !
Starting Apache :: Make_sock: Could Not Bind To Address 0.0.0.0:80
I get this error:

(OS 10048)Only one usage of each socket address (protocol/network address/por
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80.

View Replies !
Book - Starting Phase Of A Complete Site Redsign
I am looking for a book that has a good explination of the power of OO programing in PHP. I already know the basic's of it but i want to learn the ins and outs of it. I am in the starting phase of a complete site redsign and I want to rewirte the whole site from the ground up with OO.

View Replies !
No Cookie Sent When Starting A Session - Windows Server 2003
I got PHP installed and running via IIS. When I call a start_session(); I can see the session file created in the c:mp directory (specified in php.ini). However, no cookie is sent to the browser. php.ini is set to use session cookies.

Cookies are for certain not being blocked by the brower. I am accessing the site via its own IP (i.e. http://23.64.18.112/test.php) The result is that every time I refresh the page, I get a new session data file in the temp directory because it is unable to associate the user with the session data since there is no session cookie on their system.

Passing session IDs via URL is not an option. I need session cookies to work.

View Replies !
Error Starting Up SSH Connection(-5): Unable To Exchange Encryption
For the life of me I can not figure out why I am getting this error:

Error starting up SSH connection(-5): Unable to exchange encryption
keys

$connect = ssh2_connect('d50-1.s50', 22);

That's the code. One line PHP. I've tried connecting to localhost as well. Still no love. I've got ssh2 working on other installs but not this one. Any ideas on something I'm missing or a php.ini thing?

View Replies !
MySQL Table Structure For Autoincrement Feild Starting At 1000
I am desiging a MySQL table where there needs to be a value which is incremented with each addition. I can create a field like this. However I now need to start the values from 1000 rather than 0

ie, the first option will be 1000, then 1001, 1002 etc ...

View Replies !
Php Script To Filter A Text File And Extract Lines Starting With Keyword?
For a class, students are going to run an experiment on line. Each time
a subject runs, his/her data is appended to one giant text file. Their
own data set will be just one line starting with the keyword they gave
as identification.

The faculty does not want the students to be able to download and see
the giant data file. He wants the students to only download and see the
data that starts with their own identification tag.

in unix, filtering a file to keep only the line starting with code MCB
would look something like
tail -f your_file_name | grep MCB
from what I read.

Given the concerns the faculty has for protecting the database, what do
I need to look into to write a php script that would access the data
file, but only show a web page with the data corresponding to the
students identification code?

View Replies !
Starting A Session Or Pulling Info Back From A Session?
I am taking the advice of a moderator and going to stop using Dreamweaver as a crutch for writing PHP apps. I have some questions about sessions and have been reading through some online tutorials, but have some questions that may seem simple stupid about sessions, but would appreciate some input. Do you have to put this at the top of each page on the site when using sessions to keep the sessions going from page to page or do you just put it on a page when you are starting a session or pulling info back from a session?

<?php
session_start();
?>

View Replies !
String Comparison - Starting And Ending Of String
now i have to compare two strings in a way that

if(string1 == $var1.any string chacters.$var2)
{
do stuff
}
else
{
don't
}


So you may have understanded the problem the starting and ending of string one should be exactly equal to $var1 and $var2, The characters coming in between may be any characters. So how can i code this any characters thing in php.

View Replies !
Starting A Year Loop With Last Year
I have the following which loops through the present year and adds two more years on: However, I want it to be exactly the same but to start from last year rather than this year. Is this possible? Code:

View Replies !

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