Having Truble Reading and Echoing Using PHP in HTML. Possible Variable Scope Problem?
Hey guys,
Thanks for your always knowledgable help! Today I am working with displaying text from a text file in an HTML table using PHP. I can't get the data to display properly, I think it has something to do with the scope of the variables, but I am not sure. Here is the code I am struggeling with:
<table width="357" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="165">Pizza 1</td>
<td width="186"><? echo $price['0']; ?></td>
</tr>
<tr>
<td>Burger 1</td>
<td><? echo $price['1']; ?></td>
</tr>
<tr>
<td>Drink 1</td>
<td><? echo $price['2']; ?></td>
</tr>
</table>
In the above PHP (not shown) the array $price is filled properly (I tested by echoing each bit line by line) but by the time we get into the HTML it seems the array is empty or it is not liking how I am calling it. Does the scope of a PHP variable end with the closing "?>" tag? Am I missing something? Bellow is the full code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-color: #333;
color: #FFF;
</style>
</head>
<body>
<?php
$menu=fopen("prices.txt","r") or exit("Unable to open file!");
$price=array();
$priceposition=null;
$tempstring;
//This loop does all of the READING and populating of variables
while(!feof($menu))
//Check to see if this is the first pass, if not add one to the array possition
if ($priceposition==null){
$priceposition=0;
else{
$priceposition++;
//populate the temparary string
$tempstring = fgets($menu);
//Populate the array if the temporary string is not a comment
if(substr($tempstring,0,2) != "//"){
$price['$priceposition']= $tempstring;
echo $price['$priceposition'];
//End of reading loop
fclose($menu);
?>
<table width="357" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="165">Pizza 1</td>
<td width="186"><? echo $price['0']; ?></td>
</tr>
<tr>
<td>Burger 1</td>
<td><? echo $price['1']; ?></td>
</tr>
<tr>
<td>Drink 1</td>
<td><? echo $price['2']; ?></td>
</tr>
</table>
</body>
</html>
and you can run the code on my test server here: christianstest.info/phptest/readwritetesting/readtest.php
thanks guys!
MurraySummers wrote:
Try changing this -
fclose($menu);
to this -
fclose($menu);
echo "<pre>";exit(print_r($price));
and see what you get.
Wow, what a great little peice of testing code, thanks! That showed me the problem right away! Is there any way to test your php line by line in Dreamweaver CS6? I am used to computer programing in Visual Studio and Eclipse where they have an option of running code line by line and seing how variables populate and change with each line of code execution. Or is thier a program that can do this for PHP?
Similar Messages
-
Is it possible to extract the text and images using PHP
Hi friends,
Is it possible to extract the text and images using PHP, in the same order as it is in the PDF?
Else is it possible extract the same as XML using PHP, or ASP
I googled it but its in vain, any help is appreciated.
Thanks in advance.Dear Mike,
Thanks for your quick reply,
I mean is it possible to parse the PDF line by line using the PHP.
I extracted the whole text but couldn't the images. Since the PDF's images are decoded using various methods like DCTDecode, JPXDecode, etc.
The text is decoded with FlateDecode, which i breaked using a function in PHP.
Thanks, -
After attempt to install windows 7 via boot camp onto Mac mini, my screen reads "no bootable devise--insert boot devise and press any key. However, disk still in reader, and not using a Mac keyboard
Reboot your Mac, as soon as you hear the chime press the option/alt key and hold it until the boot manager appears, select OSX to boot from.
-
File Read and Write using File Adapter in Bpel
In Bpel Process i am using File Adapter ( Schema is Opaque) for read and write the file contents. i am able do successful deployment and read, write function in first time deployment, after that again i tired to run the application, its not going to write the content of file, its only writing the file with out data's or content in that file.
Please help me...
SaravananHi Eric
In my domain.log file having the following details. In this file im unable to find out what the exact problem. Please look at this and help me.
<2008-01-22 18:25:42,024> <INFO> <default.collaxa.cube.compiler> validating "C:\product\10.1.3.1\OracleAS_1\bpel\domains\default\tmp\.bpel_BPELProcess2_1.1_298e83988d77b6640c33dfeec11ed31b.tmp\BPELProcess2.bpel" ...
<2008-01-22 18:25:49,850> <INFO> <default.collaxa.cube.engine.deployment> <CubeProcessFactory::generateProcessClass>
Process "BPELProcess2" (revision "1.1") successfully compiled.
<2008-01-22 18:25:49,914> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Loading JCAActivationAgent for {portType=Read_ptt}
<2008-01-22 18:25:49,914> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Locating Adapter Framework instance: OraBPEL
<2008-01-22 18:25:49,930> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Done loading JCAActivationAgent for processId='bpel://localhost/default/BPELProcess2~1.1/
<2008-01-22 18:25:49,930> <INFO> <default.collaxa.cube.engine.deployment> Process "BPELProcess2" (revision "1.1") successfully loaded.
<2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::uninit Shutting down the JCA activation agent, processId='bpel://localhost/default/BPELProcess2~1.0/', activation properties={portType=Read_ptt}
<2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactivation for portType=Read_ptt, operation=Read
<2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Endpoint De-activation called in adapter for endpoint : D:\MAXIMUS_Project_Softwares\jdevstudiobase10132\jdev\mywork\MyLabs\BPELProcess2\in
<2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - Initializing the JCA activation agent, processId='bpel://localhost/default/BPELProcess2~1.1/
<2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
process='bpel://localhost/default/BPELProcess2~1.1/'
domain='default'
WSDL location='rd.wsdl'
portType='Read_ptt'
operation='Read'
activation properties={portType=Read_ptt}
<2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - endpointActivation for portType=Read_ptt, operation=Read
<2008-01-22 18:26:02,730> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Endpoint Activation called in File Adapter for endpoint: D:\MAXIMUS_Project_Softwares\jdevstudiobase10132\jdev\mywork\MyLabs\BPELProcess2\in
<2008-01-22 18:26:02,730> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Read_ptt, operation=Read
<2008-01-22 18:26:02,890> <WARN> <default.collaxa.cube.activation> <File Adapter::Inbound> PollWork::run exiting, Worker thread will die
<2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Managed Connection Created
<2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Connection Created
<2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> FileInteraction Created -
When a website uses php and a given page uses "include" for a UTF-8 php file, most browsers including Safari on Mac and PC interpret the extra BOM information as a white line.
On the iPhone Safari version, it appears as a square box (a character not correctly displayed I suppose).
If there are many "includes", each one gives a little empty square box on display.
This problem doesn't exist of course if the included file is of format UTF-8 no BOM.
So this is a php problem but it is not correctly treated by Safari iPhone software IMO.
(This comment has been send to Apple iPhone feedback)I'm not sure what happens if you reply to forum notifications; I rarely check that mailbox because it's flooded with so many notifications...
It's great to know that Firefox 20/Portable works. Since that was a clean profile as well, it probably makes sense to test a clean profile in Firefox 21, to rule out an extension or settings-based incompatibility. To do that:
Close Firefox and start up in the Profile Manager as described in [[Managing profiles]]. Any time you want to switch profiles, close Firefox and return to this dialog. I recommend using the default location suggested, and not deleting anything without making backups first.
Does the sorting work in the new profile?
If this is a Firefox 21 change, there is some documentation (e.g., [https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/21 Firefox 21 for developers on MDN]). Because there are hundreds of "bug fixes", unfortunately, not every change that affects functionality will make it onto one of the easily readable lists.
I am a volunteer here, not a Mozilla employee. -
Need help to read and write using UTF-16LE
Hello,
I am in need of yr help.
In my application i am using UTF-16LE to export and import the data when i am doing immediate.
And sometimes i need to do the import in an scheduled formate..i.e the export and imort will happend in the specified time.
But in my application when i am doing scheduled import, they used the URL class to build the URL for that file and copy the data to one temp file to do the event later.
The importing file is in UTF-16LE formate and i need to write the code for that encoding formate.
The problem is when i am doing scheduled import i need to copy the data of the file into one temp place and they doing the import.
When copying the data from one file to the temp i cant use the UTF-16LE encoding into the URL .And if i get the path from the URl and creating the reader and writer its giving the FileNotFound exception.
Here is the excisting code,
protected void copyFile(String rootURL, String fileName) {
URL url = null;
try {
url = new URL(rootURL);
} catch(java.net.MalformedURLException ex) {
if(url != null) {
BufferedWriter out = null;
BufferedReader in = null;
try {
out = new BufferedWriter(new FileWriter(fileName));
in = new BufferedReader(new InputStreamReader(url.openStream()));
String line;
do {
line = in.readLine();
if(line != null) {
out.write(line, 0, line.length());
out.newLine();
} while(line != null);
in.close();
out.close();
} catch(Exception ex) {
Here String rootURL is the real file name from where i have to get the data and its UTF-16LE formate.And String fileName is the tem filename and it logical one.
I think i tried to describe the problem.
Plz anyone help me.
Thanks in advance.Hello,
thanks for yr reply...
I did the as per yr words using StreamWriter but the problem is i need a temp file name to create writer to write into that.
but its an logical one and its not in real so if i create Streamwriten in that its through FileNotFound exception.
The only problem is the existing code build using URL and i can change all the lines and its very difficult because its vast amount of data.
Is anyother way to solve this issue?
Once again thanks.. -
JTable: READ and EDIT uses - a good example?
Hello,
I am looking for a good (complete) example of how to use JTable in READ and EDIT mode. I want to add rows immediately in the JTable and i want to edit a cell also. It is for a use in a production environment.
It is easy to use it to display data but i think it is not really easy to use it in EDIT mode. For the moment, when i need to insert data in the grid, i do it with the help of a dialog box that contains the different fields to insert.
Thanks for the help
JMiI don't find it easy to use that's why i am looking for a good example - a real one with full read, edit, delete and save modes (+ sort capabilities). OK, it's certainly possible to use it but... it's a question of time. I don't want to spend several hours/days to find that it is not OK. That's all.
JMi -
I need to continuously acquire data from daqmx card, write into a file and at the same time corelate (in terms of time) the data with signals from other instruments. The current problem is that there is time delay during read and write data into buffer,thus causing misalignment of the data from multiple instruments. Is there a way to solve the delay? or Is there a way to mark the time of the data acquisition in the buffer? If I know the starting time (e.g. 0) of data acquisition and sampling rate (e.g. 1kHz), can I simply add 1ms to each data sample in the buffer? The current code is shown below.
void DataCollectionWin::ConnectDAQ()
DAQmxErrChk(DAQmxCreateTask ("", &taskHandle));
DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0,Dev1/ai1,Dev1/ai2,Dev1/ai3,Dev1/ai4,Dev1/ai5,Dev1/ai16,Dev1/ai17,Dev1/ai18,Dev1/ai19,Dev1/ai20,Dev1/ai21,Dev1/ai6,Dev1/ai7,Dev1/ai22","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk(DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,60000));
DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,50,0,EveryNCallback,NULL));// Every 50 samples the EveryNSamplesEvent will be trigured, to reduce time delay.
DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,NULL));
DAQmxErrChk (DAQmxStartTask(taskHandle));
int32 CVICALLBACK EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void *callbackData)
DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,50,10.0,DAQmx_Val_GroupByScanNumber,data,50*15,&read,NULL));
//memcpy(l_data,data,6000);
SetEvent(hEvent);
l_usstatus_e[0]=g_usstatus[0];// signals from other instruments that need to be corelated with the data from daq cards.
l_optstatus_e[0]=g_optstatus[0];
if( read>0 ) // write data into file
//indicator=1;
for (i=0;i<read;i++)
{ //fprintf(datafile,"%d\t",i);
fprintf(datafile,"%c\t",l_usstatus_s[0]);
fprintf(datafile,"%c\t",l_usstatus_e[0]);
fprintf(datafile,"%c\t",l_optstatus_s[0]);
fprintf(datafile,"%c\t",l_optstatus_e[0]);
fprintf(datafile,"%.2f\t",data[15*i]);
// sprintf( pszTemp, "%f", data[6*i]);
// pListCtrl->SetItemText(0, 2, pszTemp);
//pWnd->m_trackinglist.SetItemText(0, 2, pszTemp);
fprintf(datafile,"%.2f\t",data[15*i+1]);
fprintf(datafile,"%.2f\t",data[15*i+2]);Hello kgy,
It is a bit of a judgment call. You should just choose the board that you think has the most to do with your issue. For example, this issue was much more focused on setting up your data acquisition task than the Measurement Studio environment/tools, so the MultifunctionDAQ board would have been the best place for it. As for moving your post to another board, I do not believe that is possible.
Regards,
Dan King -
Dumb PHP ? How do I use PHP in .html files.[solved]
I've googled but I just seem to be missing it.
Could someone please point me to documentation or tell me what/how do I enable the Apache server to process inline php in .html files?
Last edited by FeatherMonkey (2008-03-25 16:51:21)http://www.desilva.biz/php/phpinhtml.html
Instead of using htaccess, you can just change httpd.conf.
Last edited by lucke (2008-03-25 16:02:56) -
I'm always reading and hearing that updating software causes problems with lost data, non communication between ipod/phone and computer. Has anyone sucessfully instyalled the latest update, I'm afraid to?
It will help people to advise you if you specify which update you are considering.
charlie -
Reading (and searching, use of TOC and index) Acrobat files offline
OK - I have tried several things in effort to read PDFs offline.
The 'tools' that allow me to access these files PDFReader Pro and GoDocs are incapable of doing searches, use TOC, and index.. It is basically a picture of a PDF. They also present it in the linear form where I need to actually scroll the 343 PAGES to get to the information I want to read mid-way into the document.
Is there a realistic tool that actually properly presents PDF files offline and allows it to be used as it was intended? OOPS - correction Safari cant display this right either.... never mind ....
Thanks
Message was edited by: EmbeddedGeek
I removed an erroneous statement that safari can properly display PDFs - it can't provide search, index/toc accesses. Bogus!On a possibly related note, see http://reviews.cnet.com/8301-13727_7-20004258-263.html?tag=mncol;txt for a way to ADD stuff to the TOC. I'm just passing this along, I haven't tried it.
Doug -
Why do prepopulated forms not open up correctly to be read and printed using Adobe Reader?
We are creating forms that we send to clients. Generally the clients are using Adobe Reader to open the pdf's. Why can they not see prepopulated data on the forms. They need to click the area where the data is to see it. When they attempt to print it, it comes out blank.
Hi,
Did you use Acrobat to create the prepopulated forms? If you did, please submit your question to Acrobat forum. The team there can help you.
Thanks,
Wenlan -
How to frequently read and email using developer/2000?
Could anyone please tell me if there is a way to frequently
read an email from the mail server into the database of oracle7
using any of the tools of oracle7 or developer/2000?
Thank you very much.
nullMohammed Fadel Shatnawi. (guest) wrote:
: Hello All,
: I wonder if there is a way by which one can constantly read an
: email from the mail server into a database!!
: If there is a way, please do tell me about it.
: Thank you very much.
Hi Mohammed,
I guess, you can use the Oracle InterOffice Product for your
requirement. (Hope Oracle still supports/sells InterOffice).
Using Forms, I am not aware. Sorry !
Bala.
null -
Mac keeps crashing whenever using Office for Mac (possible graphic card problem)
Mid 2010 15 inch MacBook Pro. Played out perfectly for the first two years. As soon as the warranty expired, things went sideways. Do not know why but whenever I try to use Office 2011 for Mac the entire mac freezes for a millisecond and then crashes. Does this repeatedly whenever I try using Office.
Problem report reads as follows:
Wed May 14 21:12:53 2014
panic(cpu 0 caller 0xffffff7f9a820fb0): "GPU Panic: [<None>] 3 3 7f 0 0 0 0 3 : NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff812c7a8000 0x0a5480a2, D0, P3/4\n"@/SourceCache/AppleGraphicsControl/AppleGraphicsControl-3.4.35/src/Apple MuxControl/kext/GPUPanic.cpp:127
Backtrace (CPU 0), Frame : Return Address
0xffffff81086cb140 : 0xffffff8018422fa9
0xffffff81086cb1c0 : 0xffffff7f9a820fb0
0xffffff81086cb290 : 0xffffff7f98f32eab
0xffffff81086cb350 : 0xffffff7f98ffc49a
0xffffff81086cb390 : 0xffffff7f98ffc50a
0xffffff81086cb400 : 0xffffff7f9927b056
0xffffff81086cb530 : 0xffffff7f9901fb39
0xffffff81086cb550 : 0xffffff7f98f398fd
0xffffff81086cb600 : 0xffffff7f98f37408
0xffffff81086cb800 : 0xffffff7f98f38386
0xffffff81086cb8e0 : 0xffffff7f99e7e9c2
0xffffff81086cb920 : 0xffffff7f99e8e37f
0xffffff81086cb940 : 0xffffff7f99ebc33b
0xffffff81086cb980 : 0xffffff7f99ebc39b
0xffffff81086cb9c0 : 0xffffff7f99e93e15
0xffffff81086cba10 : 0xffffff7f99e5fb5e
0xffffff81086cbaa0 : 0xffffff7f99e5bae7
0xffffff81086cbad0 : 0xffffff7f99e59636
0xffffff81086cbb00 : 0xffffff80188cbe43
0xffffff81086cbb90 : 0xffffff80188cdd3f
0xffffff81086cbbf0 : 0xffffff80188cb85f
0xffffff81086cbd40 : 0xffffff80184b65a8
0xffffff81086cbe50 : 0xffffff8018426bf1
0xffffff81086cbe80 : 0xffffff80184139f5
0xffffff81086cbef0 : 0xffffff801841e043
0xffffff81086cbf70 : 0xffffff80184c97bd
0xffffff81086cbfb0 : 0xffffff80184f3b96
Kernel Extensions in backtrace:
com.apple.driver.AppleMuxControl(3.4.35)[1BFF66C1-65E4-3BB3-9DEE-B61C3137019B]@ 0xffffff7f9a813000->0xffffff7f9a825fff
dependency: com.apple.driver.AppleGraphicsControl(3.4.35)[09897896-ACBD-36B5-B1D4-0CCC4000E 3B3]@0xffffff7f9a80b000
dependency: com.apple.iokit.IOACPIFamily(1.4)[045D5D6F-AD1E-36DB-A249-A346E2B48E54]@0xfffff f7f98d7a000
dependency: com.apple.iokit.IOPCIFamily(2.9)[EDA75271-4E9D-34E7-A2C5-14F0C8817D37]@0xffffff 7f98aba000
dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[4421462D-2B1F-3540-8EEA-9DFCB0565E39]@0 xffffff7f98e90000
dependency: com.apple.driver.AppleBacklightExpert(1.0.4)[E04639C5-D734-3AB3-A682-FE66694C66 53]@0xffffff7f9a80e000
com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[80472F2E-D31D-32C4-88BA-2EB3D63 C159F]@0xffffff7f98ee3000->0xffffff7f9914bfff
dependency: com.apple.iokit.IOPCIFamily(2.9)[EDA75271-4E9D-34E7-A2C5-14F0C8817D37]@0xffffff 7f98aba000
dependency: com.apple.iokit.IONDRVSupport(2.4.1)[999E29DA-D513-3544-89D1-9885B728A098]@0xff ffff7f98ed3000
dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[4421462D-2B1F-3540-8EEA-9DFCB0565E39]@0 xffffff7f98e90000
com.apple.nvidia.classic.NVDANV50HalTesla(8.2.4)[B0E6AAA7-E970-3D81-8B43-145D56 A3A4AC]@0xffffff7f99156000->0xffffff7f993fffff
dependency: com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[80472F2E-D31D-32C4-88BA-2EB3D63 C159F]@0xffffff7f98ee3000
dependency: com.apple.iokit.IOPCIFamily(2.9)[EDA75271-4E9D-34E7-A2C5-14F0C8817D37]@0xffffff 7f98aba000
com.apple.GeForceTesla(8.2.4)[B6C71E9A-E304-354B-80AD-C69C9032D367]@0xffffff7f9 9e3e000->0xffffff7f99f08fff
dependency: com.apple.iokit.IOPCIFamily(2.9)[EDA75271-4E9D-34E7-A2C5-14F0C8817D37]@0xffffff 7f98aba000
dependency: com.apple.iokit.IONDRVSupport(2.4.1)[999E29DA-D513-3544-89D1-9885B728A098]@0xff ffff7f98ed3000
dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[4421462D-2B1F-3540-8EEA-9DFCB0565E39]@0 xffffff7f98e90000
dependency: com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[80472F2E-D31D-32C4-88BA-2EB3D63 C159F]@0xffffff7f98ee3000
BSD process name corresponding to current thread: WindowServer
Mac OS version:
13C1021
Kernel version:
Darwin Kernel Version 13.1.0: Wed Apr 2 23:52:02 PDT 2014; root:xnu-2422.92.1~2/RELEASE_X86_64
Kernel UUID: E9CF78E2-1E9F-3B6F-81A4-FEE6C6D0E4D5
Kernel slide: 0x0000000018200000
Kernel text base: 0xffffff8018400000
System model name: MacBookPro6,2 (Mac-F22586C8)
System uptime in nanoseconds: 53710064354842
last loaded kext at 52157306680063: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f9a95d000, size 49152)
last unloaded kext at 52274530849384: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f9a95d000, size 32768)
loaded kexts:
com.logmein.driver.LogMeInSoundDriver 1.0.0
com.squirrels.driver.AirParrotSpeakers 1.8
com.rim.driver.BlackBerryUSBDriverInt 0.0.68
com.apple.filesystems.udf 2.5
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.iokit.IOBluetoothSerialManager 4.2.3f10
com.apple.filesystems.ntfs 3.11
com.apple.driver.AGPM 100.14.15
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleMikeyHIDDriver 124
com.apple.driver.AppleMikeyDriver 2.6.0f1
com.apple.driver.AppleHDA 2.6.0f1
com.apple.driver.AudioAUUC 1.60
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.driver.AppleIntelHDGraphics 8.2.4
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleHWAccess 1
com.apple.GeForceTesla 8.2.4
com.apple.driver.AppleUpstreamUserClient 3.5.13
com.apple.driver.AppleSMCLMU 2.0.4d1
com.apple.driver.AppleLPC 1.7.0
com.apple.driver.AppleIntelHDGraphicsFB 8.2.4
com.apple.driver.AppleMuxControl 3.4.35
com.apple.driver.AppleMCCSControl 1.1.12
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.3f10
com.apple.driver.AppleSMCPDRC 1.0.0
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.SMCMotionSensor 3.0.4d1
com.apple.driver.AppleUSBTCButtons 240.2
com.apple.driver.AppleUSBTCKeyboard 240.2
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 35
com.apple.driver.AppleUSBCardReader 3.4.1
com.apple.driver.AppleIRController 325.7
com.apple.driver.XsanFilter 404
com.apple.driver.AppleUSBHub 666.4.0
com.apple.iokit.IOAHCIBlockStorage 2.5.1
com.apple.driver.AppleFWOHCI 4.9.9
com.apple.driver.AirPort.Brcm4331 700.20.22
com.apple.driver.AppleAHCIPort 3.0.0
com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleUSBEHCI 660.4.0
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleACPIButtons 2.0
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleACPIEC 2.0
com.apple.driver.AppleAPIC 1.7
com.apple.driver.AppleIntelCPUPowerManagementClient 216.0.0
com.apple.nke.applicationfirewall 153
com.apple.security.quarantine 3
com.apple.driver.AppleIntelCPUPowerManagement 216.0.0
com.apple.iokit.IOSerialFamily 10.0.7
com.apple.AppleGraphicsDeviceControl 3.4.35
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 2.6.0f1
com.apple.vecLib.kext 1.0.0
com.apple.iokit.IOSurface 91
com.apple.iokit.IOFireWireIP 2.2.6
com.apple.iokit.IOBluetoothFamily 4.2.3f10
com.apple.iokit.IOAudioFamily 1.9.5fc2
com.apple.kext.OSvKernDSPLib 1.14
com.apple.driver.AppleSMBusPCI 1.0.12d1
com.apple.nvidia.classic.NVDANV50HalTesla 8.2.4
com.apple.nvidia.classic.NVDAResmanTesla 8.2.4
com.apple.driver.AppleGraphicsControl 3.4.35
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.driver.AppleSMBusController 1.0.11d1
com.apple.iokit.IONDRVSupport 2.4.1
com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.3f10
com.apple.driver.AppleHDAController 2.6.0f1
com.apple.iokit.IOGraphicsFamily 2.4.1
com.apple.iokit.IOHDAFamily 2.6.0f1
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.IOPlatformPluginFamily 5.7.0d10
com.apple.driver.AppleSMC 3.1.8
com.apple.driver.AppleUSBMultitouch 240.9
com.apple.iokit.IOUSBHIDDriver 660.4.0
com.apple.driver.AppleUSBMergeNub 650.4.0
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IOUSBUserClient 660.4.2
com.apple.iokit.IO80211Family 630.35
com.apple.iokit.IOAHCIFamily 2.6.5
com.apple.iokit.IOEthernetAVBController 1.0.3b4
com.apple.driver.mDNSOffloadUserClient 1.0.1b5
com.apple.iokit.IONetworkingFamily 3.2
com.apple.driver.AppleEFINVRAM 2.0
com.apple.driver.AppleEFIRuntime 2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 278.11
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.AppleKeyStore 2
com.apple.driver.DiskImages 371.1
com.apple.iokit.IOReportFamily 23
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.iokit.IOUSBMassStorageClass 3.6.0
com.apple.driver.AppleUSBComposite 656.4.1
com.apple.iokit.IOSCSIBlockCommandsDevice 3.6.6
com.apple.iokit.IOStorageFamily 1.9
com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.6
com.apple.iokit.IOUSBFamily 675.4.0
com.apple.driver.AppleACPIPlatform 2.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0
com.apple.kec.pthread 1
Model: MacBookPro6,2, BootROM MBP61.0057.B0F, 2 processors, Intel Core i5, 2.4 GHz, 8 GB, SMC 1.58f17
Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 256 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x066D, 0x544E3447313643372D583700000000000000
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x066D, 0x544E3447313643372D583700000000000000
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.3f10 13477, 3 services, 15 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: WDC WD10JPVT-75A1YT0, 1 TB
Serial ATA Device: WDC WD10JPVT-22A1YT0, 1 TB
USB Device: Hub
USB Device: BRCM2070 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Internal Memory Card Reader
USB Device: Hub
USB Device: IR Receiver
Thunderbolt Bus:
I've done a couple of modifications on it but I dont believe they have affected it to such extent. I believe it might be a defective graphic card but at this point, believing the crash was induced by the usage of Office I have done everything possible short to dismembering the Mac and changing the Graphic Card. I have read somewhere that mid 2010s had problems with graphic cards. If anyone has found a way around the changing of the card, I would be very grateful of their opinion and suggestions.First, uninstall the software responsible for installing these extensions:
com.logmein.driver.LogMeInSoundDriver 1.0.0
com.squirrels.driver.AirParrotSpeakers 1.8
com.rim.driver.BlackBerryUSBDriverInt 0.0.68
If removing the software and extensions doesn't solve the problem, then you are probably correct about the GPU:
The problem is likely due to the discreet GPU failing. Download gfxCardStatus 2.3 and use it to disable the GPU. This is a temporary workaround until you get your motherboard replaced. -
DW crashes when I use PHP and HTML
Hi, I need to use PHP with DW to validate a form.
However, when I use PHP with HTML DW crashes. I use a PHP
script to to select the correct radio button when the form is
submitted (see below).
It works fine in the browsers and I can even edit in Notepad.
I am not sure how to solve this - I altered the DTD from
strict to transitional (it didn't work). I am using the latest
version of DW CS3.
Any ideas?
<dt>How did you find out about the site?</dt>
<dd>
<label for="how_did_you_find_out_about_the_site1">
<input name="how_did_you_find_out_about_the_site"
id="how_did_you_find_out_about_the_site1" type="radio"
value="Link_from_another site" <?php echo
($_POST["how_did_you_find_out_about_the_site"] ==
"Link_from_another site") ? "checked=checked" : "";?> />
Link from another site</label>
</dd>
<dd>
<label for="how_did_you_find_out_about_the_site2">
<input name="how_did_you_find_out_about_the_site"
id="how_did_you_find_out_about_the_site2" type="radio"
value="Read_about_it_in a_booklet_or_card" <?php echo
($_POST["how_did_you_find_out_about_the_site"] == "Read_about_it_in
a_booklet_or_card") ? "checked=checked" : "";?> />
Read about it in a booklet/card</label>
</dd>
<dd>
<label for="how_did_you_find_out_about_the_site3">
<input name="how_did_you_find_out_about_the_site"
id="how_did_you_find_out_about_the_site3" type="radio"
value="Recommended_by_my tutor" <?php echo
($_POST["how_did_you_find_out_about_the_site"] ==
"Recommended_by_my tutor") ? "checked=checked" : "";?> />
Recommended</label>
</dd>
<dd>
<label for="how_did_you_find_out_about_the_site4">
<input name="how_did_you_find_out_about_the_site"
id="how_did_you_find_out_about_the_site4" type="radio"
value="Found_it_when_I_used_the_search" <?php echo
($_POST["how_did_you_find_out_about_the_site"] ==
"Found_it_when_I_used_the_search") ? "checked=checked" : "";?>
/>
Found it when I used the search</label>
</dd>
<dd>
<label for="how_did_you_find_out_about_the_site5">
<input name="how_did_you_find_out_about_the_site"
id="how_did_you_find_out_about_the_site5" type="radio"
value="Other" <?php echo
($_POST["how_did_you_find_out_about_the_site"] == "Other") ?
"checked=checked" : "";?>/>
Other</label>
<label
for="how_did_you_find_out_about_the_site6">(please specify)
<input name="how_did_you_find_out_about_the_site_specify"
id="how_did_you_find_out_about_the_site6" type="text"
value="<?php echo ($_POST["how_did_you_find_out_about_the_site"]
== "Other") ? $_POST["how_did_you_find_out_about_the_site_specify"]
: "";?>"/>
</label>
</dd>Steve84 wrote:
> Hi, I need to use PHP with DW to validate a form.
>
> However, when I use PHP with HTML DW crashes.
http://www.adobe.com/go/kb402776
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Maybe you are looking for
-
Trying to understand the SJAS package-appclient utility.
Hi, I have a few questions about the package-appclient script. I have no problem getting it to work, but there are a few things that don't make sense to me. I want to use a professional looking installer (I grabbed a demo of install4j and really like
-
I went to the mobileme website and it asked me for my apple ID and password. But then when I entered them it told me I needed a mobileme ID. Should I have one just from setting up the app on my iphone?
-
Why is there a thick line in the page margin when I use auto page number?
I am having a problem with an automatic line which appears in the left, in the page margin, outside the footer whenever I insert auto page numbering into a booklet. This line looks like a thick "l" and is on the left of each page despite the numbers
-
Forte and windows98???
Hi Forte Experts Can we use forte with windows98, and if so: which versions? limitations? problems? The reason for asking such a dumb question is, that we just installed a brand new 'super-specifications' pc with windows98 and now we have userwindows
-
Reporting of file and folder sizes in Realtime?
Hi, I am sorry if this has been asked a million times before, but is there an option that I am missing or a third party soft that would allow my finder (and labels on my HDDs) to report the size in realtime? It doesn't seem to update untill I reboot.